Conversation
Co-Authored-By: gpt-5.6-luna <noreply@openai.com> Signed-off-by: Max Mitschke <mmitschk@redhat.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
Included review availability: Your plan provides up to 10 included reviews per hour; 8 remain after this review. 📝 WalkthroughWalkthroughThe label endpoint now bypasses the 100-label limit for disassociation requests. A unit test verifies that label filtering is skipped and ChangesLabel disassociation recovery
Priority: ➖ Normal Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix · Severity of issue fixed: Medium Merge Risk: ⚪ Minimal · up to The change preserves the attachment limit while allowing label disassociation, with targeted unit coverage for the bypass behavior. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Co-Authored-By: gpt-5.6-luna <noreply@openai.com> Signed-off-by: Max Mitschke <mmitschk@redhat.com>
|



SUMMARY
Allow label disassociation through the API when a resource already has more than the maximum of 100 labels.
The label attach/detach endpoint uses the same
POSThandler for both operations. The label-count guard previously ran for disassociation requests as well, preventing an over-limit resource from removing labels and recovering to a valid state. The guard now applies only to attach/create requests, while disassociation remains available. A unit test verifies that disassociation skips the label-count query.ISSUE TYPE
COMPONENT NAME
STEPS TO REPRODUCE AND EXTRA INFO
Associate more than 100 labels with a supported resource, such as a job template.
Send a request to the resource's labels endpoint to disassociate one of its labels:
Before this change, the request was rejected with HTTP 400 because the label-count limit was checked before disassociation. After this change, the label is disassociated successfully.
The 100-label limit remains enforced for new label attachments.
Summary by CodeRabbit
Bug Fixes
Tests