Add composite roles for AND permission checks - #954
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Team Run ID: 📒 Files selected for processing (9)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe permission model now supports ChangesComposite permission roles
Estimated code review effort: 3 (Moderate) | ~20 minutes Merge Risk: ⚪ Minimal · up to This change adds two-role all-of permissions so access is granted only for the exact composite role. The covered construction, validation, serialization, extraction, aggregation, and authorization paths leave no current merge-blocking risk. Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 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 |
Greptile SummaryThis PR introduces canonical two-role composites for representing AND permission checks.
Confidence Score: 5/5The PR appears safe to merge with no actionable correctness, security, or repository-rule violations identified. Composite roles remain canonical across construction, parsing, validation, document extraction, aggregate expansion, and the intentionally exact authorization matching model. Important Files Changed
Reviews (1): Last reviewed commit: "feat: add composite permission roles (#1..." | Re-trigger Greptile |
|
Closing this because I am withdrawing the dependency fork and will not proceed with this implementation. |
|
The dependency fork and branch have been restored. GitHub could not reopen this PR after the fork was deleted and recreated, so the work now continues in #955. |
Summary
Role::allOf()representation for two required rolesThis is the database-layer prerequisite for appwrite/appwrite#13317.
Testing
All checks were run inside Docker:
The complete adapter suite was also started, but the MySQL service stopped responding at 4% with
SQLSTATE[HY000]: General error: 2006 MySQL server has gone away; the issue-specific test had already passed against all 16 adapter configurations.Summary by CodeRabbit
New Features
Bug Fixes
Tests