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
1db7c23b
Commit
1db7c23b
authored
Jun 06, 2017
by
Nimisha Asthagiri
Committed by
GitHub
Jun 06, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #15253 from edx/ret/enable-optimizely-on-courseware
Enable optimizely in courseware
parents
fd57549c
4c2bd153
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
lms/djangoapps/courseware/tests/test_views.py
+2
-2
lms/djangoapps/courseware/views/index.py
+2
-1
No files found.
lms/djangoapps/courseware/tests/test_views.py
View file @
1db7c23b
...
...
@@ -210,8 +210,8 @@ class IndexQueryTestCase(ModuleStoreTestCase):
NUM_PROBLEMS
=
20
@ddt.data
(
(
ModuleStoreEnum
.
Type
.
mongo
,
10
,
14
4
),
(
ModuleStoreEnum
.
Type
.
split
,
4
,
14
4
),
(
ModuleStoreEnum
.
Type
.
mongo
,
10
,
14
5
),
(
ModuleStoreEnum
.
Type
.
split
,
4
,
14
5
),
)
@ddt.unpack
def
test_index_query_counts
(
self
,
store_type
,
expected_mongo_query_count
,
expected_mysql_query_count
):
...
...
lms/djangoapps/courseware/views/index.py
View file @
1db7c23b
...
...
@@ -32,6 +32,7 @@ from openedx.core.djangoapps.lang_pref import LANGUAGE_KEY
from
openedx.core.djangoapps.user_api.preferences.api
import
get_user_preference
from
openedx.core.djangoapps.crawlers.models
import
CrawlersConfig
from
openedx.core.djangoapps.monitoring_utils
import
set_custom_metrics_for_course_key
from
openedx.core.djangoapps.waffle_utils
import
WaffleSwitchNamespace
from
openedx.features.enterprise_support.api
import
data_sharing_consent_required
from
openedx.features.course_experience
import
UNIFIED_COURSE_VIEW_FLAG
,
default_course_url_name
from
request_cache.middleware
import
RequestCache
...
...
@@ -341,7 +342,7 @@ class CoursewareIndex(View):
'xqa_server'
:
settings
.
FEATURES
.
get
(
'XQA_SERVER'
,
"http://your_xqa_server.com"
),
'bookmarks_api_url'
:
reverse
(
'bookmarks'
),
'language_preference'
:
self
.
_get_language_preference
(),
'disable_optimizely'
:
True
,
'disable_optimizely'
:
not
WaffleSwitchNamespace
(
'RET'
)
.
is_enabled
(
'enable_optimizely_in_courseware'
)
,
'section_title'
:
None
,
'sequence_title'
:
None
,
'disable_accordion'
:
waffle
.
flag_is_active
(
request
,
UNIFIED_COURSE_VIEW_FLAG
),
...
...
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