fix(miner): treat null repo filter as unscoped in event ledger reads#2955
Conversation
readEvents no longer maps a null repoFullName filter to global-scope rows only; null and omitted filters both return all events. 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 #2955 +/- ##
=======================================
Coverage 96.06% 96.06%
=======================================
Files 259 259
Lines 28648 28648
Branches 10423 10423
=======================================
Hits 27521 27521
Misses 490 490
Partials 637 637 🚀 New features to boost your workflow:
|
|
Warning 🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨 ⏸️ Gittensory review result - manual review recommendedReview updated: 2026-07-04 07:18:43 UTC
⏸️ Suggested Action - Manual Review Review summary Nits — 5 non-blocking
Review context
Contributor next steps
Signal definitions
🟩 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 Gittensory, a quiet PR intelligence layer for OSS maintainers.
|
Co-authored-by: Cursor <cursoragent@cursor.com>
Summary
repoFullNameread filter as unscoped soreadEventsreturns every event, matching governor-ledger semantics.{ repoFullName: null }from silently narrowing results to global-scope rows only.Scope
type(scope): short summaryConventional Commit format.Validation
npm run test:cilocally — CI will run the full gate on push.since.Safety
UI Evidence
Not applicable — miner library only.
Notes
Append-time repo scope is unchanged: omitted/nullish event scopes still persist as
NULL. Only read-filter normalization is split out.