feat: Backfill and Django Admin for Learning Sequence Outline
* Adds the backfill_course_outlines management command to contentstore * Adds a read-only Django admin interface to learning_sequences for the support team and debugging. * Adds two new functions to the learning_sequences public API: key_supports_outlines and get_course_keys_with_outlines The learning_sequences app isn't supposed to know about contentstore or modulestore, as it's intended to be extracted out of edx-platform in the long term. Therefore, the backfill_course_outlines command is in contentstore, and not learning_sequences. This work was tracked in TNL-7983, but it also fixes a bug where we were trying to generate course outlines for libraries (TNL-7981). All Open edX instances upgrading to Lilac should run the backfill_course_outlines command as part of their upgrade process.
Showing
- cms/djangoapps/contentstore/management/commands/backfill_course_outlines.py 66 additions, 0 deletions...tentstore/management/commands/backfill_course_outlines.py
- cms/djangoapps/contentstore/management/commands/tests/test_backfill_course_outlines.py 117 additions, 0 deletions...anagement/commands/tests/test_backfill_course_outlines.py
- cms/djangoapps/contentstore/signals/handlers.py 3 additions, 1 deletioncms/djangoapps/contentstore/signals/handlers.py
- cms/djangoapps/contentstore/tasks.py 11 additions, 0 deletionscms/djangoapps/contentstore/tasks.py
- openedx/core/djangoapps/content/learning_sequences/admin.py 96 additions, 0 deletionsopenedx/core/djangoapps/content/learning_sequences/admin.py
- openedx/core/djangoapps/content/learning_sequences/api/__init__.py 2 additions, 0 deletions...ore/djangoapps/content/learning_sequences/api/__init__.py
- openedx/core/djangoapps/content/learning_sequences/api/outlines.py 33 additions, 1 deletion...ore/djangoapps/content/learning_sequences/api/outlines.py
- openedx/core/djangoapps/content/learning_sequences/api/tests/test_outlines.py 20 additions, 5 deletions...pps/content/learning_sequences/api/tests/test_outlines.py
- openedx/core/djangoapps/content/learning_sequences/apps.py 1 addition, 1 deletionopenedx/core/djangoapps/content/learning_sequences/apps.py
- openedx/core/djangoapps/content/learning_sequences/migrations/0008_add_learning_context_title_index.py 18 additions, 0 deletions...ences/migrations/0008_add_learning_context_title_index.py
- openedx/core/djangoapps/content/learning_sequences/models.py 5 additions, 2 deletionsopenedx/core/djangoapps/content/learning_sequences/models.py
- openedx/core/djangoapps/content/learning_sequences/views.py 2 additions, 2 deletionsopenedx/core/djangoapps/content/learning_sequences/views.py
Loading
Please register or sign in to comment