Commit Graph

4473 Commits

Author SHA1 Message Date
Rebecca Graber
23e12ac779 feat: pass event_metadata to event bus (#31390) 2022-12-02 09:42:14 -05:00
Alfredo Guillem
5a5edd4efb chore: version bump edx-enterprise to 3.58.15 2022-12-01 17:33:01 +00:00
Alfredo Guillem
817722b16a Update development.txt 2022-12-01 16:07:04 +01:00
Alfredo Guillem
fbec399650 chore: version bump edx-enterprise to 3.58.15 2022-12-01 16:06:35 +01:00
Alfredo Guillem
1ded84e2c5 chore: version bump edx-enterprise to 3.58.15 2022-12-01 16:05:15 +01:00
Usama Sadiq
9bfcc6ca3d fix: Remove custom mypy admin classes (#31379)
* fix: remove custom mypy admin classes
2022-12-01 16:13:18 +05:00
michaelroytman
32d48e7881 feat: upgrade lti-consumer-xblock to install fixes to Basic Outcomes Service and Result Service
This commit upgrades the version of the lti-consumer-xblock library from version 6.4.0 to version 7.0.2. This includes versions 7.0.0, 7.0.1, and 7.0.2.

Version 7.0.0 includes refactoring to remove deprecated method calls to rebind_noauth_module_to_user, get_real_user, runtime.hostname, and runtime.course_id.

Version 7.0.1 includes a fix to the clean method of the LtiConfiguration model. The fix changes the way we look up the course ID so that we can access the course ID without needing to load the XBlock.

Version 7.0.2 includes fixes to LTI 1.1 Basic Outcomes Services and LTI 2.0 Result Service when using an external_user_id as a user identifier.

Note that version 7.0.1 was originally deployed in https://github.com/openedx/edx-platform/pull/31369. It was reverted soon after in https://github.com/openedx/edx-platform/pull/31377. The issue occurred in version 7.0.0, in the following line https://github.com/openedx/xblock-lti-consumer/pull/249/files#diff-ab027143adc95b9776c12e973e28f025a21b0d88112937af93645829686527fdL186. self in the call to the service is an instance of the OutcomeService. self should be an instance of an XBlock (i.e. LtiConsumerXBlock). Version 7.0.2 fixes this bug by moving the call to the service to the LtiConsumerXBlock, where self is an instance of an XBlock. Therefore, we are deploying this version to fix forward.

Please see the CHANGELOG entries below for these versions for a full description of the changes.

Version 7.0.0: https://github.com/openedx/xblock-lti-consumer/blob/master/CHANGELOG.rst#700---2022-11-29
Version 7.0.1: https://github.com/openedx/xblock-lti-consumer/blob/master/CHANGELOG.rst#701---2022-11-29
Version 7.0.2: https://github.com/openedx/xblock-lti-consumer/blob/master/CHANGELOG.rst#702---2022-11-29.

The commit messages of each version are included below for convenience.

7.0.0
-----
refactor: replace block.location with block.scope_ids.usage_id

7.0.1
-----
fix: do not attempt to load the block just to look at the location
the block is not loadable in exams so clean fails in that IDA, but
we shouldn't need the block to ask a question about the course

7.0.2
-----
In #307, we added the ability to send a stable, static user identifier (i.e. external user ID) to fix failed launches with the QwikLabs tool. This is because the QwikLabs tool did not work with the course-anonymized user IDs we used to send (i.e. anonymous user IDs). Inadvertently, this change broke the LTI 1.1 Basic Outcomes Service and the LTI 2.0 Result Service for courses that use the external user ID (i.e. they have the lti_consumer.enable_external_user_id_1p1_launches CourseWaffleFlag enabled). The Basic Outcomes Service and Result Service handle grade pass backs. Because we now have two ways to identify a user in LTI 1.1/2.0, we must update the Basic Outcomes Service and Result Service to support both. This commit fixes this bug.
2022-11-30 11:40:51 -05:00
Usama Sadiq
929d4b97d2 Revert "feat: update xblock lti library to version 7" (#31377) 2022-11-30 13:19:49 +05:00
Marlon Keating
1582b800c7 Merge pull request #31371 from openedx/marlonkeating-versionbump
chore: version bump edx-enterprise to 3.58.14
2022-11-29 11:59:35 -08:00
Marlon Keating
8dca5638df chore: version bump edx-enterprise to 3.58.14 2022-11-29 18:03:19 +00:00
Andy Shultz
1985cd6d15 feat: update xblock lti library to version 7
7 removed use of various deprecated block methods, 7.0.1 includes
a minor bugfix
2022-11-29 11:54:32 -05:00
Feanil Patel
8ccf2a3b88 chore: Run compile requirements 2022-11-29 10:49:02 -05:00
Feanil Patel
15251640a9 fix: Explicitly ask for the css extra package.
Based on https://github.com/openedx/edx-platform/pull/31360/files#r1033984433
it looks like compile-requirements runs differently on different OSes
potentially.  But we need this because it's used by the CSSSanitizer in
capa (xmodule/capa/util.py).
2022-11-29 10:45:48 -05:00
Mohammad Ahtasham ul Hassan
19ee9f0354 chore: install django-wiki from pypi (#31271) 2022-11-29 13:29:07 +05:00
Feanil Patel
8f446759f5 chore: Run make compile-requirements 2022-11-28 14:19:59 -05:00
Feanil Patel
cd3a7cbbec chore: Remove explicit dependency.
This dependency was explicitly added but doesn't need to be because
it's only required as a sub-dependency of edx-enterprise.  We can
pull it in by recompiling the requirements instead.
2022-11-28 14:19:53 -05:00
Agrendalath
8662672444 feat!: update Drag and Drop v2 XBlock to prevent XSS vulnerabilities
BREAKING CHANGE: disallowed HTML tags (e.g. <script>) will no longer be
rendered in LMS and Studio.
2022-11-28 13:45:18 -05:00
Tim McCormack
279e4d0b67 feat: Use new configurable producer API for event bus (#31356)
This involves a breaking-change update to edx-event-bus-kafka 2.0.0.
2022-11-28 18:41:35 +00:00
Kira Miller
f56dcc9f1b Merge branch 'master' into kiram15-versionbump 2022-11-28 13:21:05 -05:00
Kira
4b08efc18d chore: version bump 2022-11-28 13:19:12 -05:00
Brian Beggs
cff40f2142 chore: Add PGPy as a requirement see ENT-6547 (#31355)
This is intended as a temporary fix to unblock the pipeline.
2022-11-28 18:15:41 +00:00
Brian Citro
4b6f55af5a chore: upgrade edx-enterprise version to 3.58.12 2022-11-22 10:54:28 -05:00
Saleem Latif
c75737d647 chore: upgrade edx-enterprise version to 3.58.11 2022-11-22 15:44:32 +05:00
muhammad-ammar
91f7992754 chore: upgrade edx-enterprise to 3.58.10 2022-11-22 13:55:28 +05:00
michaelroytman
abe8fcbe47 feat: upgrade lti-consumer-xblock to install proctoring support and LTI 1.1 launch user_id changes
This commit upgrades the version of the lti-consumer-xblock library from version 6.1.0 to version 6.4.0. Version 6.3.0 includes support for the Proctoring Assessment Messages of the 1EdTech Proctoring Services Specification (i.e. the in-browser proctoring launch). Version 6.4.0 includes changes to the user_id attribute in the LTI launch message of the LTI 1.1 XBlock launch.

Please see the CHANGELOG entry for these versions for a full description of the changes: https://github.com/openedx/xblock-lti-consumer/blob/master/CHANGELOG.rst#630---2022-11-16 and https://github.com/openedx/xblock-lti-consumer/blob/master/CHANGELOG.rst#640---2022-11-18. The commit messages are included below for convenience.

6.3.0

feat: adds support for LTI 1.3 Proctoring Service specification in-browser proctoring launch.

  * Adds an Lti1p3ProctoringLaunchData data class. It should be included as an attribute of the Lti1p3LaunchData
    data class to provide necessary proctoring data for a proctoring launch.
  * Adds an LtiProctoringConsumer class. This class is used to generate LTI proctoring launch requests and to decode
    and validate the JWT send back by the Tool with the LtiStartAssessment message.
  * Adds an lti_1p3_proctoring_enabled BooleanField to the LtiConfiguration model. This field controls whether
    proctoring is enabled for a particular LTI integration.
  * Modifies the launch_gate_endpoint to support LtiStartProctoring and LtiEndAssessment LTI launch messages.
  * Adds an start_proctoring_assessment_endpoint to support LtiStartAssessment messages from the Tool.
  * Adds an LTI_1P3_PROCTORING_ASSESSMENT_STARTED signal. This signal is emitted when the LtiStartAssessment message is
    sent from the Tool to inform users of the library that the LtiStartAssessment message has been received.

6.4.0

feat: add course flag to send external_user_id as user_id in LTI 1.1 XBlock launches

This commit introduces a new CourseWaffleFlag lti_consumer.enable_external_user_id_1p1_launches. When this flag is enabled for a course, LTI 1.1 XBlock launches in that course will send the user's external_user_id as the user_id attribute of the launch. external_user_id is the user's external user ID as defined, created, and stored by the external_user_ids Djangoapp in the edx-platform. When this waffle is not enabled for a course - the default case - LTI 1.1 XBlock launches in that course will continue to send the user's anonymous_user_id as the user_id attribute of the launch, as before.

This provides an opt-in opportunity for courses to send a consistent, static, and opaque user identifier in an LTI 1.1 XBlock launch. This may be necessary for integration with LTI tools that require such an identifier.

Please be aware that toggling this flag in a running course carries the risk of breaking the LTI integrations in the course. This flag should also only be enabled for new courses in which no LTI attempts have been made.
2022-11-21 10:01:07 -05:00
Saleem Latif
782be9e43a chore: edx-enterprise version upgrade to 3.59.9, new vesion contains a fix for validating pgp keys. 2022-11-21 14:17:59 +05:00
Andrew Shultz
4b6e1ab48f Merge pull request #31284 from openedx/ashultz0/lti610
fix: update xblock LTI to 6.1.0 to fix bugs with lti studio in 6.0.0
2022-11-14 12:53:23 -05:00
Alexander Sheehan
f53e2585e5 chore: bumping enterprise to version 3.58.8 2022-11-14 09:45:55 -05:00
Andy Shultz
f13cd1d5a3 fix: update xblock LTI to 6.1.0 to fix bugs with lti studio in 6.0.0 2022-11-14 09:04:36 -05:00
Andy Shultz
996646fef0 fix: pin LTI xblock to version 5.0.1 while 6 is fixed
6.0.0 refactored this xblock in a way that does not work with studio
leaving blocks partialy broken. While that is being fixed, roll back
to 5.0.1.

Bug ticket: MST-1697
2022-11-07 09:30:51 -05:00
Kira Miller
c0f23d0bb8 Merge pull request #31248 from openedx/kiram15/ENT-6461-1
fix: edx-enterprise version update
2022-11-03 09:35:58 -04:00
Usama Sadiq
605a0a66e7 Install pip and pip tools (#31206)
* fix: install pip & pip-tools in make upgrade
* chore: Updating Python Requirements (#31205)

Co-authored-by: edX requirements bot <49161187+edx-requirements-bot@users.noreply.github.com>
2022-11-03 16:28:32 +05:00
Shahbaz Shabbir
2ad42ef7c7 Merge pull request #31242 from openedx/shahbaz/VAN-1147
chore: upgrade edx-braze-client package
2022-11-03 14:56:34 +05:00
Kira
4d36c91626 fix: version update 2022-11-02 16:27:16 -04:00
Andy Shultz
385c53651e fix: update proctoring library for better expiration date sharing 2022-11-02 14:02:58 -04:00
Rebecca Graber
972b4eff1d feat: upgrade edx-event-bus-kafka to bring in new error logging and monitoring (#31245) 2022-11-02 13:45:21 -04:00
shahbaz-arbisoft
7947bcd647 chore: upgrade packages, specifically edx-braze-client 2022-11-02 15:19:53 +05:00
Rebecca Graber
5b4330fcc5 feat: update event bus dependencies to bring in schema fix (#31237) 2022-11-01 09:38:12 -04:00
Alexander Sheehan
1848356626 chore: bumping enterprise version to 3.58.4 2022-10-31 11:55:50 -04:00
Andy Shultz
7587e5a169 feat: update lti xblock to refactored version 6.0.0 2022-10-28 15:15:36 -04:00
Alexander Sheehan
7f94ee6625 chore: bumping enterprise version to 3.58.3 2022-10-28 14:04:29 -04:00
Andy Shultz
0bc5de4bf2 feat: proctoring to 4.13.1 to pick up two to one year change 2022-10-27 10:56:20 -04:00
Mohammad Ahtasham ul Hassan
c2506ea8d0 Revert "chore: install codejail from PyPI (#31207)" (#31213)
This reverts commit 66e4902e9e.
2022-10-27 17:10:29 +05:00
Mohammad Ahtasham ul Hassan
66e4902e9e chore: install codejail from PyPI (#31207) 2022-10-27 14:26:11 +05:00
Usama Sadiq
4734f9f16e fix: bump pylint version (#31084) 2022-10-27 12:19:09 +05:00
Andy Shultz
d89751fb01 fix: pick up a due date fix in proctoring 4.13.0 2022-10-26 09:26:03 -04:00
Mohammad Ahtasham ul Hassan
c349f9318d Install xblock-google-drive from pypi (#31201)
* chore: install xblock-google-drive from pypi
2022-10-26 15:48:38 +05:00
Brian Citro
cef28c6dec chore: bump enterprise version 2022-10-25 11:34:06 -04:00
Mohammad Ahtasham ul Hassan
3f46d489eb chore: install xblock-drag-and-drop from pypi (#31196) 2022-10-25 13:09:50 +05:00
Zachary Hancock
672b1341c4 chore: update edx-proctoring python and js (#31185) 2022-10-24 11:09:23 -04:00