-
Notifications
You must be signed in to change notification settings - Fork 4
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
Use manifest.json files to download collections #436
Merged
Merged
Changes from 1 commit
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
ed1fdb1
Use manifest.json files to download collections
danigm 523780c
Fallback collection download to remote by token
danigm 63cdfa6
Use collections by grade
danigm 5f80a8f
Fix InstallContentModal visibility at launch
danigm 53cf7b2
Reload ContentNodeResource on reloadChannels
danigm 195f340
Improve download job handling
danigm 4068f9b
Show percentage in the Download progress bar
danigm 5cadfc7
Use .values() instead of .items() in collection view
danigm c29aeae
Show error if collection manifest is not there
danigm 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
Fallback collection download to remote by token
This patch install the collection using the token if the manifest file is not present or can't be found. https://phabricator.endlessm.com/T33570
- Loading branch information
commit 523780ca2c6814e430849e99c9377f307dba1c6a
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
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.
👍 there's a subtle difference in how
node_ids=[]
is handled between the code that copies data and the code that marks nodes as available, so this is a useful way to deal with that.It's worth noting this behaviour will be different with learningequality/kolibri#9460. Setting
include_node_ids: []
is the same as saying "no nodes", whileinclude_node_ids: None
means "the default, which is all of the nodes".Once we have Kolibri with my changes applied, the manifest file code should actually never create a manifest file with the latter: if it includes all the nodes from a channel, it ends up with
include_node_ids: [${channel_id}]
. If a manifest file hasinclude_node_ids: []
, it's probably wrong but there's no need arguing with it.Hopefully in a future iteration we can pass a manifest file directly to the remoteimport task so we don't need to deal with all this :)