fix mcp and query normalization - #257
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (7)
Included review availability: Your plan provides up to 2 included reviews per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe MCP query report flow now accepts explicit query IDs. The SQL parser restores supported typed parameter casts before retrying parse and fingerprint operations. Tests cover rewrite behavior, parser acceptance, idempotence, and column usage. ChangesMCP query reporting
SQL parameter restoration
Estimated code review effort: 4 (Complex) | ~45 minutes Merge Risk: 🔵 Low · up to The PR adds query selection by ID through the existing authorization path and improves parsing of normalized SQL. It is mergeable with owner awareness that fallback normalization can expand input beyond the configured parser size limit, creating a bounded availability risk during analysis. Sequence Diagram(s)sequenceDiagram
participant Caller
participant query_report_tool
participant DashaClient
participant GetQueriesReport
Caller->>query_report_tool: Submit queryid and report arguments
query_report_tool->>DashaClient: Call QueryReport with queryID
DashaClient->>GetQueriesReport: Send Queryid with report parameters
GetQueriesReport-->>DashaClient: Return the matching report row
DashaClient-->>query_report_tool: Return query report
query_report_tool-->>Caller: Return full query details
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 57.14% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 7 functions across 5 files. (2 skipped: 2 unsupported.)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@coderabbitai review |
✅ Action performedReview finished.
|
Summary by CodeRabbit
New Features
Documentation