diff --git a/lms/envs/common.py b/lms/envs/common.py index 13e031c76175..b83341086642 100644 --- a/lms/envs/common.py +++ b/lms/envs/common.py @@ -1324,7 +1324,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 @@ -5389,3 +5394,31 @@ def _make_locale_paths(settings): # pylint: disable=missing-function-docstring #### Event bus publishing #### ## Will be more filled out as part of https://github.com/edx/edx-arch-experiments/issues/381 EVENT_BUS_PRODUCER_CONFIG = {} + +#### Survey Report #### +# .. toggle_name: SURVEY_REPORT_ENABLE +# .. toggle_implementation: DjangoSetting +# .. toggle_default: True +# .. toggle_description: Set to True to enable the feature to generate and send survey reports. +# .. toggle_use_cases: open_edx +# .. toggle_creation_date: 2024-01-30 +SURVEY_REPORT_ENABLE = True +# .. setting_name: SURVEY_REPORT_ENDPOINT +# .. setting_default: Open edX organization endpoint +# .. setting_description: Endpoint where the report will be sent. +SURVEY_REPORT_ENDPOINT = 'https://hooks.zapier.com/hooks/catch/11595998/3ouwv7m/' +# .. toggle_name: ANONYMOUS_SURVEY_REPORT +# .. toggle_implementation: DjangoSetting +# .. toggle_default: False +# .. toggle_description: If enable, the survey report will be send a UUID as ID instead of use lms site name. +# .. toggle_use_cases: open_edx +# .. toggle_creation_date: 2023-02-21 +ANONYMOUS_SURVEY_REPORT = False +# .. setting_name: SURVEY_REPORT_CHECK_THRESHOLD +# .. setting_default: every 6 months +# .. setting_description: Survey report banner will appear if a survey report is not sent in the months defined. +SURVEY_REPORT_CHECK_THRESHOLD = 6 +# .. setting_name: SURVEY_REPORT_EXTRA_DATA +# .. setting_default: empty dictionary +# .. setting_description: Dictionary with additional information that you want to share in the report. +SURVEY_REPORT_EXTRA_DATA = {} diff --git a/lms/envs/production.py b/lms/envs/production.py index 0233fce6a59e..6f04ba7f92c8 100644 --- a/lms/envs/production.py +++ b/lms/envs/production.py @@ -1117,12 +1117,6 @@ def get_env_setting(setting): "URL": ENV_TOKENS.get('BIG_BLUE_BUTTON_GLOBAL_URL', None), } -############## Settings for survey report ############## -SURVEY_REPORT_EXTRA_DATA = ENV_TOKENS.get('SURVEY_REPORT_EXTRA_DATA', {}) -SURVEY_REPORT_ENDPOINT = ENV_TOKENS.get('SURVEY_REPORT_ENDPOINT', - 'https://hooks.zapier.com/hooks/catch/11595998/3ouwv7m/') -ANONYMOUS_SURVEY_REPORT = False - AVAILABLE_DISCUSSION_TOURS = ENV_TOKENS.get('AVAILABLE_DISCUSSION_TOURS', []) ############## NOTIFICATIONS EXPIRY ############## diff --git a/lms/envs/test.py b/lms/envs/test.py index 32352c849837..c26725469dd1 100644 --- a/lms/envs/test.py +++ b/lms/envs/test.py @@ -667,6 +667,8 @@ ############## Settings for survey report ############## SURVEY_REPORT_EXTRA_DATA = {} SURVEY_REPORT_ENDPOINT = "https://example.com/survey_report" +SURVEY_REPORT_CHECK_THRESHOLD = 6 +SURVEY_REPORT_ENABLE = True 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..cd8ab70e4f4b 100644 --- a/lms/templates/admin/base_site.html +++ b/lms/templates/admin/base_site.html @@ -1,5 +1,5 @@ {% extends "admin/base.html" %} -{% load i18n admin_urls %} +{% load i18n admin_urls static %} {% block title %}{{ title }} | {{ site_title|default:_('Django site admin') }}{% endblock %} {% block branding %}
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/ .
+