From 2337aa9af17beb9172b4eec93922a1d2eaf23c33 Mon Sep 17 00:00:00 2001 From: cef Date: Mon, 26 Aug 2024 12:03:29 -0500 Subject: [PATCH] feat: set links for CourseAuthoring dicussion alert --- .../rest_api/v1/views/tests/test_course_index.py | 8 ++++---- cms/envs/common.py | 5 +++-- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/cms/djangoapps/contentstore/rest_api/v1/views/tests/test_course_index.py b/cms/djangoapps/contentstore/rest_api/v1/views/tests/test_course_index.py index eafc2b37aa0c..4ac97b8e943d 100644 --- a/cms/djangoapps/contentstore/rest_api/v1/views/tests/test_course_index.py +++ b/cms/djangoapps/contentstore/rest_api/v1/views/tests/test_course_index.py @@ -61,8 +61,8 @@ def test_course_index_response(self): "blocks": [], "advance_settings_url": f"/settings/advanced/{self.course.id}" }, - "discussions_incontext_feedback_url": "", - "discussions_incontext_learnmore_url": "", + "discussions_incontext_feedback_url": "https://discuss.openedx.org/t/new-and-improved-discussions-forum/9183", # lint-amnesty, pylint: disable=line-too-long + "discussions_incontext_learnmore_url": "https://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/en/open-release-redwood.master/manage_discussions/discussions.html", # lint-amnesty, pylint: disable=line-too-long "is_custom_relative_dates_active": True, "initial_state": None, "initial_user_clipboard": { @@ -102,8 +102,8 @@ def test_course_index_response_with_show_locators(self): "blocks": [], "advance_settings_url": f"/settings/advanced/{self.course.id}" }, - "discussions_incontext_feedback_url": "", - "discussions_incontext_learnmore_url": "", + "discussions_incontext_feedback_url": "https://discuss.openedx.org/t/new-and-improved-discussions-forum/9183", # lint-amnesty, pylint: disable=line-too-long + "discussions_incontext_learnmore_url": "https://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/en/open-release-redwood.master/manage_discussions/discussions.html", # lint-amnesty, pylint: disable=line-too-long "is_custom_relative_dates_active": False, "initial_state": { "expanded_locators": [ diff --git a/cms/envs/common.py b/cms/envs/common.py index 1eb21cd502c5..d4159ec98dde 100644 --- a/cms/envs/common.py +++ b/cms/envs/common.py @@ -2891,8 +2891,9 @@ BRAZE_COURSE_ENROLLMENT_CANVAS_ID = '' -DISCUSSIONS_INCONTEXT_FEEDBACK_URL = '' -DISCUSSIONS_INCONTEXT_LEARNMORE_URL = '' +# pylint: disable=line-too-long +DISCUSSIONS_INCONTEXT_FEEDBACK_URL = "https://discuss.openedx.org/t/new-and-improved-discussions-forum/9183" +DISCUSSIONS_INCONTEXT_LEARNMORE_URL = "https://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/en/open-release-redwood.master/manage_discussions/discussions.html" #### django-simple-history## # disable indexing on date field its coming django-simple-history.