-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
fix: update taxonomies permission rules #33413
Merged
bradenmacdonald
merged 35 commits into
openedx:master
from
open-craft:rpenido/fal-3518-permissions-for-taxonomies
Oct 19, 2023
Merged
Changes from all commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
9594728
fix: update taxonomies permission rules
rpenido fd29a6d
fix: rename ChangeObjectTagPermissionItem -> ObjectTagPermissionItem
rpenido 09b62ff
refactor: use content library api
rpenido a1cc0fa
test: fix tests
rpenido 999fe76
fix: lint-import
rpenido 2d2555f
test: fix constant
rpenido 5223bcc
test: add export tests
rpenido b420d59
fix: pylint and import
rpenido 32d20b2
style: fix pylint
rpenido 5d85063
fix: use correct ObjectTagOrgViewSet
rpenido 02deb59
refactor: cleaning unused methods
rpenido 43ebe36
chore: update requirements constraints
rpenido 86ee948
test: fix test and remove unecessary checks
rpenido bfbc1d9
style: remove comments
rpenido ac71790
Merge branch 'master' into rpenido/fal-3518-permissions-for-taxonomies
rpenido 6803f50
refactor: fix pylint
rpenido a6b4b46
fix: pylint
rpenido 334822d
style: fix pylint
rpenido 990039c
fix: override export_taxonomy rule
rpenido 7c9a907
fix: update rule use
rpenido 6a04d1b
style: fix pylint
rpenido 8c329be
test: fix test_rules
rpenido 9695d67
test: add get objet tags test
rpenido 5af9f13
Merge branch 'master' into rpenido/fal-3518-permissions-for-taxonomies
rpenido 381f4df
refactor: remove can_change_object_tag_taxonomy
rpenido d1f4091
Merge branch 'master' into rpenido/fal-3518-permissions-for-taxonomies
rpenido 575db34
fix: wrong permission name
rpenido 992a28c
fix: override can_view_object_tag_taxonomy rule
rpenido 4f80c1f
Merge branch 'master' into rpenido/fal-3518-permissions-for-taxonomies
rpenido 10c34b4
chore: update requirements
rpenido 9f24e32
refactor: add type guards
rpenido 5398ee7
fix: add type guards
rpenido 02dbef4
Merge branch 'master' into rpenido/fal-3518-permissions-for-taxonomies
rpenido 66158a7
docs: fix docstring
rpenido 217cedb
test: remove ENABLE_CREATOR_GROUP tests and fix some docstrings
rpenido File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Your filters here look great, @rpenido . But I'm concerned about the low (71%) test coverage of this
filters.py
file.It looks like
ObjectTagTaxonomyOrgFilterBackend
isn't used by the tests at all, I'm guessing becauseTestObjectTagViewSet
only tests ObjectTag creation, not fetching ObjectTags?If you add tests to GET ObjectTags too for the various types of org/users and
object_id
s, that should cover thecan_view_object_tag_objectid
rule too.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 messed up on some merge conflicts. I was using the View from oel_tagging, not the one overridden here.
Fixed here (5d85063), but I will check why the tests didn't catch this.