fix(ui): resolve SQLite manager keys across dashboard and daily report (#1671) - #1681
Conversation
… daily report Use resolve_manager_id_column for manager selectors, QC summaries, and daily-report fallback joins so databases seeded with managers.id behave the same as manager_id. Co-authored-by: Cursor <cursoragent@cursor.com>
|
Warning Review limit reachedNext included review available in 27 minutes. View limit detailsLimit details: You’ve used the included review currently available. Your 64 included PR review attempts over the past 7 days set your current allowance at 1 review per hour. Your organization has reached its usage spending cap. Adjust your spending cap in the billing tab. Review configuration: ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Essentials Run ID: 📒 Files selected for processing (4)
Comment |
There was a problem hiding this comment.
🟢 Approval recommended
No unresolved review issues were identified.
Pull request overview
Fixes SQLite manager-key compatibility across dashboard and daily-report queries while preserving PostgreSQL behavior.
Changes:
- Resolve manager primary-key columns consistently.
- Update dashboard and daily-report joins.
- Add parametrized coverage for both key schemas.
File summaries
| File | Description |
|---|---|
ui/dashboard.py |
Resolves manager keys for selectors and QC summaries. |
ui/daily_report.py |
Applies resolved keys to report joins. |
tests/test_dashboard.py |
Tests both SQLite key schemas. |
tests/test_daily_report_views.py |
Tests fallback queries across both schemas. |
Review details
- Files reviewed: 4/4 changed files
- Comments generated: 0
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
Runner dispatch state for cursor on PR #1681. Do not edit. |
🤖 Keepalive Loop StatusPR #1681 | Agent: Cursor | Iteration 0/12 Current State
Last Cursor Run
To retry immediately:
Or wait for the next successful Gate run to automatically retry. Cursor output:
🔍 Failure Classification| Error type | infrastructure |
|
Keepalive Work Log (click to expand)
|
Provider Comparison ReportProvider Summary
📋 Full Provider Details (click to expand)openai
anthropic
Agreement
Disagreement
Unique Insights
🔍 LangSmith Traces |
|
Workflow state fingerprint for Agents Verifier. Do not edit. |
Verifier disposition — anthropic CONCERNS is a false positive (source #1671)Independent audit of merged head Concern 1 — "'Postgres chain integration' failed on the merge commit, which floors the verdict at CONCERNS." Refuted. The only
All four started 18+ hours after this PR merged (2026-09-15T11:00:48Z), so none of them is this PR's CI. This PR's own gates passed: Concern 2 — "the diff bundles alerts/db.py, alerts/dispatch.py, embeddings.py, etl/edgar_flow.py, alembic/versions/022_document_managers.py, api/search.py, docker-compose.yml, .env.example…" Refuted. This PR changed exactly four files: None of the listed files is in the PR. This is the known verifier diff-contamination mode ( Concern 3 — "the core-fix diff was truncated, exact correctness unverified." The full core fix is Verdict: openai PASS (90%) stands; anthropic CONCERNS (62%) is dispositioned as a false positive. Source #1671 is already CLOSED and required no further work. Closer chain terminal — no follow-up PR opened for this PR. |
Summary
resolve_manager_id_column, aliasing tomanager_idin result frames.Closes #1671
Test plan
pytest tests/test_dashboard.py tests/test_daily_report_views.py -q— PASS (full suites)m.manager_idjoin restored briefly →test_daily_report_fallback_queries_resolve_manager_primary_key[id]FAILED → reverted