fix(selfhost): recognize review_audit in the exporter's no-source-tables guard - #3546
Conversation
…les guard The "does this database have any reporting signal at all" fail-safe guard still listed only pull_requests/advisories/review_targets/ ai_usage_events -- stale since #3535 made review_audit a genuine dependency of the verdict computation. In practice pull_requests already dominates the check on any real deployment, so this was cosmetic, not a live bug, but a database with only review_audit present would have been misclassified as empty. Add it to both the Postgres and SQLite variants of the guard. Flagged as a non-blocking nit on #3535's own review.
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
|
Warning 🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨 ⏸️ Gittensory review result - manual review recommendedReview updated: 2026-07-05 16:40:02 UTC
⏸️ Suggested Action - Manual Review
Review summary Nits — 3 non-blocking
Concerns raised — review before merging
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.
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3546 +/- ##
=======================================
Coverage 93.10% 93.10%
=======================================
Files 302 302
Lines 31504 31504
Branches 11504 11504
=======================================
Hits 29333 29333
Misses 1517 1517
Partials 654 654 🚀 New features to boost your workflow:
|
Closes #3554
Summary
scripts/export-grafana-reporting-db.sh) still only listedpull_requests/advisories/review_targets/ai_usage_events— stale since fix(selfhost): source an open PR's Grafana verdict from review_audit, not dead advisories #3535 madereview_audita genuine dependency of the still-open-PR verdict computation.pull_requestsalready dominates the OR-condition on any real deployment, so the guard was never actually wrong in practice — just an inaccurate list for an operator reading it to understand what the script depends on. The only theoretical gap it left: a database with onlyreview_auditpresent would have been misclassified as empty and skipped.review_auditto both the Postgres and SQLite variants of the guard. No issue filed — this is small enough, self-evident from the PR description, and directly traceable to the reviewer comment it addresses (this repo's linkedIssuePolicy is "preferred", not required).review_auditis recognized as having real data (the exporter runs a fresh pass) rather than triggering the "preserve the last-good snapshot" fail-safe.Scope
type(scope): short summaryConventional Commit format, for examplefix(api): restore profile access checks.CONTRIBUTING.mdand does not reintroduce GitHub Pages, VitePress,site/, orCNAME.Validation
git diff --checknpm run typecheck(clean — no TypeScript files changed)shellcheck scripts/export-grafana-reporting-db.sh(clean)npx vitest run test/unit/selfhost-grafana-reporting.test.ts— 14/14 passing (13 existing + 1 new)npm run test:workers/npm run build:mcp/npm run test:mcp-pack/npm run ui:openapi:check/npm run ui:build— not run individually; no worker/MCP/OpenAPI/UI surface touched.review_audit), asserting a fresh pass runs instead of the last-good snapshot being wrongly preserved.Safety
UI Evidencesection below. — N/A, not anapps/gittensory-uichange.