-
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
Conversation
90dc1fa
to
a151cf8
Compare
a145bc0
to
fac1fd0
Compare
fac1fd0
to
1cc1fe8
Compare
b3114b2
to
450e04a
Compare
1cc1fe8
to
1348ea3
Compare
…locks when publishing courses
633c3fd
to
3abe52d
Compare
@@ -155,6 +159,13 @@ def listen_for_course_publish(sender, course_key, **kwargs): # pylint: disable= | |||
# Send to a signal for catalog info changes as well, but only once we know the transaction is committed. | |||
transaction.on_commit(lambda: emit_catalog_info_changed_signal(course_key)) | |||
|
|||
if is_offline_mode_enabled(course_key): | |||
requests.post( |
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.
We need to discuss this with somebody from AXIM: @GlugovGrGlib @NiedielnitsevIvan TBD
|
||
If offline content is available for the block, adds the offline download data to the block info. | ||
""" | ||
for block_id, block_info in blocks_info_data.items(): |
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.
Can we optimize it by filtering only for supported offline types?
TBD in follow up
@@ -9,5 +9,5 @@ | |||
MATHJAX_CDN_URL = f'https://cdn.jsdelivr.net/npm/mathjax@{MATHJAX_VERSION}/MathJax.js' | |||
MATHJAX_STATIC_PATH = os.path.join('assets', 'js', f'MathJax-{MATHJAX_VERSION}.js') | |||
|
|||
DEFAULT_OFFLINE_SUPPORTED_XBLOCKS = ['problem'] | |||
DEFAULT_OFFLINE_SUPPORTED_XBLOCKS = ['html'] |
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.
Does it intendant or a merge conflict?
# .. toggle_implementation: CourseWaffleFlag | ||
# .. toggle_default: False | ||
# .. toggle_description: This feature toggle enables the offline mode course | ||
# content generation for mobile devices. |
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
from .views import SudioCoursePublishedEventHandler | ||
|
||
urlpatterns = [ | ||
path('handle_course_published', SudioCoursePublishedEventHandler.as_view(), name='handle_course_published'), |
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.
It's definitely required to write up rationale for a separate Open edX application for offline support, as I believe we would have hard time merging it without ADR unfortunately.
9b14946
into
NiedielnitsevIvan/AXM-542/feature/Render-xblock-in-CMS
feat: [AXM-349] Implement media generation for problem xblock