Repository navigation
feat(authz): build the role assignation wizard from the catalog - #267
Conversation
|
Thanks for the pull request, @dcoa! 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. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## dcoa/catalog-4-user-permissions #267 +/- ##
================================================================
Coverage 98.90% 98.90%
================================================================
Files 81 81
Lines 1465 1465
Branches 477 451 -26
================================================================
Hits 1449 1449
Misses 16 16 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
281701c to
5d3a679
Compare
372a1f9 to
1f7b084
Compare
1f7b084 to
00be97f
Compare
jacobo-dominguez-wgu
left a comment
There was a problem hiding this comment.
Tested locally and works as described!
00be97f to
1fbd586
Compare
7621b84 to
a5aa50a
Compare
The wizard offers the catalog roles of the selected scope type and shows their permissions from the catalog. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Only one role is assigned, but each scope type rendered its own required radio group, so assistive technology announced several required choices and a selection in one group silently cleared another. Render one required radio group named by the Roles heading, with each scope type as a named group inside it. All the radios share a name, so arrow keys move through every role and a single selection is native. Roles offered in several scope types aren't supported yet, so the role identifies its scope type. Tests find the scope type groups by role and name, and drop the cases the single group makes redundant. Co-Authored-By: Claude Opus 5.5 <[email protected]>
a5aa50a to
bf39b88
Compare
|
🎉 This PR is included in version 1.0.0-alpha.13 🎉 The release is available on: Your semantic-release bot 📦🚀 |

Summary
Build the role assignment wizard from the AuthZ catalog, replacing its hardcoded role metadata.
manage-teampermission checks and course-authoring flag restrictions.course-v1andlib) for scope queries and wildcard helpers.Affects role selection, scope discovery, and role assignment. Depends on the preceding catalog changes, including #266.
Evidence
Before: The wizard offers frontend-maintained roles and looks up their scope types in hardcoded metadata.
After: Available roles come from the catalog, and the selected role determines which scope type can receive the assignment.
Tests cover permission-based role visibility, catalog ordering, loading and error states, single-selection semantics, scope filtering, wildcard scope helpers, and assignment submission.
Test instructions
npm test -- --watch=false --runInBand \ src/authz-module/role-assignation-wizard \ src/authz-module/constants.test.tsWith the catalog backend available:
Additional information
Partially closes openedx/openedx-authz#535
AI disclosure
Assisted by Claude