Conversation
…nsformation utilities
…line content extraction
…e repository service integration
…ance parameter handling
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.
This pull request introduces several improvements to repository usage management and context extraction within the application. The most significant changes are the addition of a repository working status to prevent concurrent operations, refactoring the context extraction node for clearer prompts and improved deduplication, and making several methods asynchronous for better performance and reliability.
Repository Usage Management
is_workingboolean field to theRepositorymodel to track if a repository is currently being processed, and introduced logic to prevent concurrent operations on the same repository. (prometheus/app/entity/repository.py,prometheus/app/api/routes/issue.py,prometheus/app/services/repository_service.py) [1] [2] [3]update_repository_statusinRepositoryServiceto safely set the working status before and after issue processing, including error handling and edge cases. (prometheus/app/services/repository_service.py,prometheus/app/services/issue_service.py,prometheus/app/api/routes/issue.py) [1] [2] [3]Async Refactoring and Performance
answer_issueinIssueServiceand related routes to be asynchronous, including async invocation of patch creation and branch pushing, to improve responsiveness and reliability. (prometheus/app/services/issue_service.py,prometheus/app/api/routes/issue.py,prometheus/git/git_repository.py) [1] [2] [3] [4] [5]Context Extraction Node Improvements
prometheus/lang_graph/nodes/context_extraction_node.py,prometheus/utils/lang_graph_util.py) [1] [2] [3] [4] [5]File Utilities Enhancement
read_file_with_line_numbersto prepend line numbers to extracted file content, improving traceability in context summaries. (prometheus/utils/file_utils.py) [1] [2]Configuration and Limits
prometheus/lang_graph/subgraphs/issue_not_verified_bug_subgraph.py)