Change get_courses default branch to draft.
We need to figure out how apps configure what default they want or ensure they get the one they want
This commit is contained in:
@@ -274,7 +274,7 @@ class SplitMongoModuleStore(ModuleStoreWriteBase):
|
||||
}
|
||||
return envelope
|
||||
|
||||
def get_courses(self, branch='published', qualifiers=None):
|
||||
def get_courses(self, branch='draft', qualifiers=None):
|
||||
'''
|
||||
Returns a list of course descriptors matching any given qualifiers.
|
||||
|
||||
@@ -284,7 +284,7 @@ class SplitMongoModuleStore(ModuleStoreWriteBase):
|
||||
Note, this is to find the current head of the named branch type
|
||||
(e.g., 'draft'). To get specific versions via guid use get_course.
|
||||
|
||||
:param branch: the branch for which to return courses. Default value is 'published'.
|
||||
:param branch: the branch for which to return courses. Default value is 'draft'.
|
||||
:param qualifiers: a optional dict restricting which elements should match
|
||||
'''
|
||||
if qualifiers is None:
|
||||
|
||||
@@ -163,8 +163,6 @@ class SplitModuleCourseTests(SplitModuleTest):
|
||||
"children")
|
||||
|
||||
_verify_published_course(modulestore().get_courses(branch='published'))
|
||||
# default for branch is 'published'.
|
||||
_verify_published_course(modulestore().get_courses())
|
||||
|
||||
def test_search_qualifiers(self):
|
||||
# query w/ search criteria
|
||||
|
||||
Reference in New Issue
Block a user