AAP-86117 DRY up assignment classification and single-actor fallback - #1107
AAP-86117 DRY up assignment classification and single-actor fallback#1107AlanCoding wants to merge 1 commit into
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan includes up to 1 review per rolling hour; 0 remain after this review. 📝 WalkthroughWalkthrough
ChangesRBAC assignment processing
Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: ⚪ Minimal · up to The assignment classification and lookup paths are being simplified without any identified merge-blocking risk; the PR is merge-ready after normal checks and review. Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. @@ Coverage Diff @@
## devel #1107 +/- ##
==========================================
+ Coverage 94.77% 94.78% +0.01%
==========================================
Files 259 259
Lines 14485 14468 -17
Branches 2218 2211 -7
==========================================
- Hits 13728 13714 -14
+ Misses 757 754 -3
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report in Codecov by Harness.
🚀 New features to boost your workflow:
|
d1e562d to
e461e00
Compare
…in access list serializer Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
e461e00 to
b7e19f9
Compare
|
DVCS PR Check Results: PR appears valid (JIRA key(s) found) |
|



Summary
_classify_assignment_typestatic method to deduplicate the global/team/direct/indirect classification logic that was repeated in bothsummarize_assignment_listand_bulk_fetch_assignmentsget_object_role_assignments— it now always routes through_bulk_fetch_assignments, removing a separate code path that usedqueries.pyhelpers +summarize_assignment_listget_object_role_assignmentsby always setting_prefetched_assignmentswhen a parent existsFollows up on #1096 which introduced
_bulk_fetch_assignmentsbut left the old per-actor path in place.Test plan
test_app/tests/rbac/api/test_access_lists.py— 37 tests passtest_app/tests/rbac/api/test_access_assignment_uuid_lookup.py— passestest_app/tests/rbac/remote/test_remote_access_list.py— passestest_app/tests/rbac/test_permission_evaluation.py— passes🤖 Generated with Claude Code
Summary by CodeRabbit