Skip to content

feat(Discussion): Hide inappropriate posts in real-time#2281

Merged
hirokiterashima merged 1 commit intodevelopfrom
discussion-hide-inappropriate-posts-in-real-time
Mar 9, 2026
Merged

feat(Discussion): Hide inappropriate posts in real-time#2281
hirokiterashima merged 1 commit intodevelopfrom
discussion-hide-inappropriate-posts-in-real-time

Conversation

@hirokiterashima
Copy link
Member

Changes

  • Posts marked as inappropriate will be hidden from student view. If the teacher unmarks it (marks as appropriate), it will be displayed
  • Refactor related code

Test

  • Discussion posts marked as inappropriate/appropriate by the teacher will hide/show in real-time

@hirokiterashima hirokiterashima self-assigned this Mar 9, 2026
@qltysh
Copy link

qltysh bot commented Mar 9, 2026

❌ 1 blocking issue (1 total)

Tool Category Rule Count
qlty Structure Function with high complexity (count = 33): renderDiscussion 1

@qltysh
Copy link

qltysh bot commented Mar 9, 2026

Qlty

Coverage Impact

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

Modified Files with Diff Coverage (2)

RatingFile% DiffUncovered Line #s
New file Coverage rating: D
.../discussion/discussion-student/discussion-student.component.ts20.0%84-91
New file Coverage rating: F
src/assets/wise5/components/component-student.component.ts0.0%194
Total16.7%
🤖 Increase coverage with AI coding...

In the `discussion-hide-inappropriate-posts-in-real-time` branch, add test coverage for this new code:

- `src/assets/wise5/components/component-student.component.ts` -- Line 194
- `src/assets/wise5/components/discussion/discussion-student/discussion-student.component.ts` -- Line 84-91

🚦 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 9, 2026 20:12
@hirokiterashima hirokiterashima added the enhancement New feature of any size or improvement (UI, performance, security) label Mar 9, 2026
@hirokiterashima hirokiterashima merged commit e44caf5 into develop Mar 9, 2026
4 checks passed
@hirokiterashima hirokiterashima deleted the discussion-hide-inappropriate-posts-in-real-time branch March 9, 2026 20:12
@hirokiterashima
Copy link
Member Author

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

1 participant