Enhanced Filtering and Query Capabilities, Issues API improvements #25
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.
This pull request introduces several improvements and new features to the code analysis and issue management workflow, focusing on enhanced filtering, richer data in API responses, and codebase maintainability. The most significant changes are grouped below:
Enhanced Filtering and Query Capabilities
listBranchIssuesendpoint, allowing clients to filter by severity, category, file path, and creation date range, with normalization and parsing of filter values for robust handling. Filtering is now performed in Java after fetching all issues for a branch, simplifying the logic and supporting more flexible queries. [1] [2]findAllByBranchIdWithIssuesinBranchIssueRepositoryto efficiently fetch all issues for a branch, including relatedCodeAnalysisIssueentities.API Response Improvements
IssueDTOdata transfer object to include detection metadata fields (analysisId,prNumber,commitHash,detectedAt) for richer context about where and when each issue was found. [1] [2]AnalysisIssueResponseto include ananalysisSummaryfield, exposing the analysis comment/summary for a specific pull request version in API responses. [1] [2]AnalysisIssueControllerto fetch and return the analysis summary/comment when listing issues for a pull request, based on the requested or latest version.Backend Service Enhancements
CodeAnalysisentity by project, pull request number, and version, supporting the new summary-fetching logic.Miscellaneous
.gitignorefiles in Python subprojects to ignore__pycache__directories for better Python development hygiene. [1] [2]prompt_builder.pyto clarify instructions for code fixes (removing "MANDATORY, not optional" for suggested diffs). [1] [2]