fix(miner): include portfolio-queue and run-state in purge-by-repo (#6599) - #6694
Conversation
…stores - Implemented `purgeByRepo` method in both `PortfolioQueueStore` and `RunStateStore` to allow explicit deletion of all entries associated with a specific repository. - Updated related types and specifications in `store-maintenance` to accommodate the new purge functionality. - Enhanced CLI and test coverage to ensure proper functionality and error handling for the new purge feature. Closes JSONbored#5564, JSONbored#6599
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #6694 +/- ##
=======================================
Coverage 93.65% 93.65%
=======================================
Files 682 682
Lines 68112 68116 +4
Branches 18708 18708
=======================================
+ Hits 63788 63792 +4
Misses 3347 3347
Partials 977 977
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-16 19:51:00 UTC
Review summary Nits — 3 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
loopover-miner purge --repoto also purgeportfolio-queueandrun-state, which both key rows byrepo_full_namebut were missing from the right-to-be-forgotten sweep (purge-cli.js's right-to-be-forgotten sweep misses portfolio-queue.js and run-state.js #6599).PORTFOLIO_QUEUE_PURGE_SPEC/RUN_STATE_PURGE_SPEC, matchingpurgeByRepomethods, and wire both intoREAL_PURGE_TARGETSso dry-run and real purge report them like the other four stores.Closes #6599
Scope
type(scope): short summaryConventional Commit format, for examplefix(api): restore profile access checks.CONTRIBUTING.mdand does not reintroduce GitHub Pages, VitePress,site/, orCNAME.Closes #123) — a linked open issue is required for every contributor PR.Validation
git diff --checknpm run actionlintnpm run typechecknpm run test:coveragelocally;codecov/patchrequires ≥99% coverage of the lines AND branches you changed (aim for 100% on your diff so CI variance does not fail near the threshold). Global coverage is a non-blocking trend with a loose 90% backstop, not the gate.npm run test:workersnpm run build:mcpnpm run test:mcp-packnpm run ui:openapi:checknpm run ui:lintnpm run ui:typechecknpm run ui:buildnpm audit --audit-level=moderateIf any required check was skipped, explain why:
miner-purge-cli,miner-portfolio-queue,miner-run-state). Fulltest:ci/ coverage gate not run yet before commit.Safety
UI Evidencesection below with JPG/JPEG or PNG screenshots arranged as organized, captioned, clickable thumbnails. SVG screenshots are not used as review evidence. Review-only screenshots or recordings are not committed to the repository.UI Evidence
N/A — miner local-store / CLI change only; no UI.
Notes