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

ForumMagnum / ForumMagnum / 25463223484

06 May 2026 09:52PM UTC coverage: 48.387% (+0.005%) from 48.382%
25463223484

Pull #12497

github

claude
Revert Elasticsearch bulk-indexer rejected filter

Drop the WHERE "rejected" IS NOT TRUE clauses I added to
PostsRepo/CommentsRepo getSearchDocuments and countSearchDocuments.

The prevailing pattern for the ES index is "index every row, filter
at query time": ElasticConfig.ts strips draft, rejected, deleted,
authorIsUnreviewed, retracted, spam, etc. from search results, while
elasticSyncDocument re-indexes every row on update via
getSearchDocumentById, which has no per-row filter. So filtering at
bulk-export time only created an inconsistent state — rejected posts
disappeared after a recreateIndex but came back the next time they
were updated. The query-time filter already handles it.
Pull Request #12497: Filter rejected content from shared queries and clean up notifications

7932 of 10726 branches covered (73.95%)

Branch coverage included in aggregate %.

19 of 32 new or added lines in 8 files covered. (59.38%)

98 existing lines in 8 files now uncovered.

177800 of 373117 relevant lines covered (47.65%)

36.54 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

86.76
/packages/lesswrong/server/sql/DeleteQuery.ts


Source Not Available

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