Commit 92eadf1a by Calen Pennington

Delete DIRECT_ONLY_CATEGORIES from published and draft branches.

This fixes https://openedx.atlassian.net/browse/PLAT-858.
parent 1f7082eb
......@@ -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(
[
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment