diff --git a/lms/envs/common.py b/lms/envs/common.py index a481acd33423..ed8d520660c9 100644 --- a/lms/envs/common.py +++ b/lms/envs/common.py @@ -1342,7 +1342,12 @@ def _make_mako_template_dirs(settings): 'openedx.core.djangoapps.site_configuration.context_processors.configuration_context', # Mobile App processor (Detects if request is from the mobile app) - 'lms.djangoapps.mobile_api.context_processor.is_from_mobile_app' + 'lms.djangoapps.mobile_api.context_processor.is_from_mobile_app', + + # Context processor necesarry for the survey report message appear on the admin site + 'openedx.features.survey_report.context_processors.admin_extra_context' + + ] # Django templating diff --git a/lms/envs/production.py b/lms/envs/production.py index 45accf0c4ae1..72329b5a59f5 100644 --- a/lms/envs/production.py +++ b/lms/envs/production.py @@ -1131,6 +1131,8 @@ def get_env_setting(setting): 'https://hooks.zapier.com/hooks/catch/11595998/3ouwv7m/') ANONYMOUS_SURVEY_REPORT = False +SURVEY_REPORT_CHECK_THRESHOLD = ENV_TOKENS.get('SURVEY_REPORT_CHECK_THRESHOLD', 6) + AVAILABLE_DISCUSSION_TOURS = ENV_TOKENS.get('AVAILABLE_DISCUSSION_TOURS', []) ############## NOTIFICATIONS EXPIRY ############## diff --git a/lms/envs/test.py b/lms/envs/test.py index 39996e857ac5..6d87a05848a1 100644 --- a/lms/envs/test.py +++ b/lms/envs/test.py @@ -663,6 +663,7 @@ ############## Settings for survey report ############## SURVEY_REPORT_EXTRA_DATA = {} SURVEY_REPORT_ENDPOINT = "https://example.com/survey_report" +SURVEY_REPORT_CHECK_THRESHOLD = 6 ANONYMOUS_SURVEY_REPORT = False ######################## Subscriptions API SETTINGS ######################## diff --git a/lms/templates/admin/base_site.html b/lms/templates/admin/base_site.html index 4ea86307696e..fa93f9c3e84a 100644 --- a/lms/templates/admin/base_site.html +++ b/lms/templates/admin/base_site.html @@ -20,3 +20,7 @@
The Open edX Project relies on the collective strength of its community to be a thriving platform for online education.
+Open edX is a dynamic ecosystem and it is used in diverse learning environments. By sharing anonymized reports of aggregated data, you can contribute to the collective knowledge of the community. This data can help us all understand the reach of our project, make better decisions and ultimately support innovation in lifelong learning and advance next generation learning experience platforms.
+We invite you to join the Open edX Data Sharing Initiative by sharing an anonymized reports of aggregated data from your institution's usage of the platform. The report data will be sent to Axim Collaborative, the non-profit behind the Open edX project.
+If you agree and want to send a report you can click the button below. You can always send reports and see the status of reports you have sent in the past at admin/survey_report/surveyreport/ .
+