Conversation
|
@copilot # Exclude "Moved to other CF" patches from draft commitfests @@ -616,12 +620,22 @@ def commitfest(request, cfid): |
Co-authored-by: Aditya-Sarna <107273722+Aditya-Sarna@users.noreply.github.com>
Yes, this solution is appropriate. The changes accomplish two things:
This ensures consistency - if moved patches aren't shown in the list, they shouldn't be counted in the summary either. The filtering only applies to draft CFs where moved patches are clutter, while regular CFs continue to show all patches including moved ones. Implemented in commit 97d73c9. |
Co-authored-by: Aditya-Sarna <107273722+Aditya-Sarna@users.noreply.github.com>
Removes "Moved to other CF" patches from draft commitfest page views to reduce clutter. These patches have been moved to other commitfests and are no longer relevant to the draft CF.
Changes Made
1. Patch List Query (patchlist function)
Added conditional filter in
views.pyto excludeSTATUS_MOVEDpatches when viewing draft CFs:2. Status Summary Query (commitfest function)
Modified query building in
views.pyto conditionally excludeSTATUS_MOVEDfrom the status summary for draft CFs:3. Parameter Addition
Added
status_movedparameter to the params dict for use in queries.How It Works
Before: Draft CF pages showed all patches including those with "Moved to different CF" status, cluttering the view with patches that are no longer relevant.
After: Draft CF pages now filter out STATUS_MOVED patches in both:
Regular (non-draft) commitfests continue to show all patches including moved ones, maintaining existing behavior for those views.
Testing
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.