• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ForumMagnum / ForumMagnum / 25407457020
46%
master: 47%

Build:
Build:
LAST BUILD BRANCH: claude/rejected-content-investigation-0WkBz
DEFAULT BRANCH: master
Ran 05 May 2026 11:16PM UTC
Jobs 2
Files 2803
Run time 6min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

05 May 2026 11:14PM UTC coverage: 46.117% (-2.3%) from 48.38%
25407457020

push

github

claude
Filter rejected comments and clean up notifications on rejection

In preparation for enabling the rejection feature on EA Forum, fix six
queries that returned rejected comments to public-facing surfaces, fix
two queries that included rejected comments in user-visible counts, and
add notification cleanup so rejecting content also marks the related
inbox notifications as deleted.

Public feed leaks (added rejected filter to SQL):
- getCommentsWithReacts: powers the public CommentsWithReacts paginated
  resolver. A rejected comment with a reaction would surface in the feed.
- getPopularComments: powers the public PopularComments resolver, which
  feeds into the homepage popular-comments rail. A rejected comment with
  high baseScore would surface there.
- getRecentCommentsOnPosts: backstop on the SQL itself, since the result
  goes through accessFilterMultiple/commentCheckAccess and we intentionally
  allow direct-by-id access to rejected comments for the moderation log.

User-visible count leaks (added rejected filter to SQL):
- getCommentsPerDay: per-post engagement chart, was inflating daily counts.
- getAuthorshipStats: Wrapped year-in-review, was inflating both the
  user's count and their percentile.
- getUsersMostCommentedPostSince: inactive-user-summary digest email,
  was inflating the count emailed to users.

Defense-in-depth on the search index:
- CommentsRepo.getSearchDocuments / countSearchDocuments: skip rejected
  comments during bulk Elasticsearch reindex, mirroring the previous
  PostsRepo fix. Query-time filtering in ElasticConfig already excludes
  rejected, so this is hygiene, not a leak fix.

Notification cleanup on hide:
- Extend removeRedraftNotifications to also fire when a post transitions
  from public to rejected (previously it only fired on the redraft
  transition, leaving orphan notifications when a published post was
  rejected).
- Add a parallel removeCommentNotificationsOnHidden callback that fires
  on the public→non-pub... (continued)

288 of 452 branches covered (63.72%)

Branch coverage included in aggregate %.

19 of 29 new or added lines in 6 files covered. (65.52%)

14 existing lines in 3 files now uncovered.

16949 of 36925 relevant lines covered (45.9%)

369.43 hits per line

Uncovered Changes

Lines Coverage ∆ File
8
10.4
-0.09% packages/lesswrong/server/repos/CommentsRepo.ts
1
51.67
0.14% packages/lesswrong/server/callbacks/postCallbackFunctions.tsx
1
14.26
0.0% packages/lesswrong/server/repos/PostsRepo.ts

Coverage Regressions

Lines Coverage ∆ File
8
61.67
-3.48% packages/lesswrong/server/utils/slugUtil.ts
4
86.76
-10.2% packages/lesswrong/server/sql/DeleteQuery.ts
2
86.36
-13.64% packages/lesswrong/server/sql/collation.ts
Jobs
ID Job ID Ran Files Coverage
1 Integration - 25407457020.1 05 May 2026 11:19PM UTC 2802
34.19
GitHub Action Run
2 Unit - 25407457020.2 05 May 2026 11:16PM UTC 2801
42.82
GitHub Action Run
Source Files on build 25407457020
  • Tree
  • List 2803
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #25407457020
  • e89d2d97 on github
  • Prev Build on claude/rejected-content-investigation-0WkBz (#24916627575)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc