fix(review): only count real D1 writes in backfillContributorGateHistory inserted (#7804) - #7821
Conversation
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
…ory inserted (JSONbored#7804) Co-authored-by: Cursor <cursoragent@cursor.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #7821 +/- ##
===========================================
+ Coverage 77.60% 88.86% +11.25%
===========================================
Files 730 89 -641
Lines 76959 21239 -55720
Branches 22787 3681 -19106
===========================================
- Hits 59725 18874 -40851
+ Misses 14356 2187 -12169
+ Partials 2878 178 -2700
Flags with carried forward coverage won't be shown. Click here to find out more.
|
|
Tip ✅ LoopOver review result - approve/merge recommendedReview updated: 2026-07-21 13:46:36 UTC
Review summary Nits — 4 non-blocking
Decision drivers
Context & advisory signals — never blocks the verdict
Linked issue satisfactionAddressed Review context
Contributor next steps
Signal definitions
🧪 Chat with LoopOverAsk LoopOver a question about this PR directly in a comment — grounded only in the same cached, public-safe facts shown above, never a new claim.
Full command reference: https://loopover.ai/docs/loopover-commands 🧪 Experimental — new and may change. 🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed 💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by LoopOver, a quiet PR intelligence layer for OSS maintainers.
|
Summary
insertedwhenresult.meta.changes > 0after theINSERT ... ON CONFLICT DO NOTHING, mirroringsrc/ams/ingest.tsandsrc/orb/ingest.tsmeta.changes === 0) assertinginsertedstays 0 whilescannedstill reflects the candidate was examinedCloses #7804
Test plan
npm run typecheckpasses locallyMade with Cursor