Delete DIRECT_ONLY_CATEGORIES from published and draft branches.
This fixes https://openedx.atlassian.net/browse/PLAT-858.
This commit is contained in:
@@ -198,6 +198,9 @@ class DraftVersioningModuleStore(SplitMongoModuleStore, ModuleStoreDraftAndPubli
|
||||
branches_to_delete = [ModuleStoreEnum.BranchName.published, ModuleStoreEnum.BranchName.draft]
|
||||
elif revision is None:
|
||||
branches_to_delete = [ModuleStoreEnum.BranchName.draft]
|
||||
|
||||
if location.category in DIRECT_ONLY_CATEGORIES:
|
||||
branches_to_delete.append(ModuleStoreEnum.BranchName.published)
|
||||
else:
|
||||
raise UnsupportedRevisionError(
|
||||
[
|
||||
|
||||
Reference in New Issue
Block a user