ol-openedx-course-sync 1.2.0__tar.gz → 1.2.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {ol_openedx_course_sync-1.2.0 → ol_openedx_course_sync-1.2.2}/PKG-INFO +2 -1
- {ol_openedx_course_sync-1.2.0 → ol_openedx_course_sync-1.2.2}/README.rst +1 -0
- {ol_openedx_course_sync-1.2.0 → ol_openedx_course_sync-1.2.2}/ol_openedx_course_sync/admin.py +7 -1
- {ol_openedx_course_sync-1.2.0 → ol_openedx_course_sync-1.2.2}/ol_openedx_course_sync/models.py +9 -0
- {ol_openedx_course_sync-1.2.0 → ol_openedx_course_sync-1.2.2}/pyproject.toml +1 -1
- {ol_openedx_course_sync-1.2.0 → ol_openedx_course_sync-1.2.2}/.gitignore +0 -0
- {ol_openedx_course_sync-1.2.0 → ol_openedx_course_sync-1.2.2}/LICENCE +0 -0
- {ol_openedx_course_sync-1.2.0 → ol_openedx_course_sync-1.2.2}/ol_openedx_course_sync/__init__.py +0 -0
- {ol_openedx_course_sync-1.2.0 → ol_openedx_course_sync-1.2.2}/ol_openedx_course_sync/apps.py +0 -0
- {ol_openedx_course_sync-1.2.0 → ol_openedx_course_sync-1.2.2}/ol_openedx_course_sync/constants.py +0 -0
- {ol_openedx_course_sync-1.2.0 → ol_openedx_course_sync-1.2.2}/ol_openedx_course_sync/management/__init__.py +0 -0
- {ol_openedx_course_sync-1.2.0 → ol_openedx_course_sync-1.2.2}/ol_openedx_course_sync/management/commands/__init__.py +0 -0
- {ol_openedx_course_sync-1.2.0 → ol_openedx_course_sync-1.2.2}/ol_openedx_course_sync/management/commands/migrate_legacy_library_blocks_to_item_bank.py +0 -0
- {ol_openedx_course_sync-1.2.0 → ol_openedx_course_sync-1.2.2}/ol_openedx_course_sync/management/commands/sync_problem_actions.py +0 -0
- {ol_openedx_course_sync-1.2.0 → ol_openedx_course_sync-1.2.2}/ol_openedx_course_sync/migrations/0001_initial.py +0 -0
- {ol_openedx_course_sync-1.2.0 → ol_openedx_course_sync-1.2.2}/ol_openedx_course_sync/migrations/__init__.py +0 -0
- {ol_openedx_course_sync-1.2.0 → ol_openedx_course_sync-1.2.2}/ol_openedx_course_sync/pipeline.py +0 -0
- {ol_openedx_course_sync-1.2.0 → ol_openedx_course_sync-1.2.2}/ol_openedx_course_sync/settings/__init__.py +0 -0
- {ol_openedx_course_sync-1.2.0 → ol_openedx_course_sync-1.2.2}/ol_openedx_course_sync/settings/common.py +0 -0
- {ol_openedx_course_sync-1.2.0 → ol_openedx_course_sync-1.2.2}/ol_openedx_course_sync/settings/filters.py +0 -0
- {ol_openedx_course_sync-1.2.0 → ol_openedx_course_sync-1.2.2}/ol_openedx_course_sync/settings/production.py +0 -0
- {ol_openedx_course_sync-1.2.0 → ol_openedx_course_sync-1.2.2}/ol_openedx_course_sync/signals.py +0 -0
- {ol_openedx_course_sync-1.2.0 → ol_openedx_course_sync-1.2.2}/ol_openedx_course_sync/tasks.py +0 -0
- {ol_openedx_course_sync-1.2.0 → ol_openedx_course_sync-1.2.2}/ol_openedx_course_sync/urls.py +0 -0
- {ol_openedx_course_sync-1.2.0 → ol_openedx_course_sync-1.2.2}/ol_openedx_course_sync/utils.py +0 -0
- {ol_openedx_course_sync-1.2.0 → ol_openedx_course_sync-1.2.2}/ol_openedx_course_sync/views.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: ol-openedx-course-sync
|
|
3
|
-
Version: 1.2.
|
|
3
|
+
Version: 1.2.2
|
|
4
4
|
Summary: An Open edX plugin to sync course changes to its reruns.
|
|
5
5
|
Author: MIT Office of Digital Learning
|
|
6
6
|
License-Expression: BSD-3-Clause
|
|
@@ -84,6 +84,7 @@ Course Sync (CMS)
|
|
|
84
84
|
* The plugin will automatically add course re-runs created from the CMS as the child courses.
|
|
85
85
|
* The organization can be different for the reruns.
|
|
86
86
|
* Target/rerun courses can be managed in the CMS admin model `CourseSyncMapping`.
|
|
87
|
+
* The "Sync Course Content" and "Sync Course Assets" admin actions are only available in the CMS admin, since the sync tasks run on CMS workers.
|
|
87
88
|
* Now, any changes made in the source course will be synced to the target courses.
|
|
88
89
|
|
|
89
90
|
Legacy Library Migration (CMS)
|
|
@@ -69,6 +69,7 @@ Course Sync (CMS)
|
|
|
69
69
|
* The plugin will automatically add course re-runs created from the CMS as the child courses.
|
|
70
70
|
* The organization can be different for the reruns.
|
|
71
71
|
* Target/rerun courses can be managed in the CMS admin model `CourseSyncMapping`.
|
|
72
|
+
* The "Sync Course Content" and "Sync Course Assets" admin actions are only available in the CMS admin, since the sync tasks run on CMS workers.
|
|
72
73
|
* Now, any changes made in the source course will be synced to the target courses.
|
|
73
74
|
|
|
74
75
|
Legacy Library Migration (CMS)
|
{ol_openedx_course_sync-1.2.0 → ol_openedx_course_sync-1.2.2}/ol_openedx_course_sync/admin.py
RENAMED
|
@@ -5,6 +5,7 @@ Django admin for ol-openedx-course-sync plugin
|
|
|
5
5
|
import logging
|
|
6
6
|
|
|
7
7
|
from django import forms
|
|
8
|
+
from django.conf import settings
|
|
8
9
|
from django.contrib import admin
|
|
9
10
|
from organizations.models import Organization
|
|
10
11
|
|
|
@@ -58,7 +59,12 @@ class CourseSyncMappingAdmin(admin.ModelAdmin):
|
|
|
58
59
|
list_display = ("source_course", "target_course", "is_active")
|
|
59
60
|
search_fields = ("source_course", "target_course")
|
|
60
61
|
list_filter = ("is_active",)
|
|
61
|
-
|
|
62
|
+
# Sync tasks run on CMS workers, so only the CMS admin offers the actions.
|
|
63
|
+
actions = (
|
|
64
|
+
("sync_course_content", "sync_course_assets")
|
|
65
|
+
if settings.SERVICE_VARIANT == "cms"
|
|
66
|
+
else ()
|
|
67
|
+
)
|
|
62
68
|
|
|
63
69
|
def get_readonly_fields(self, request, obj=None): # noqa: ARG002
|
|
64
70
|
"""
|
{ol_openedx_course_sync-1.2.0 → ol_openedx_course_sync-1.2.2}/ol_openedx_course_sync/models.py
RENAMED
|
@@ -75,6 +75,15 @@ class CourseSyncMapping(models.Model):
|
|
|
75
75
|
"""
|
|
76
76
|
super().clean()
|
|
77
77
|
|
|
78
|
+
# Course keys are case-insensitive in Studio and MySQL, so compare them that way
|
|
79
|
+
if (
|
|
80
|
+
self.source_course
|
|
81
|
+
and str(self.source_course).lower() == str(self.target_course).lower()
|
|
82
|
+
):
|
|
83
|
+
raise ValidationError(
|
|
84
|
+
{"target_course": "Target course cannot be the same as source course"}
|
|
85
|
+
)
|
|
86
|
+
|
|
78
87
|
if not CourseOverview.objects.filter(id=self.source_course).exists():
|
|
79
88
|
raise ValidationError({"source_course": "Source course does not exist"})
|
|
80
89
|
|
|
File without changes
|
|
File without changes
|
{ol_openedx_course_sync-1.2.0 → ol_openedx_course_sync-1.2.2}/ol_openedx_course_sync/__init__.py
RENAMED
|
File without changes
|
{ol_openedx_course_sync-1.2.0 → ol_openedx_course_sync-1.2.2}/ol_openedx_course_sync/apps.py
RENAMED
|
File without changes
|
{ol_openedx_course_sync-1.2.0 → ol_openedx_course_sync-1.2.2}/ol_openedx_course_sync/constants.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{ol_openedx_course_sync-1.2.0 → ol_openedx_course_sync-1.2.2}/ol_openedx_course_sync/pipeline.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{ol_openedx_course_sync-1.2.0 → ol_openedx_course_sync-1.2.2}/ol_openedx_course_sync/signals.py
RENAMED
|
File without changes
|
{ol_openedx_course_sync-1.2.0 → ol_openedx_course_sync-1.2.2}/ol_openedx_course_sync/tasks.py
RENAMED
|
File without changes
|
{ol_openedx_course_sync-1.2.0 → ol_openedx_course_sync-1.2.2}/ol_openedx_course_sync/urls.py
RENAMED
|
File without changes
|
{ol_openedx_course_sync-1.2.0 → ol_openedx_course_sync-1.2.2}/ol_openedx_course_sync/utils.py
RENAMED
|
File without changes
|
{ol_openedx_course_sync-1.2.0 → ol_openedx_course_sync-1.2.2}/ol_openedx_course_sync/views.py
RENAMED
|
File without changes
|