feat: add object tag view permissions [FC-0036]#94
Conversation
|
Thanks for the pull request, @rpenido! Please note that it may take us up to several weeks or months to complete a review and merge your PR. Feel free to add as much of the following information to the ticket as you can:
All technical communication about the code itself will be done via the GitHub pull request interface. As a reminder, our process documentation is here. Please let us know once your PR is ready for our review and all tests are green. |
ed87a26 to
447c7ba
Compare
3087faa to
9b886cf
Compare
|
@rpenido I don't think this PR is necessary -- We're anticipating functionality that's not specified yet, and that's gotten us into trouble before. I think it's enough for now to have this restriction in the |
|
Hi @pomegranited! I agree with you regarding the filter, but I think the permission belongs here:
I'll change the code to make it minimal. Let me know what you think! |
9b886cf to
4a95e0a
Compare
b8f113b to
c1502d0
Compare
pomegranited
left a comment
There was a problem hiding this comment.
I agree with you regarding the filter, but I think the permission belongs here:
Ok yes, I get your reasoning for putting the rules check and view change here. 👍
But why make oel_tagging.view_objecttag_objectid False by default?
b727ed2 to
11c6f46
Compare
11c6f46 to
d7f78c1
Compare
…ized Co-authored-by: Jillian <jill@opencraft.com>
The "view objecttag" rule now checks permissions for the taxonomy and object_id if provided.
|
Hi @pomegranited! I think we are close! I made the requested changes. |
d85ee7f to
677260d
Compare
pomegranited
left a comment
There was a problem hiding this comment.
👍 This is looking good, thank you @rpenido , and ready for CC review!
Could you make sure there's a version bump before it gets merged?
- I tested this by checking the unit tests, and by ensuring this branch is installed for the tests run by openedx/openedx-platform#33413
- I read through the code
-
I checked for accessibility issuesN/A - Includes documentation -- good code comments
- Commit structure follows OEP-0051
|
Thank you for the review @pomegranited! |
bradenmacdonald
left a comment
There was a problem hiding this comment.
Nice! Just one minor question / change request, then I'll approve and merge.
f43f2ad to
c082514
Compare
c082514 to
6b91980
Compare
|
@rpenido Would you like me to merge this now? |
|
Sure @bradenmacdonald! I think we are good here! |
|
@rpenido 🎉 Your pull request was merged! Please take a moment to answer a two question survey so we can improve your experience in the future. |
Description
Add view permission for ObjectTag
oel_tagging.view_objecttag_objectidrule is used in the rest API view to check if the user has permission on the object_id to see its tagsSupporting Information
Testing instructions
Private-ref: FAL-3518