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

feat: [AXM-355] add information about offline metadata to course blocks #2571

Conversation

NiedielnitsevIvan
Copy link

@NiedielnitsevIvan NiedielnitsevIvan self-assigned this Jun 6, 2024
@NiedielnitsevIvan NiedielnitsevIvan changed the title Niedielnitsev ivan/axm 355/feature/include information about offlline metadata to course blocks feat: [AXM-349] Implement media generation for problem xblock Jun 6, 2024
@NiedielnitsevIvan NiedielnitsevIvan force-pushed the NiedielnitsevIvan/AXM-355/feature/Include-information-about-offlline-metadata-to-course-blocks branch from 90dc1fa to a151cf8 Compare June 6, 2024 16:17
@NiedielnitsevIvan NiedielnitsevIvan changed the base branch from mob-develop to NiedielnitsevIvan/AXM-349/feature/Implement-media-generation-for-problem-xblock June 6, 2024 16:17
@NiedielnitsevIvan NiedielnitsevIvan force-pushed the NiedielnitsevIvan/AXM-355/feature/Include-information-about-offlline-metadata-to-course-blocks branch 2 times, most recently from a145bc0 to fac1fd0 Compare June 6, 2024 16:21
@NiedielnitsevIvan NiedielnitsevIvan changed the title feat: [AXM-349] Implement media generation for problem xblock feat: [AXM-355] add information about offline metadata to course blocks Jun 6, 2024
@NiedielnitsevIvan NiedielnitsevIvan force-pushed the NiedielnitsevIvan/AXM-355/feature/Include-information-about-offlline-metadata-to-course-blocks branch from fac1fd0 to 1cc1fe8 Compare June 7, 2024 06:40
@NiedielnitsevIvan NiedielnitsevIvan force-pushed the NiedielnitsevIvan/AXM-349/feature/Implement-media-generation-for-problem-xblock branch from b3114b2 to 450e04a Compare June 10, 2024 13:29
@NiedielnitsevIvan NiedielnitsevIvan force-pushed the NiedielnitsevIvan/AXM-355/feature/Include-information-about-offlline-metadata-to-course-blocks branch from 1cc1fe8 to 1348ea3 Compare June 10, 2024 13:38
@GlugovGrGlib GlugovGrGlib changed the base branch from NiedielnitsevIvan/AXM-349/feature/Implement-media-generation-for-problem-xblock to mob-develop June 11, 2024 08:58
@GlugovGrGlib GlugovGrGlib changed the base branch from mob-develop to NiedielnitsevIvan/AXM-542/feature/Render-xblock-in-CMS June 11, 2024 09:00
@GlugovGrGlib GlugovGrGlib force-pushed the NiedielnitsevIvan/AXM-355/feature/Include-information-about-offlline-metadata-to-course-blocks branch from 633c3fd to 3abe52d Compare June 11, 2024 09:13
@@ -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(
Copy link
Collaborator

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():
Copy link
Collaborator

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']
Copy link
Collaborator

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.
Copy link
Collaborator

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'),
Copy link
Collaborator

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.

@GlugovGrGlib GlugovGrGlib merged commit 9b14946 into NiedielnitsevIvan/AXM-542/feature/Render-xblock-in-CMS Jun 11, 2024
37 of 38 checks passed
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