From 5ae71873a37a0be98bdf6afef548ccfeb56d42b3 Mon Sep 17 00:00:00 2001 From: Muhammad Umar Khan <42294172+mumarkhan999@users.noreply.github.com> Date: Fri, 10 Jan 2025 17:21:03 +0500 Subject: [PATCH 01/16] Add pin for lti-consumer-xblock (#36097) * chore: add pin for lti-consumer-xblock * feat: Upgrade Python dependency lti-consumer-xblock (#36098) chore: downgrade lti-consumer-xblock Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master` Co-authored-by: mumarkhan999 <42294172+mumarkhan999@users.noreply.github.com> --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- requirements/constraints.txt | 5 +++++ requirements/edx/base.txt | 7 ++++--- requirements/edx/development.txt | 4 ++-- requirements/edx/doc.txt | 7 ++++--- requirements/edx/testing.txt | 7 ++++--- 5 files changed, 19 insertions(+), 11 deletions(-) diff --git a/requirements/constraints.txt b/requirements/constraints.txt index fcea298aedae..79e55d633c7d 100644 --- a/requirements/constraints.txt +++ b/requirements/constraints.txt @@ -184,3 +184,8 @@ social-auth-app-django<=5.4.1 # We are pinning this until we can upgrade to a version of elasticsearch that uses a more recent version of urllib3. # Issue for unpinning: https://github.com/openedx/edx-platform/issues/35126 elasticsearch==7.9.1 + +# Date 2025-01-10 +# Cause: https://github.com/openedx/edx-platform/issues/36095 +# Issue for unpinning https://github.com/openedx/edx-platform/issues/36096 +lti-consumer-xblock==9.12.1 diff --git a/requirements/edx/base.txt b/requirements/edx/base.txt index 81043c8da103..d73ac89b2a0a 100644 --- a/requirements/edx/base.txt +++ b/requirements/edx/base.txt @@ -705,8 +705,10 @@ lazy==1.6 # xblock loremipsum==1.0.5 # via ora2 -lti-consumer-xblock==9.13.0 - # via -r requirements/edx/kernel.in +lti-consumer-xblock==9.12.1 + # via + # -c requirements/edx/../constraints.txt + # -r requirements/edx/kernel.in lxml[html-clean,html_clean]==5.3.0 # via # -r requirements/edx/kernel.in @@ -942,7 +944,6 @@ pyjwt[crypto]==2.10.1 # edx-proctoring # edx-rest-api-client # firebase-admin - # lti-consumer-xblock # pylti1p3 # snowflake-connector-python # social-auth-core diff --git a/requirements/edx/development.txt b/requirements/edx/development.txt index c8959e777dda..a153f18be7a3 100644 --- a/requirements/edx/development.txt +++ b/requirements/edx/development.txt @@ -1189,8 +1189,9 @@ loremipsum==1.0.5 # -r requirements/edx/doc.txt # -r requirements/edx/testing.txt # ora2 -lti-consumer-xblock==9.13.0 +lti-consumer-xblock==9.12.1 # via + # -c requirements/edx/../constraints.txt # -r requirements/edx/doc.txt # -r requirements/edx/testing.txt lxml[html-clean]==5.3.0 @@ -1610,7 +1611,6 @@ pyjwt[crypto]==2.10.1 # edx-proctoring # edx-rest-api-client # firebase-admin - # lti-consumer-xblock # pylti1p3 # snowflake-connector-python # social-auth-core diff --git a/requirements/edx/doc.txt b/requirements/edx/doc.txt index 1e329aefbd0f..f715e876d7f6 100644 --- a/requirements/edx/doc.txt +++ b/requirements/edx/doc.txt @@ -860,8 +860,10 @@ loremipsum==1.0.5 # via # -r requirements/edx/base.txt # ora2 -lti-consumer-xblock==9.13.0 - # via -r requirements/edx/base.txt +lti-consumer-xblock==9.12.1 + # via + # -c requirements/edx/../constraints.txt + # -r requirements/edx/base.txt lxml[html-clean]==5.3.0 # via # -r requirements/edx/base.txt @@ -1158,7 +1160,6 @@ pyjwt[crypto]==2.10.1 # edx-proctoring # edx-rest-api-client # firebase-admin - # lti-consumer-xblock # pylti1p3 # snowflake-connector-python # social-auth-core diff --git a/requirements/edx/testing.txt b/requirements/edx/testing.txt index 8c68cfa387d1..f6ad62bf0d5d 100644 --- a/requirements/edx/testing.txt +++ b/requirements/edx/testing.txt @@ -903,8 +903,10 @@ loremipsum==1.0.5 # via # -r requirements/edx/base.txt # ora2 -lti-consumer-xblock==9.13.0 - # via -r requirements/edx/base.txt +lti-consumer-xblock==9.12.1 + # via + # -c requirements/edx/../constraints.txt + # -r requirements/edx/base.txt lxml[html-clean]==5.3.0 # via # -r requirements/edx/base.txt @@ -1222,7 +1224,6 @@ pyjwt[crypto]==2.10.1 # edx-proctoring # edx-rest-api-client # firebase-admin - # lti-consumer-xblock # pylti1p3 # snowflake-connector-python # social-auth-core From e6ddd9c7c11353eee0920d7c8b0111bb503c71b3 Mon Sep 17 00:00:00 2001 From: Navin Karkera Date: Fri, 10 Jan 2025 21:00:58 +0530 Subject: [PATCH 02/16] refactor: remove unnecessary padding from lib component picker (#36073) Library component picker and Problem bank picker iframe had unnecessary padding resulting in multiple border/shadow in the modal. --- .../views/components/add_library_content.js | 1 + .../views/modals/select_v2_library_content.js | 1 + cms/static/sass/views/_container.scss | 3 ++ cms/templates/js/basic-modal.underscore | 28 ++++++++++--------- 4 files changed, 20 insertions(+), 13 deletions(-) diff --git a/cms/static/js/views/components/add_library_content.js b/cms/static/js/views/components/add_library_content.js index 278717ba9212..1459ed3e0145 100644 --- a/cms/static/js/views/components/add_library_content.js +++ b/cms/static/js/views/components/add_library_content.js @@ -22,6 +22,7 @@ function($, _, gettext, BaseModal) { // Translators: "title" is the name of the current component being edited. titleFormat: gettext('Add library content'), addPrimaryActionButton: false, + showEditorModeButtons: false, }), initialize: function() { diff --git a/cms/static/js/views/modals/select_v2_library_content.js b/cms/static/js/views/modals/select_v2_library_content.js index e301aeab8d9d..79b13015c845 100644 --- a/cms/static/js/views/modals/select_v2_library_content.js +++ b/cms/static/js/views/modals/select_v2_library_content.js @@ -17,6 +17,7 @@ function($, _, gettext, BaseModal) { viewSpecificClasses: 'modal-add-component-picker confirm', titleFormat: gettext('Add library content'), addPrimaryActionButton: false, + showEditorModeButtons: false, }), events: { diff --git a/cms/static/sass/views/_container.scss b/cms/static/sass/views/_container.scss index 9737782e8305..ee48e71deb74 100644 --- a/cms/static/sass/views/_container.scss +++ b/cms/static/sass/views/_container.scss @@ -585,13 +585,16 @@ // cms/static/js/views/components/add_library_content_with_picker.js .modal-add-component-picker { top: 10%; + padding: 0px !important; .modal-content { padding: 0 !important; + border-radius: ($baseline/5); & > iframe { width: 100%; min-height: 80vh; background: url('#{$static-path}/images/spinner.gif') center center no-repeat; + border-radius: ($baseline/5); } } } diff --git a/cms/templates/js/basic-modal.underscore b/cms/templates/js/basic-modal.underscore index 4273fe4f9956..8f4d4a32bbb9 100644 --- a/cms/templates/js/basic-modal.underscore +++ b/cms/templates/js/basic-modal.underscore @@ -4,20 +4,22 @@