Conversation
Issue search treats project as a slug, so agents that paste project:<id> hit a 400 (CLI-FA). Same auto-repair path as OR→in-list: rewrite digits to project_id, leave slugs and namespaced keys alone. Co-authored-by: Cursor <cursoragent@cursor.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
4 tasks
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Issue search treats
projectas a slug. Agents paste Sentry's numeric project id into--queryand get a 400 (CLI-FA).project_idis the numeric field.sanitizeQuerynow rewritesproject:<digits>and all-numericproject:[id,id]toproject_id, with a warning, same as the existing OR → in-list repair. Slugs (project:frontend), already-correctproject_id:…, namespaced keys (bolt.project_id), quoted strings, and mixed in-lists are left alone.Before / after
Command from CLI-FA:
sentry issue list --json -q "project:4511730126487632 environment:vercel-production"Before — 400,
ApiError, grouped in CLI-FA. The API rejects a numeric value on the slug field:After — rewrite in
sanitizeQuery, warn, run the query, exit 0:Stdout is the issue list JSON. Same rewrite for
project:[4505521413357568,6442225]→project_id:[…].Test plan
sanitizeQuery("project:4511730126487632 environment:vercel-production")→project_id:4511730126487632 environment:vercel-productionproject:[4505521413357568,6442225]rewrites;project:[frontend,6442225]does notproject:frontend,project_id:123,bolt.project_id:70054175,message:"project:123"unchangedpackages/cli:pnpm exec vitest run test/lib/search-query.test.ts test/lib/search-query.property.test.ts