From f832b963dc5e1ebe3f1481e73f841a62afe6e094 Mon Sep 17 00:00:00 2001 From: Bryann Valderrama Date: Wed, 3 Apr 2024 09:39:58 -0500 Subject: [PATCH 1/3] feat: add `ENABLE_GRADING_METHOD_IN_PROBLEMS` feature flag --- .env | 1 + .env.development | 1 + .env.test | 1 + src/index.jsx | 1 + 4 files changed, 4 insertions(+) diff --git a/.env b/.env index e5fa2f49a9..6399fda7d2 100644 --- a/.env +++ b/.env @@ -42,3 +42,4 @@ INVITE_STUDENTS_EMAIL_TO='' AI_TRANSLATIONS_BASE_URL='' ENABLE_HOME_PAGE_COURSE_API_V2=false ENABLE_CHECKLIST_QUALITY='' +ENABLE_GRADING_METHOD_IN_PROBLEMS=false diff --git a/.env.development b/.env.development index 71f65a6d52..983ce9674f 100644 --- a/.env.development +++ b/.env.development @@ -45,3 +45,4 @@ INVITE_STUDENTS_EMAIL_TO="someone@domain.com" AI_TRANSLATIONS_BASE_URL='http://localhost:18760' ENABLE_HOME_PAGE_COURSE_API_V2=false ENABLE_CHECKLIST_QUALITY=true +ENABLE_GRADING_METHOD_IN_PROBLEMS=false diff --git a/.env.test b/.env.test index 7d74809b47..28240ad2ff 100644 --- a/.env.test +++ b/.env.test @@ -36,3 +36,4 @@ BBB_LEARN_MORE_URL='' INVITE_STUDENTS_EMAIL_TO="someone@domain.com" ENABLE_HOME_PAGE_COURSE_API_V2=true ENABLE_CHECKLIST_QUALITY=true +ENABLE_GRADING_METHOD_IN_PROBLEMS=false diff --git a/src/index.jsx b/src/index.jsx index a3d20a433a..889063acd7 100755 --- a/src/index.jsx +++ b/src/index.jsx @@ -124,6 +124,7 @@ initialize({ ENABLE_TAGGING_TAXONOMY_PAGES: process.env.ENABLE_TAGGING_TAXONOMY_PAGES || 'false', ENABLE_HOME_PAGE_COURSE_API_V2: process.env.ENABLE_HOME_PAGE_COURSE_API_V2 === 'true', ENABLE_CHECKLIST_QUALITY: process.env.ENABLE_CHECKLIST_QUALITY || 'true', + ENABLE_GRADING_METHOD_IN_PROBLEMS: process.env.ENABLE_GRADING_METHOD_IN_PROBLEMS === 'true', }, 'CourseAuthoringConfig'); }, }, From 0b1aae2815f3b6b667a4ce105bd6d30d384c5371 Mon Sep 17 00:00:00 2001 From: Brian Smith Date: Mon, 29 Apr 2024 10:20:12 -0400 Subject: [PATCH 2/3] chore: install content components from testing branch --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 2c77795335..1dc2c5d686 100644 --- a/package.json +++ b/package.json @@ -45,7 +45,7 @@ "@edx/frontend-component-footer": "^13.0.2", "@edx/frontend-component-header": "^5.1.0", "@edx/frontend-enterprise-hotjar": "^2.0.0", - "@edx/frontend-lib-content-components": "^2.1.7", + "@edx/frontend-lib-content-components": "github:brian-smith-tcril/frontend-lib-content-components#test-grading-method-feature-flag", "@edx/frontend-platform": "7.0.1", "@edx/openedx-atlas": "^0.6.0", "@fortawesome/fontawesome-svg-core": "1.2.36", From 153d8fee937c0e12ae940f4c6b70406850e5a97b Mon Sep 17 00:00:00 2001 From: Brian Smith Date: Mon, 29 Apr 2024 12:46:15 -0400 Subject: [PATCH 3/3] chore: package-lock --- package-lock.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index 68b552617d..5f90378ba9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -18,7 +18,7 @@ "@edx/frontend-component-footer": "^13.0.2", "@edx/frontend-component-header": "^5.1.0", "@edx/frontend-enterprise-hotjar": "^2.0.0", - "@edx/frontend-lib-content-components": "^2.1.7", + "@edx/frontend-lib-content-components": "github:brian-smith-tcril/frontend-lib-content-components#test-grading-method-feature-flag", "@edx/frontend-platform": "7.0.1", "@edx/openedx-atlas": "^0.6.0", "@fortawesome/fontawesome-svg-core": "1.2.36", @@ -2580,9 +2580,9 @@ } }, "node_modules/@edx/frontend-lib-content-components": { - "version": "2.1.7", - "resolved": "https://registry.npmjs.org/@edx/frontend-lib-content-components/-/frontend-lib-content-components-2.1.7.tgz", - "integrity": "sha512-RjE263H/GabHmEe5EFaku7LSngkJitVbnWSxvRhsmO2o5LWwEctUcpkQaK7YCN6fpAlqXmcXVMrtM/lzP4j2Bw==", + "version": "1.0.0-semantically-released", + "resolved": "git+ssh://git@github.com/brian-smith-tcril/frontend-lib-content-components.git#89045a37cc49b3413382c7d1d9eed4aa00b8ab38", + "license": "AGPL-3.0", "dependencies": { "@codemirror/lang-html": "^6.0.0", "@codemirror/lang-xml": "^6.0.0",