Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
e00a8afc
Commit
e00a8afc
authored
Aug 14, 2014
by
Calen Pennington
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove qualifiers from get_courses
parent
3672c9a2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
9 deletions
+1
-9
common/lib/xmodule/xmodule/modulestore/split_mongo/split.py
+1
-2
common/lib/xmodule/xmodule/modulestore/tests/test_split_modulestore.py
+0
-7
No files found.
common/lib/xmodule/xmodule/modulestore/split_mongo/split.py
View file @
e00a8afc
...
...
@@ -703,7 +703,7 @@ class SplitMongoModuleStore(BulkWriteMixin, ModuleStoreWriteBase):
}
return
envelope
def
get_courses
(
self
,
branch
,
qualifiers
=
None
,
**
kwargs
):
def
get_courses
(
self
,
branch
,
**
kwargs
):
'''
Returns a list of course descriptors matching any given qualifiers.
...
...
@@ -714,7 +714,6 @@ class SplitMongoModuleStore(BulkWriteMixin, ModuleStoreWriteBase):
To get specific versions via guid use get_course.
:param branch: the branch for which to return courses.
:param qualifiers: an optional dict restricting which elements should match
'''
matching_indexes
=
self
.
find_matching_course_indexes
(
branch
)
...
...
common/lib/xmodule/xmodule/modulestore/tests/test_split_modulestore.py
View file @
e00a8afc
...
...
@@ -608,13 +608,6 @@ class SplitModuleCourseTests(SplitModuleTest):
_verify_published_course
(
modulestore
()
.
get_courses
(
branch
=
BRANCH_NAME_PUBLISHED
))
def
test_search_qualifiers
(
self
):
# query w/ search criteria
courses
=
modulestore
()
.
get_courses
(
branch
=
BRANCH_NAME_DRAFT
,
qualifiers
=
{
'org'
:
'testx'
})
self
.
assertEqual
(
len
(
courses
),
2
)
self
.
assertIsNotNone
(
self
.
findByIdInResult
(
courses
,
"head12345"
))
self
.
assertIsNotNone
(
self
.
findByIdInResult
(
courses
,
"head23456"
))
def
test_has_course
(
self
):
'''
Test the various calling forms for has_course
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment