-
Notifications
You must be signed in to change notification settings - Fork 1.2k
fix: Apply suggestions_score_threshold filter to inline code suggestions in dual publishing mode #2121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
…ons in dual publishing mode - Added score filtering to push_inline_code_suggestions - Ensured inline suggestions are properly filtered when dual publishing is enabled - High-importance suggestions appear in both table and inline; others only inline
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
|||||||||||||||||||||||
|
/improve |
PR Code Suggestions ✨Latest suggestions up to 7b9e8bf
Previous suggestions✅ Suggestions up to commit 1315fa6
✅ Suggestions up to commit ab808fd
✅ Suggestions up to commit ab808fd
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Persistent suggestions updated to latest commit ab808fd |
- **Refactor `run` method in `PRCodeSuggestions`**: - Pre-filter suggestions based on `suggestions_score_threshold` early in the process to prevent publishing low-score suggestions in any mode. - Separate inline and table publishing logic for better clarity and control. - Ensure dual publishing mode correctly displays all valid suggestions inline while filtering the summary table based on `dual_publishing_score_threshold`. - Fix potential issue where the progress bar or "no suggestions" message could be mishandled when no high-score suggestions exist for the table. - **Update `push_inline_code_suggestions`**: - Re-verify score threshold within the function to ensure robust filtering (though pre-filtering in `run` handles this primarily now).
|
/review |
PR Reviewer Guide 🔍(Review updated until commit 7b9e8bf)Here are some key observations to aid the review process:
|
|
/improve --pr_code_suggestions.dual_publishing_score_threshold=7 |
|
Persistent suggestions updated to latest commit 1315fa6 |
Co-authored-by: qodo-merge-for-open-source[bot] <189517486+qodo-merge-for-open-source[bot]@users.noreply.github.com>
|
/review |
|
Persistent review updated to latest commit 7b9e8bf |
|
/improve |
|
Persistent suggestions updated to latest commit 7b9e8bf |
User description
PR Type
Bug fix
Description
Apply score threshold filtering to inline code suggestions in dual publishing mode
Filter suggestions before processing to ensure only high-importance suggestions are included
Fix newline formatting at end of file
Diagram Walkthrough
File Walkthrough
pr_code_suggestions.py
Add score filtering to inline code suggestionspr_agent/tools/pr_code_suggestions.py
push_inline_code_suggestionsmethod
suggestions_score_thresholdsetting beforeprocessing
suggestions