Skip to content

Commit

Permalink
feat: Remove code related to Old -> Split migration + re-running Old …
Browse files Browse the repository at this point in the history
…Mongo courses as Split
  • Loading branch information
UvgenGen committed Sep 14, 2022
1 parent 9530771 commit 44c1d57
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 491 deletions.

This file was deleted.

17 changes: 4 additions & 13 deletions xmodule/modulestore/mixed.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,9 @@

from xmodule.assetstore import AssetMetadata

from . import XMODULE_FIELDS_WITH_USAGE_KEYS, ModuleStoreEnum, ModuleStoreWriteBase
from . import XMODULE_FIELDS_WITH_USAGE_KEYS, ModuleStoreWriteBase
from .draft_and_published import ModuleStoreDraftAndPublished
from .exceptions import DuplicateCourseError, ItemNotFoundError
from .split_migrator import SplitMigrator

log = logging.getLogger(__name__)

Expand Down Expand Up @@ -717,17 +716,9 @@ def clone_course(self, source_course_id, dest_course_id, user_id, fields=None, *
if source_modulestore == dest_modulestore:
return source_modulestore.clone_course(source_course_id, dest_course_id, user_id, fields, **kwargs)

if dest_modulestore.get_modulestore_type() == ModuleStoreEnum.Type.split:
split_migrator = SplitMigrator(dest_modulestore, source_modulestore)
split_migrator.migrate_mongo_course(source_course_id, user_id, dest_course_id.org,
dest_course_id.course, dest_course_id.run, fields, **kwargs)

# the super handles assets and any other necessities
super().clone_course(source_course_id, dest_course_id, user_id, fields, **kwargs)
else:
raise NotImplementedError("No code for cloning from {} to {}".format(
source_modulestore, dest_modulestore
))
raise NotImplementedError("No code for cloning from {} to {}".format(
source_modulestore, dest_modulestore
))

@strip_key
@prepare_asides
Expand Down
231 changes: 0 additions & 231 deletions xmodule/modulestore/split_migrator.py

This file was deleted.

Loading

0 comments on commit 44c1d57

Please sign in to comment.