forked from openedx/edx-platform
-
Notifications
You must be signed in to change notification settings - Fork 14
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
feat: [AXM-355] add information about offline metadata to course blocks #2571
Merged
GlugovGrGlib
merged 5 commits into
NiedielnitsevIvan/AXM-542/feature/Render-xblock-in-CMS
from
NiedielnitsevIvan/AXM-355/feature/Include-information-about-offlline-metadata-to-course-blocks
Jun 11, 2024
Merged
Changes from 1 commit
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
05deb31
feat: [AXM-355] add information about offline metadata to course blocks
NiedielnitsevIvan 4c24f3a
feat: [AXM-355] added a mechanism for generating offline content of b…
NiedielnitsevIvan d7ff649
style: [AXM-355] fix indentation
NiedielnitsevIvan 02d9f51
refactor: [AXM-583] refactor offline content generation
NiedielnitsevIvan 3abe52d
feat: [AXM-343] Transfer offline download solution for HTML xblock
NiedielnitsevIvan 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
Next
Next commit
feat: [AXM-355] add information about offline metadata to course blocks
commit 05deb315fc95f1ab89472e06b79109a17e00e2e2
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
""" | ||
Feature toggles for the offline mode app. | ||
""" | ||
from openedx.core.djangoapps.waffle_utils import CourseWaffleFlag | ||
|
||
WAFFLE_FLAG_NAMESPACE = 'offline_mode' | ||
|
||
# .. toggle_name: e | ||
# .. toggle_implementation: CourseWaffleFlag | ||
# .. toggle_default: False | ||
# .. toggle_description: This feature toggle enables the offline mode course | ||
# content generation for mobile devices. | ||
# .. toggle_use_cases: opt_out, open_edx | ||
# .. toggle_creation_date: 2024-06-06 | ||
# .. toggle_target_removal_date: None | ||
ENABLE_OFFLINE_MODE = CourseWaffleFlag(f'{WAFFLE_FLAG_NAMESPACE}.enable_offline_mode', __name__) | ||
|
||
|
||
def is_offline_mode_enabled(course_key=None): | ||
""" | ||
Returns True if the offline mode is enabled for the course, False otherwise. | ||
""" | ||
return ENABLE_OFFLINE_MODE.is_enabled(course_key) |
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.
Open edX mobile applications