Repository navigation
docs: define applets for built-in authorization capabilities - #547
Conversation
|
Thanks for the pull request, @mariajgrimaldi! This repository is currently maintained by Once you've gone through the following steps feel free to tag them in a comment and let them know that your changes are ready for engineering review. 🔘 Get product approvalIf you haven't already, check this list to see if your contribution needs to go through the product review process.
🔘 Provide contextTo help your reviewers and other members of the community understand the purpose and larger context of your changes, feel free to add as much of the following information to the PR description as you can:
🔘 Get a green buildIf one or more checks are failing, continue working on your changes until this is no longer the case and your build turns green. DetailsWhere can I find more information?If you'd like to get more details on all aspects of the review process for open source pull requests (OSPRs), check out the following resources: When can I expect my changes to be merged?Our goal is to get community contributions seen and reviewed as efficiently as possible. However, the amount of time that it takes to review and merge a PR can vary significantly based on factors such as:
💡 As a result it may take up to several weeks or months to complete a review and merge your PR. |
|
Thanks for the pull request, @mariajgrimaldi! This repository is currently maintained by Once you've gone through the following steps feel free to tag them in a comment and let them know that your changes are ready for engineering review. 🔘 Get product approvalIf you haven't already, check this list to see if your contribution needs to go through the product review process.
🔘 Provide contextTo help your reviewers and other members of the community understand the purpose and larger context of your changes, feel free to add as much of the following information to the PR description as you can:
🔘 Get a green buildIf one or more checks are failing, continue working on your changes until this is no longer the case and your build turns green. 🔘 Update the status of your PRYour PR is currently marked as a draft. After completing the steps above, update its status by clicking "Ready for Review", or removing "WIP" from the title, as appropriate. Where can I find more information?If you'd like to get more details on all aspects of the review process for open source pull requests (OSPRs), check out the following resources: When can I expect my changes to be merged?Our goal is to get community contributions seen and reviewed as efficiently as possible. However, the amount of time that it takes to review and merge a PR can vary significantly based on factors such as:
💡 As a result it may take up to several weeks or months to complete a review and merge your PR. |
153f477 to
40509dc
Compare
0eb9d8c to
3c1763e
Compare
3c1763e to
db25302
Compare
|
If you'd like to see how these decisions look in code, please review #550, where we apply ADR 0032 and ADR 0033 to the existing definitions:
Then #552 adds the Instructor Dashboard permissions on top of that through three new applets: |
3e181bd to
e4aa79f
Compare
BryanttV
left a comment
There was a problem hiding this comment.
Hi @mariajgrimaldi, thanks for putting together this ADR. It wasn't a change I had initially considered, but the rationale behind it feels quite solid, and I really like the concept of applets. I think it brings much better organization and ownership to each definition. I just have a few comments.
e4aa79f to
9df2893
Compare
78201c1 to
9678508
Compare
rodmgwgu
left a comment
There was a problem hiding this comment.
I agree with this approach, thanks!
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
9678508 to
3a08219
Compare
Description
Issue #484 brings back the question of where Open edX-specific roles and permissions should live.
openedx-authzis intended to be reusable, but its shared files also hold definitions owned by different parts of the platform, so adding the Instructor Dashboard permissions there would make their ownership even harder to follow.To make that ownership explicit, ADR 0032 organizes these definitions into applets, which are internal packages inside the existing Django app that each stand for a bounded context in the edX DDD map and group the definitions and code that context owns. A permission belongs to the applet responsible for the action or data it controls, and a role belongs to the applet for the context where it is assigned, so other applets add their own permissions to it through role extensions without changing existing public APIs or imports. Since the course-team roles cut across several contexts, ADR 0033 places them in a shared
course_team_rolesapplet.The applets stay in
openedx-authzfor now, since moving the definitions to other services requires coordinated changes, while the existing schema contribution API leaves that option open for later. Because applets also hold the REST endpoints for their responsibility, the ADR adds a dated update to ADR 0026 for the new package layout.Merge checklist:
Check off if complete or not applicable: