-
Notifications
You must be signed in to change notification settings - Fork 4.2k
[Backport FC-0099] feat: add openedx-authz and update libraries enforcement points #37633
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Backport FC-0099] feat: add openedx-authz and update libraries enforcement points #37633
Conversation
|
Thanks for the pull request, @MaferMazu! 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. 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. |
87bc792 to
e736d11
Compare
|
@bmtcril, this backport has the consistent Python dependencies workflow failing due to this addition in |
|
Looks like you should upgrade-package package=<pypi_package_name> to make sure we get a valid dependency tree on the branch. |
|
Please ensure all of these PRs are included here: https://github.com/search?q=repo%3Aopenedx%2Fedx-platform+FC-0099++is%3Amerged&type=pullrequests. We're currently missing: #37532 |
|
@mariajgrimaldi that PR is already in |
3234587 to
e8f70b4
Compare
|
Thanks @bmtcril, that fixes the consistency issue. I'll backport the openedx-authz upgrade, but to maintain consistency, I'll run the package upgrade in this PR, and that will add |
|
To backport in this PR: #37652 |
e8f70b4 to
ff57124
Compare
|
This is ready for review @bmtcril @farhaanbukhsh @mariajgrimaldi 🙌 |
(cherry picked from commit 6c6fc5d)
…sion_for_library_key (openedx#37501) * feat: add the authz check to the library api function feat: add the authz publish check in rest_api blocks and containers feat: add the authz checks in libraries and refactor feat: add collections checks feat: update enforcement in serializer file refactor: refactor the permission check functions fix: fix value error fix: calling the queries twice * test: add structure for test and apply feedback refactor: refactor the tests and apply feedback fix: apply feedback Revert "refactor: refactor the tests and apply feedback" This reverts commit aa0bd52. refactor: use constants and avoid mapping test: fix the test to have them in order docs: about we rely on bridgekeeper and the old check for two cases docs: update openedx/core/djangoapps/content_libraries/api/libraries.py Co-authored-by: Maria Grimaldi (Majo) <[email protected]> refactor: use global scope wildcard instead of * refactor: allow receiving PermissionData objects refactor: do not inherit from BaseRolesTestCase to favor CL setup methods If both BaseRolesTestCase and ContentLibrariesRestApiTest define a method with the same name (e.g., setUp()), Python will use the one found first in the MRO, which is the one in BaseRolesTestCase because it is listed first in the class definition leading to unexpected behavior. refactor: remove unnecessary imports and indent * chore: bump openedx-authz version (cherry picked from commit f4f14a6)
* feat: Upgrade Python dependency openedx-authz handle cache invalidation Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master` * fix: update the num of queries in tests --------- Co-authored-by: MaferMazu <[email protected]> Co-authored-by: Maria Fernanda Magallanes Zubillaga <[email protected]> (cherry picked from commit 122b4e0)
ff57124 to
044ac07
Compare
bmtcril
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
mariajgrimaldi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested this locally alongside tutor@ulmo and tutor-mfe@ulmo and it's working as expected! Thank you so much :)
Description
Backport of #37564, #37501, #37652, and update requirements.
Other information
openedx/platform-roadmap#246 (comment)