From ad1a16743298925eb2fcc9d5bdfef21a28ca4dd7 Mon Sep 17 00:00:00 2001 From: Kyle McCormick Date: Thu, 8 Oct 2020 13:15:38 -0400 Subject: [PATCH] Devstack: Revert back to not validating orgs of new courses (#25301) This change was originally made in preparation for a BD-14 change that would enable database-backed organizations across Open edX. Since then, we've figured out a way of rolling out database-backed organizations without mandating that organization slugs in new courses are validated. So, this puts devstack back to where it was before, with ORGANIZATIONS_APP==True for LMS on devstack and ORGANIZATIONS_APP==False for Studio on devstack. From a developer perspective, this means that course runs can again be created in Studio with any org slug. TNL-7425 --- cms/envs/devstack.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/cms/envs/devstack.py b/cms/envs/devstack.py index 48ffb25bf6..215447d856 100644 --- a/cms/envs/devstack.py +++ b/cms/envs/devstack.py @@ -118,7 +118,12 @@ def should_show_debug_toolbar(request): FEATURES['MILESTONES_APP'] = True ########################### ORGANIZATIONS ################################# -FEATURES['ORGANIZATIONS_APP'] = True +# This is disabled for Devstack Studio for developer convenience. +# If it were enabled, then users would not be able to create course runs +# with any arbritrary org slug -- they would have to first make sure that +# the organization exists in the Organization table. +# Note that some production environments (such as studio.edx.org) do enable this flag. +FEATURES['ORGANIZATIONS_APP'] = False ################################ ENTRANCE EXAMS ################################ FEATURES['ENTRANCE_EXAMS'] = True