From 83fc964e08040edb8dbcc5c7e2d94072dc7b2ed6 Mon Sep 17 00:00:00 2001 From: ibrahimjaved12 <109785089+ibrahimjaved12@users.noreply.github.com> Date: Thu, 12 Sep 2024 12:13:07 +0500 Subject: [PATCH 1/2] Add mit_learn_topics field in data.json (#1443) * Add mit_learn_topics field in data.json * Update test sites data --- course-v2/layouts/index.coursedata.json | 1 + .../__fixtures__/courses/ocw-ci-test-course/data.json | 9 +++++++++ test-sites/ocw-ci-test-course/data/course.json | 9 +++++++++ 3 files changed, 19 insertions(+) diff --git a/course-v2/layouts/index.coursedata.json b/course-v2/layouts/index.coursedata.json index ff95be80d..5f3b394cd 100644 --- a/course-v2/layouts/index.coursedata.json +++ b/course-v2/layouts/index.coursedata.json @@ -29,6 +29,7 @@ "department_numbers": {{- $courseData.department_numbers | jsonify -}}, "learning_resource_types": {{- $courseData.learning_resource_types | jsonify -}}, "topics": {{- $courseData.topics | jsonify -}}, + "mit_learn_topics": {{- $courseData.mit_learn_topics | jsonify -}}, "primary_course_number": {{- $courseData.primary_course_number | jsonify -}}, "extra_course_numbers": {{- $courseData.extra_course_numbers | jsonify -}}, "term": {{- $courseData.term | jsonify -}}, diff --git a/test-sites/__fixtures__/courses/ocw-ci-test-course/data.json b/test-sites/__fixtures__/courses/ocw-ci-test-course/data.json index 20c162358..b9faa331f 100644 --- a/test-sites/__fixtures__/courses/ocw-ci-test-course/data.json +++ b/test-sites/__fixtures__/courses/ocw-ci-test-course/data.json @@ -48,6 +48,15 @@ "Quantum Mechanics" ] ], + "mit_learn_topics": [ + [ + "Art, Design & Architecture" + ], + [ + "Business & Management", + "Business Analytics" + ] + ], "primary_course_number": "123", "extra_course_numbers": "456", "term": "Fall", diff --git a/test-sites/ocw-ci-test-course/data/course.json b/test-sites/ocw-ci-test-course/data/course.json index 2803c184f..b11b8bbb8 100644 --- a/test-sites/ocw-ci-test-course/data/course.json +++ b/test-sites/ocw-ci-test-course/data/course.json @@ -17,6 +17,15 @@ "Quantum Mechanics" ] ], + "mit_learn_topics": [ + [ + "Art, Design & Architecture" + ], + [ + "Business & Management", + "Business Analytics" + ] + ], "legacy_uid": "", "instructors": { "content": [ From afc0f06f00acb484e1c85261cf7f6afc4a2a82c7 Mon Sep 17 00:00:00 2001 From: Doof Date: Thu, 12 Sep 2024 07:14:02 +0000 Subject: [PATCH 2/2] Release 1.117.1 --- RELEASE.rst | 5 +++++ package.json | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/RELEASE.rst b/RELEASE.rst index deacf8abc..79f6b1797 100644 --- a/RELEASE.rst +++ b/RELEASE.rst @@ -1,6 +1,11 @@ Release Notes ============= +Version 1.117.1 +--------------- + +- Add mit_learn_topics field in data.json (#1443) + Version 1.117.0 (Released September 09, 2024) --------------- diff --git a/package.json b/package.json index 5255e53e1..4e8a262b0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ocw-hugo-themes", - "version": "1.117.0", + "version": "1.117.1", "description": "A Hugo theme for building OCW websites", "repository": "mitodl/ocw-hugo-themes", "main": "base-theme/assets/index.js",