-
Notifications
You must be signed in to change notification settings - Fork 713
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
Reserved network locations for Studio and KDP #12703
Merged
bjester
merged 19 commits into
learningequality:develop
from
LianaHarris360:studio-kdp-reserved-networklocations
Nov 20, 2024
Merged
Changes from 16 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
41b0989
Remove dynamic field and its setter after migrating to field location…
LianaHarris360 8b4b872
Update task helper to prevent enqueuing new tasks when is_local is False
LianaHarris360 9704b4a
Use hardcoded ID to create reserved network locations for KDP
LianaHarris360 8a96989
Update reset_connection_states to handle reserved locations for Studi…
LianaHarris360 b9eb839
Update NetworkLocationSerializer to only allow static models to be cr…
LianaHarris360 9976dd6
Annotate dynamic attribute when location_type is dynamic within Netwo…
LianaHarris360 5ffd66c
Add syncable filter in NetworkLocationViewSet to include KDP and Stud…
LianaHarris360 5698dc9
Change DATA_PORTAL_INSTANCE_ID to DATA_PORTAL_BASE_INSTANCE_ID
LianaHarris360 4b785f0
Add test for enqueue_network_location_update_with_backoff when not_lo…
LianaHarris360 c1a5767
Remove use of dynamic field for NetworkLocation model
LianaHarris360 d51a97d
Remove filtering for KDP network locations before enqueuing
LianaHarris360 c4830a9
Enforce NetworkLocationSerializer to use StaticNetworkLocation model
LianaHarris360 7d0de1b
Add correct KDP instance_id
LianaHarris360 5dcb456
Return dynamic locations in addition to static ones
LianaHarris360 4969474
Remove duplicate KDP application setting
LianaHarris360 2d2b5af
Remove annotated dynamic attribute
LianaHarris360 9aa66e1
Refactor NetworkLocationViewSet to return dynamic locations
LianaHarris360 a425e4f
Remove NetworkLocationViewSet get_queryset redundancy
LianaHarris360 b97e1d3
Add API test cases for returned static, dynamic, and reserved network…
LianaHarris360 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
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
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
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
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
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
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.
This isn't quite 100% to what we need. For background, the reasoning behind this filter is to return locations that either are syncable (for facility data syncing) or can be used for content import. Studio can be used for content import but syncing. KDP can be used for syncing but not content import. As coded, this wouldn't return dynamic locations, which are similar to static in that we assume they can do both.
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.
So this filter should consistently return static and dynamic locations, and only include KDP/Studio reserved locations based on the syncable value?
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.
Yep!