Skip to content

docs: define applets for built-in authorization capabilities - #547

Merged
BryanttV merged 6 commits into
mainfrom
MJG/applets-adr
Nov 6, 2026
Merged

BryanttV merged 6 commits into
mainfrom
MJG/applets-adr

Conversation

@mariajgrimaldi

@mariajgrimaldi mariajgrimaldi commented Oct 21, 2026 •

Copy link
Copy Markdown
Member

Description

Issue #484 brings back the question of where Open edX-specific roles and permissions should live. openedx-authz is 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_roles applet.

The applets stay in openedx-authz for 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:

  • Documentation updated (not only docstrings)
  • Fixup commits are squashed away
  • Unit tests added/updated
  • Manual testing instructions provided
  • Noted any: Concerns, dependencies, migration issues, deadlines, tickets

@openedx-webhooks openedx-webhooks added open-source-contribution PR author is not from Axim or 2U core contributor PR author is a Core Contributor (who may or may not have write access to this repo). labels Oct 21, 2026
@openedx-webhooks

openedx-webhooks commented Oct 21, 2026 •

Copy link
Copy Markdown

Thanks for the pull request, @mariajgrimaldi!

This repository is currently maintained by @openedx/committers-openedx-authz.

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 approval

If you haven't already, check this list to see if your contribution needs to go through the product review process.

  • If it does, you'll need to submit a product proposal for your contribution, and have it reviewed by the Product Working Group.
    • This process (including the steps you'll need to take) is documented here.
  • If it doesn't, simply proceed with the next step.
🔘 Provide context

To 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:

  • Dependencies

    This PR must be merged before / after / at the same time as ...

  • Blockers

    This PR is waiting for OEP-1234 to be accepted.

  • Timeline information

    This PR must be merged by XX date because ...

  • Partner information

    This is for a course on edx.org.

  • Supporting documentation
  • Relevant Open edX discussion forum threads
🔘 Get a green build

If one or more checks are failing, continue working on your changes until this is no longer the case and your build turns green.

Details
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:

  • The size and impact of the changes that it introduces
  • The need for product review
  • Maintenance status of the parent repository

💡 As a result it may take up to several weeks or months to complete a review and merge your PR.

@openedx-webhooks

Copy link
Copy Markdown

Thanks for the pull request, @mariajgrimaldi!

This repository is currently maintained by @openedx/committers-openedx-authz.

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 approval

If you haven't already, check this list to see if your contribution needs to go through the product review process.

  • If it does, you'll need to submit a product proposal for your contribution, and have it reviewed by the Product Working Group.
    • This process (including the steps you'll need to take) is documented here.
  • If it doesn't, simply proceed with the next step.
🔘 Provide context

To 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:

  • Dependencies

    This PR must be merged before / after / at the same time as ...

  • Blockers

    This PR is waiting for OEP-1234 to be accepted.

  • Timeline information

    This PR must be merged by XX date because ...

  • Partner information

    This is for a course on edx.org.

  • Supporting documentation
  • Relevant Open edX discussion forum threads
🔘 Get a green build

If 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 PR

Your 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:

  • The size and impact of the changes that it introduces
  • The need for product review
  • Maintenance status of the parent repository

💡 As a result it may take up to several weeks or months to complete a review and merge your PR.

@github-project-automation github-project-automation Bot moved this to Needs Triage in Contributions Oct 21, 2026
@mariajgrimaldi
mariajgrimaldi added this pull request to stack #549 October 21, 2026 13:45
@mphilbrick211 mphilbrick211 moved this from Needs Triage to Waiting on Author in Contributions Oct 22, 2026
@mariajgrimaldi
mariajgrimaldi force-pushed the MJG/applets-adr branch 3 times, most recently from 0eb9d8c to 3c1763e Compare October 23, 2026 10:53
@mariajgrimaldi
mariajgrimaldi marked this pull request as ready for review October 23, 2026 11:24
@mariajgrimaldi

Copy link
Copy Markdown
Member Author

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:

  • the library roles and permissions move to content_libraries;
  • the course permissions move to course_authoring, which adds them to the course-team roles through role_extensions;
  • the course-team roles move to course_team_roles, whose base definitions list only the legacy compatibility permissions;
  • role constants become RoleData identifiers without permissions, while openedx_authz.constants keeps the existing import paths.

Then #552 adds the Instructor Dashboard permissions on top of that through three new applets: enrollments, learner_grading, and learner_administration.

@mariajgrimaldi mariajgrimaldi linked an issue Oct 23, 2026 that may be closed by this pull request
4 tasks
@mariajgrimaldi
mariajgrimaldi force-pushed the MJG/applets-adr branch 2 times, most recently from 3e181bd to e4aa79f Compare October 23, 2026 13:05

@BryanttV BryanttV left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@mariajgrimaldi
mariajgrimaldi force-pushed the MJG/applets-adr branch 3 times, most recently from 78201c1 to 9678508 Compare November 4, 2026 11:32

@BryanttV BryanttV left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks for this.

@mphilbrick211 mphilbrick211 moved this from Waiting on Author to In Eng Review in Contributions Nov 4, 2026

@rodmgwgu rodmgwgu left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree with this approach, thanks!

@BryanttV
BryanttV merged commit 1e96734 into main Nov 6, 2026
8 checks passed
@BryanttV
BryanttV deleted the MJG/applets-adr branch November 6, 2026 15:05
@github-project-automation github-project-automation Bot moved this from In Eng Review to Done in Contributions Nov 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core contributor PR author is a Core Contributor (who may or may not have write access to this repo). open-source-contribution PR author is not from Axim or 2U

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Register Instructor Dashboard permissions in AuthZ (LMS)

4 participants