Skip to content

feat(Discussion): Anonymize responses#2289

Merged
hirokiterashima merged 6 commits intodevelopfrom
discussion-anonymize-responses
Mar 13, 2026
Merged

feat(Discussion): Anonymize responses#2289
hirokiterashima merged 6 commits intodevelopfrom
discussion-anonymize-responses

Conversation

@hirokiterashima
Copy link
Member

@hirokiterashima hirokiterashima commented Mar 12, 2026

Changes

  • Student responses in the Discussion activity can now be displayed with anonymous names instead of real names. The anonymous names are chosen from a list of animal names (Anonymous Lion, Anonymous Yeti, etc...)
  • Add option to anonymize student responses in the authoring tool. By default, this option is disabled.
  • Add option to toggle anonymizing student responses in the teacher tool > discussion summary view.

Test

  • Above works as described

@hirokiterashima hirokiterashima self-assigned this Mar 12, 2026
@hirokiterashima hirokiterashima added the enhancement New feature of any size or improvement (UI, performance, security) label Mar 12, 2026
@qltysh
Copy link

qltysh bot commented Mar 12, 2026

Qlty

Coverage Impact

Unable to calculate total coverage change because base branch coverage was not found.

Modified Files with Diff Coverage (4)

RatingFile% DiffUncovered Line #s
New file Coverage rating: C
src/assets/wise5/components/discussion/discussionService.ts100.0%
New file Coverage rating: F
.../discussion/discussion-teacher/discussion-teacher.component.ts0.0%36
New file Coverage rating: A
src/assets/wise5/components/discussion/Anonymizer.ts100.0%
New file Coverage rating: F
...ary-display/discussion-summary/discussion-summary.component.ts25.0%17-26
Total73.1%
🤖 Increase coverage with AI coding...

In the `discussion-anonymize-responses` branch, add test coverage for this new code:

- `src/assets/wise5/components/discussion/discussion-teacher/discussion-teacher.component.ts` -- Line 36
- `src/assets/wise5/directives/teacher-summary-display/discussion-summary/discussion-summary.component.ts` -- Line 17-26

🚦 See full report on Qlty Cloud »

🛟 Help
  • Diff Coverage: Coverage for added or modified lines of code (excludes deleted files). Learn more.

  • Total Coverage: Coverage for the whole repository, calculated as the sum of all File Coverage. Learn more.

  • File Coverage: Covered Lines divided by Covered Lines plus Missed Lines. (Excludes non-executable lines including blank lines and comments.)

    • Indirect Changes: Changes to File Coverage for files that were not modified in this PR. Learn more.

@hirokiterashima hirokiterashima marked this pull request as ready for review March 12, 2026 23:19
@hirokiterashima hirokiterashima requested a review from breity March 12, 2026 23:19
Copy link
Member

@breity breity left a comment

Choose a reason for hiding this comment

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

Looks great. I updated some styles and text.

I had a couple thoughts:

  1. I think students should always be able to see their own names in the discussion, even if it is set to be anonymous. As of now, there's no way for students to quickly find and remember the posts and comments they made.
  2. It would be nice if the anonymous setting in the teacher summary view could sync between the regular and expanded views. This could come in a separate PR.

@hirokiterashima
Copy link
Member Author

Your changes look great. Also, good ideas for improvement. I was able to implement #1. Let's save #2 for another time.

@hirokiterashima hirokiterashima merged commit 8d694bb into develop Mar 13, 2026
4 checks passed
@hirokiterashima hirokiterashima deleted the discussion-anonymize-responses branch March 13, 2026 20:15
@hirokiterashima
Copy link
Member Author

🎉 This PR is included in version 5.218.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.

2 participants