[FC-0099] refactor: update content library permissions to use namespaced identifiers#142
Conversation
|
Thanks for the pull request, @BryanttV! 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. |
|
@BryanttV: Is the change in the MFE something we can do? Or could we ask for support? I think @jacobo-dominguez-wgu could give us a hand :) Let me know! |
|
@mariajgrimaldi, I think the changes aren’t many; in theory, it would just be a matter of renaming the permissions. But if @jacobo-dominguez-wgu could help us, that would be ideal!, Especially since I’m not really sure how to test the MFE locally. |
4073698 to
520a3ea
Compare
|
Will this need a migration to convert from the old names? |
@BryanttV, @mariajgrimaldi I created this issue openedx/frontend-app-admin-console#35 to track the work on the MFE |
bmtcril
left a comment
There was a problem hiding this comment.
Looks good to me as long as we can figure out merge order with the front end. Just one nit.
| @property | ||
| def name(self) -> str: | ||
| """The human-readable name of the action (e.g., 'Delete Library', 'Edit Content'). | ||
| """The human-readable name of the action (e.g., 'Content Libraries.Delete Library'). |
There was a problem hiding this comment.
Do these actually need the .?
There was a problem hiding this comment.
Maybe the . is not needed. I was looking into it, and I think a more human-readable structure with this new convention could be:
content_libraries.view_library → Content Libraries > View Library
What do you think? This is the commit: 108378f
@bmtcril, we can just run the |
mariajgrimaldi
left a comment
There was a problem hiding this comment.
LGTM!
Hope we can backport with this version so we don't need any other migration. Thanks!
That won't handle any manually added permissions via the UI, but I think if we get this on edx-platform master very soon it shouldn't matter. |
Description
BREAKING CHANGE: This PR updates the current content library permissions to include the
app_nameas a prefix. All future permissions should follow this convention.Example:
The above indicates that the
view_librarypermission is associated with thecontent_librariesapp.Related Issues
Dependencies
Important
We need to update the permissions on the frontend (MFE) for the changes to work correctly on the platform.
Testing Instructions
Merge checklist:
Check off if complete or not applicable: