From 682191c474760abccdbe077f857484275ad05ce1 Mon Sep 17 00:00:00 2001 From: Sarina Canelake Date: Fri, 23 May 2014 15:00:12 -0400 Subject: [PATCH] Hide beta dash Analytics score distribution widget behind feature flag ENABLE_INSTRUCTOR_ANALYTICS flag is present to conditionally hide data dependent on external analytics server installation --- lms/envs/common.py | 8 ++-- .../instructor_dashboard_2/analytics.html | 46 ++++++++++--------- 2 files changed, 28 insertions(+), 26 deletions(-) diff --git a/lms/envs/common.py b/lms/envs/common.py index ef4e52fecd..1f7597ab54 100644 --- a/lms/envs/common.py +++ b/lms/envs/common.py @@ -119,9 +119,6 @@ FEATURES = { # Enables ability to restrict enrollment in specific courses by the user account login method 'RESTRICT_ENROLL_BY_REG_METHOD': False, - # analytics experiments - 'ENABLE_INSTRUCTOR_ANALYTICS': False, - # Enables the LMS bulk email feature for course staff 'ENABLE_INSTRUCTOR_EMAIL': True, # If True and ENABLE_INSTRUCTOR_EMAIL: Forces email to be explicitly turned on @@ -130,11 +127,14 @@ FEATURES = { # for all Mongo-backed courses. 'REQUIRE_COURSE_EMAIL_AUTH': True, + # Analytics experiments - shows instructor analytics tab in LMS instructor dashboard. + # Enabling this feature depends on installation of a separate analytics server. + 'ENABLE_INSTRUCTOR_ANALYTICS': False, + # enable analytics server. # WARNING: THIS SHOULD ALWAYS BE SET TO FALSE UNDER NORMAL # LMS OPERATION. See analytics.py for details about what # this does. - 'RUN_AS_ANALYTICS_SERVER_ENABLED': False, # Flip to True when the YouTube iframe API breaks (again) diff --git a/lms/templates/instructor/instructor_dashboard_2/analytics.html b/lms/templates/instructor/instructor_dashboard_2/analytics.html index 3b6eaaa959..b06b2c7501 100644 --- a/lms/templates/instructor/instructor_dashboard_2/analytics.html +++ b/lms/templates/instructor/instructor_dashboard_2/analytics.html @@ -15,30 +15,32 @@ - + -
-
+
+
+%endif