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. |
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