Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-analytics-data-api
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-analytics-data-api
Commits
dd3d54de
Commit
dd3d54de
authored
Apr 15, 2016
by
Dennis Jen
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #114 from edx/dsjen/unicode-check
Upgrade elasticsearch-dsl.
parents
0d6f8e42
1fb94ddb
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
3 deletions
+6
-3
analytics_data_api/v0/models.py
+2
-2
analytics_data_api/v0/tests/views/test_learners.py
+3
-0
requirements/base.txt
+1
-1
No files found.
analytics_data_api/v0/models.py
View file @
dd3d54de
...
...
@@ -336,7 +336,7 @@ class RosterEntry(DocType):
search
.
query
.
must
.
append
(
Q
(
'multi_match'
,
query
=
text_search
,
fields
=
[
'name'
,
'username'
,
'email'
]))
# construct the sort hierarchy
search
=
search
.
sort
(
*
[
search
_request
=
search
.
sort
(
*
[
{
sort_policy
[
'order_by'
]:
{
'order'
:
sort_policy
[
'sort_order'
],
...
...
@@ -347,7 +347,7 @@ class RosterEntry(DocType):
for
sort_policy
in
sort_policies
])
return
search
return
search
_request
@classmethod
def
get_course_metadata
(
cls
,
course_id
):
...
...
analytics_data_api/v0/tests/views/test_learners.py
View file @
dd3d54de
# -*- coding: utf-8 -*-
import
copy
import
datetime
from
itertools
import
groupby
...
...
@@ -272,6 +274,7 @@ class LearnerListTests(LearnerAPITestMixin, VerifyCourseIdMixin, TestCaseWithAut
(
'cohort'
,
'a'
,
'cohort'
,
'a'
,
True
),
(
'cohort'
,
'a'
,
'cohort'
,
''
,
True
),
(
'cohort'
,
'a'
,
'cohort'
,
'b'
,
False
),
(
'cohort'
,
u'Ich möchte Brot zu essen.'
,
'cohort'
,
u'Ich möchte Brot zu essen.'
,
True
),
(
'enrollment_mode'
,
'a'
,
'enrollment_mode'
,
'a'
,
True
),
(
'enrollment_mode'
,
'a'
,
'enrollment_mode'
,
''
,
True
),
(
'enrollment_mode'
,
'a'
,
'enrollment_mode'
,
'b'
,
False
),
...
...
requirements/base.txt
View file @
dd3d54de
...
...
@@ -5,7 +5,7 @@ djangorestframework==2.4.4 # BSD
django-rest-swagger==0.2.8 # BSD
djangorestframework-csv==1.3.3 # BSD
django-countries==3.2 # MIT
elasticsearch-dsl==0.0.
9
# Apache 2.0
elasticsearch-dsl==0.0.
11
# Apache 2.0
# markdown is used by swagger for rendering the api docs
Markdown==2.6 # BSD
...
...
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