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
aac0fac3
Commit
aac0fac3
authored
Jul 17, 2014
by
Jason Bau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Default ENABLE_ANALYTICS_ACTIVE_COUNT to False for dev envs
parent
adae7c6d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
4 deletions
+13
-4
lms/envs/aws.py
+2
-2
lms/envs/common.py
+9
-0
lms/envs/dev.py
+1
-1
lms/envs/devstack.py
+1
-1
No files found.
lms/envs/aws.py
View file @
aac0fac3
...
...
@@ -349,8 +349,8 @@ ANALYTICS_SERVER_URL = ENV_TOKENS.get("ANALYTICS_SERVER_URL")
ANALYTICS_API_KEY
=
AUTH_TOKENS
.
get
(
"ANALYTICS_API_KEY"
,
""
)
# Analytics data source
ANALYTICS_DATA_URL
=
ENV_TOKENS
.
get
(
"ANALYTICS_DATA_URL"
)
ANALYTICS_DATA_TOKEN
=
AUTH_TOKENS
.
get
(
"ANALYTICS_DATA_TOKEN"
,
""
)
ANALYTICS_DATA_URL
=
ENV_TOKENS
.
get
(
"ANALYTICS_DATA_URL"
,
ANALYTICS_DATA_URL
)
ANALYTICS_DATA_TOKEN
=
AUTH_TOKENS
.
get
(
"ANALYTICS_DATA_TOKEN"
,
ANALYTICS_DATA_TOKEN
)
# Zendesk
ZENDESK_USER
=
AUTH_TOKENS
.
get
(
"ZENDESK_USER"
)
...
...
lms/envs/common.py
View file @
aac0fac3
...
...
@@ -259,6 +259,11 @@ FEATURES = {
# Show a "Download your certificate" on the Progress page if the lowest
# nonzero grade cutoff is met
'SHOW_PROGRESS_SUCCESS_BUTTON'
:
False
,
# Analytics Data API (for active student count)
# Default to false here b/c dev environments won't have the api, will override in aws.py
'ENABLE_ANALYTICS_ACTIVE_COUNT'
:
False
,
}
# Used for A/B testing
...
...
@@ -1653,3 +1658,7 @@ ADVANCED_SECURITY_CONFIG = {}
### External auth usage -- prefixes for ENROLLMENT_DOMAIN
SHIBBOLETH_DOMAIN_PREFIX
=
'shib:'
OPENID_DOMAIN_PREFIX
=
'openid:'
### Analytics data api settings
ANALYTICS_DATA_URL
=
""
ANALYTICS_DATA_TOKEN
=
""
lms/envs/dev.py
View file @
aac0fac3
...
...
@@ -266,7 +266,7 @@ ANALYTICS_API_KEY = ""
ANALYTICS_DATA_URL
=
"http://127.0.0.1:8080"
ANALYTICS_DATA_TOKEN
=
""
FEATURES
[
'ENABLE_ANALYTICS_ACTIVE_COUNT'
]
=
Tru
e
FEATURES
[
'ENABLE_ANALYTICS_ACTIVE_COUNT'
]
=
Fals
e
##### segment-io ######
...
...
lms/envs/devstack.py
View file @
aac0fac3
...
...
@@ -39,7 +39,7 @@ ANALYTICS_API_KEY = ""
ANALYTICS_DATA_URL
=
"http://127.0.0.1:8080"
ANALYTICS_DATA_TOKEN
=
""
FEATURES
[
'ENABLE_ANALYTICS_ACTIVE_COUNT'
]
=
Tru
e
FEATURES
[
'ENABLE_ANALYTICS_ACTIVE_COUNT'
]
=
Fals
e
################################ DEBUG TOOLBAR ################################
...
...
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