-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Reduce number of queries required for content tagging endpoints #34200
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
Merged
bradenmacdonald
merged 24 commits into
openedx:master
from
open-craft:jill/tagging-less-queries
Feb 16, 2024
Merged
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
0a3ada3
test: fixes "list taxonomies for org" test URL
pomegranited 8e7823e
fix: filter list of taxonomies by org without fetching the Organization
pomegranited 3057ccf
fix: prefetch tag_set to reduce queries
pomegranited 8a0d598
fix: lint
pomegranited 6e094ef
fix: prefetch taxonomyorg orgs
pomegranited 3cc2f13
Merge branch 'master' into jill/tagging-less-queries
pomegranited 016f2a5
temp: use openedx-learning branch from pr#157
pomegranited 38bef63
fix: iterate over prefetched taxonomyorgs instead of filtering
pomegranited e581951
fix: Adds a check for the TaxonomyOrg.rel_type when serializing orgs
pomegranited b46f466
fix: oel_tagging library change reduced query count
pomegranited 5dbae2f
fix: annotate taxonomies with their tags_count
pomegranited 392ccf2
test: adds query count tests for non-taxonomy admins
pomegranited 07031d0
fix: use qs.exists() instead of len(qs) > 0
pomegranited ab01a79
fix: fetch all content library orgs at once
pomegranited 76b080b
fix: reduced query counts by using the user's RoleCache
pomegranited 85eb4f1
fix: adds content_tagging rules cache for Organization list
pomegranited 8ee319b
fix: adds library orgs cache
pomegranited 05a6fd9
fix: address nits in PR review
pomegranited 011a99b
fix: nit
pomegranited eac1f26
fix: prevent cross-org ObjectTags from being created (#633)
pomegranited 95861c7
feat: updates openedx-learning dependency
pomegranited a75a231
Merge branch 'master' into jill/tagging-less-queries
rpenido 3b65f89
fix: missing import
rpenido 0296241
fix: return False if user is anonymous
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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
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.
Uh oh!
There was an error while loading. Please reload this page.