Skip to content
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

Support "downloading" a content pack without an internet connection #905

Merged
merged 3 commits into from
Jan 8, 2024

Conversation

dylanmccall
Copy link
Collaborator

Originally, the same code was used in two different components.

https://phabricator.endlessm.com/T35137
@dylanmccall dylanmccall requested a review from manuq January 4, 2024 21:58
By using a new `isDownloadRequired` property in the get_collection_info
API, we can determine ahead of time if the selected content pack will
require an internet connection. Using that information, we can disable
the Download button only if a connection is required.

https://phabricator.endlessm.com/T35137
By using generators instead of functions returning lists, we enable a
small performance optimization when determining if a download is
required.

https://phabricator.endlessm.com/T35137
@dylanmccall dylanmccall force-pushed the T35137-download-when-offline branch from 5e92fd2 to 0b773ee Compare January 4, 2024 22:35
Copy link
Collaborator

@manuq manuq left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great. In the future it would be nice to also check if Kolibri Studios is reachable. I remember that we looked at this a while back, and the Device tab in Kolibri does that.

@manuq manuq merged commit 9179799 into master Jan 8, 2024
3 checks passed
@manuq manuq deleted the T35137-download-when-offline branch January 8, 2024 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants