Migrate PR issues to new flattened API with server-side filters#270
Merged
jai-deepsource merged 6 commits intomasterfrom Mar 2, 2026
Merged
Migrate PR issues to new flattened API with server-side filters#270jai-deepsource merged 6 commits intomasterfrom
jai-deepsource merged 6 commits intomasterfrom
Conversation
- Switch from `issueOccurrences` to `issues` field in PR issues GraphQL query - Flatten response structure, remove nested issue/analyzer objects - Add source, category, severity, and q filter params to PR issues query - Add buildPRFilters() to map CLI flags to server-side filter params - Update GetPRIssues signature to accept filter params - Update golden files and tests to match new schema
|
|
Overall Grade |
Security Reliability Complexity Hygiene Coverage |
Code Review Summary
| Analyzer | Status | Updated (UTC) | Details |
|---|---|---|---|
| Go | Mar 2, 2026 8:13p.m. | Review ↗ | |
| Secrets | Mar 2, 2026 8:13p.m. | Review ↗ | |
| Test coverage | Mar 2, 2026 8:13p.m. | Review ↗ |
Code Coverage Summary
| Language | Line Coverage (New Code) | Line Coverage (Overall) |
|---|---|---|
| Aggregate | 4.5% |
19.2% [▼ down 0.2% from master] |
| Go | 4.5% [⤫ below threshold] |
19.2% [▼ down 0.2% from master][✓ above threshold] |
➟ Additional coverage metrics may have been reported. See full coverage report ↗
- Return early when issuesList is nil to avoid passing nil to filterIssues
- Suggest checking if branch has been pushed/analyzed when no runs exist - Replace generic "no completed runs" with "analysis still in progress" - Point users to --default-branch as a fallback option - Update test assertions to match new message text
- Add Fallback field to AutoBranchResult to track when results come from a previous completed run while a new analysis is in progress - Propagate fallback state to issues, metrics, and vulnerabilities commands - Skip "no results found" message in fallback mode since it's misleading when the data is from an older run, not the current commit
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.
issueOccurrencestoissuesfield in PR issues GraphQL query