fix(hygiene): map-fields GraphQL $p-unused error (arming blocker) - #19
Conversation
GraphQL rejected the projectItems query with "Variable \$p is declared but not used" — \$p was only referenced in the client-side jq filter, not the query body. Removing it fixes the map-fields job (smoke issue #18 failed on this). The project filter stays in jq via the PROJECT_ID shell var. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
Bugbot couldn't run - usage limit reachedBugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit. A user or team admin can review and increase usage limits in the Cursor dashboard. (requestId: serverGenReqId_15a0e788-dafc-4ffb-81cb-cd748c8bc7f4) |
|
Warning Review limit reachedYou’ve reached a temporary PR review limit under our Fair Usage Limits Policy. Next review available in: 12 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
✨ Finishing Touches🧪 Generate unit tests (beta)
✨ Simplify code
Comment |
Smoke test (wave-av/.github#18, a form-shaped issue) failed the
map-fieldsjob with:Variable $p is declared by anonymous query but not used.The item-resolution query declared
query($n:ID!,$p:ID!)but only used$pinside the client-sidejqfilter (select(.project.id==...)), never in the GraphQL body — GraphQL rejects unused declared variables. Fix: drop$pfrom the declaration and the-F p=arg; the project filter stays injqvia thePROJECT_IDshell var (the fields query and the sweep query were already correct).After merge I'll re-run the smoke to confirm map-fields stamps Area/Priority, then delete the smoke issue.
🤖 Generated with Claude Code
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Note
Low Risk
Single-line GraphQL/shell fix in CI with no runtime or security impact; project filtering logic is unchanged.
Overview
Fixes the
map-fieldsjob inticket-hygiene.yml, which was failing with GraphQL error "Variable $p is declared but not used".The project-item lookup query declared
$pbut only filtered by project ID in jq (select(.project.id=="$PROJECT_ID")), not in the GraphQL document. The fix drops$pfrom the query signature and removes the unused-F p="$PROJECT_ID"argument; behavior is unchanged because board scoping still happens in the shell/jq step.Reviewed by Cursor Bugbot for commit 2e33fcf. Configure here.
Summary by cubic
Fix the ticket-hygiene map-fields step by removing an unused GraphQL variable that caused "Variable $p is declared but not used" errors. Dropped
$pfrom the query and the-F p=flag; project filtering remains injqusingPROJECT_ID, unblocking the job.Written for commit 2e33fcf. Summary will update on new commits.