-
Notifications
You must be signed in to change notification settings - Fork 11
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
feat: add object tag view permissions [FC-0036] #94
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
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 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 <[email protected]>
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
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.
👍 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 fix: update taxonomies permission rules edx-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! |
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.
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_objectid
rule 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