Skip to content

feat(Match): Filter out detected ideas from pre-authored choices #2184#2185

Merged
hirokiterashima merged 4 commits into
developfrom
issue-2184-filter-out-detected-ideas
May 21, 2025
Merged

feat(Match): Filter out detected ideas from pre-authored choices #2184#2185
hirokiterashima merged 4 commits into
developfrom
issue-2184-filter-out-detected-ideas

Conversation

@hirokiterashima

@hirokiterashima hirokiterashima commented May 20, 2025

Copy link
Copy Markdown
Member

Changes

If the student has an idea that is authored as one of the choices, remove it from the choices to avoid duplication. We consider it a duplication if choice.id (authored choice) and idea.name (detected student idea) are the same.

Test Prep

For a unit with DG connected to a Match component, author choices in the match component. Using the advanced JSON editing, give the choices the same ids as the choice names in the CRaterRubric.ideas.name.

Test

Ensure that choices with the same id do not appear more than once in the choices array.

Closes #2184

@hirokiterashima hirokiterashima self-assigned this May 20, 2025
@hirokiterashima hirokiterashima added the enhancement New feature of any size or improvement (UI, performance, security) label May 20, 2025
@hirokiterashima hirokiterashima requested a review from breity May 20, 2025 22:14

@breity breity left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, but I needed to make a couple changes to get it to work properly. See code suggestions and explanations.

@breity breity self-requested a review May 21, 2025 15:45
@hirokiterashima hirokiterashima merged commit 66f3c79 into develop May 21, 2025
1 check passed
@hirokiterashima hirokiterashima deleted the issue-2184-filter-out-detected-ideas branch May 21, 2025 16:21
@hirokiterashima

Copy link
Copy Markdown
Member Author

🎉 This PR is included in version 5.184.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature of any size or improvement (UI, performance, security) released

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(Match): Filter out detected ideas from pre-authored choices

2 participants