Commit Graph

4351 Commits

Author SHA1 Message Date
edX requirements bot
08d4538c8b Python Requirements Update (#30917)
* chore: Updating Python Requirements
* fix: fix relative paths in requirements

Co-authored-by: UsamaSadiq <usama.sadiq@arbisoft.com>
2022-08-30 15:12:50 +05:00
Zachary Hancock
7e05c9cf0e Revert "chore: edx-proctoring update (#30913)" (#30915)
This reverts commit f55fe0f138.
2022-08-29 15:18:33 -04:00
John Nagro
d3b5efe551 feat: release edx-enterprise 3.56.7 (#30914) 2022-08-29 14:29:06 -04:00
Zachary Hancock
f55fe0f138 chore: edx-proctoring update (#30913) 2022-08-29 11:22:23 -04:00
John Nagro
ad15abe6b9 feat: release edx-enterprise 3.56.6 (#30899) 2022-08-24 16:23:46 -04:00
Rebecca Graber
c1009b56f6 feat: emit COURSE_CATALOG_INFO_CHANGED signal on publish (#30805)
Implements https://github.com/openedx/edx-platform/issues/30682

Produce signal only once transaction for a course publish is
committed, and only for actual courses (not libraries).

- Use newer openedx-events version that has a fix for None datetime
  and that has CourseCatalogData without org, number.
- Add edx-event-bus-kafka -- specify recent version that drops
  confluent-kafka from explicit deps, fixes common auth settings, and has
  a multi-producer caching tweak.
- New functionality is behind toggle

As per https://github.com/openedx/openedx-events/issues/88 we're going to
try explicit dependencies on implementations for now, rather than solve
all the problems we'd encounter by using private dependencies.

Co-authored-by: Tim McCormack <tmccormack@edx.org>
Co-authored-by: Rebecca Graber <rgraber@edx.org>
2022-08-24 16:39:24 +00:00
Michael Roytman
fe8a8ef228 Merge pull request #30884 from openedx/mroytman/bump-xblock-lti-consumer-4.5.0
feat: decouple LTI handlers from XBlock and improve LTI error handling for unauthenticated users
2022-08-23 12:29:33 -04:00
Matjaz Gregoric
a5bc75c2dd Merge pull request #30773 from open-craft/tecoholic/add-filter-hook-to-vertical-block-rendering
Add openedx-filters hook to VerticalBlock before rendering of child blocks
2022-08-23 17:19:09 +02:00
michaelroytman
8fd2c9849f feat: decouple LTI handlers from XBlock and improve LTI error handling for unauthenticated users
This commit updates the version of the lti-consumer-xblock from 4.3.3 to 4.5.0. This installs the newest version of the lti-consumer-xblock library. This version includes the following changes, from versions 4.4.0 and 4.5.0 of the library.

* Move LTI XBlock Handlers to Django Plugin (4.4.0)

1. The functionality of LTI 1.3 Launch Handler is moved from the XBlock to the Django plugin.
2. The functionality of the Access Token endpoint is moved from XBlock to the Django plugin.
3. A new URL format using the LtiConfiguration ID is introduced for the Access Token endpoint and is used when a LTI Consumer is configured without a location allowing LTI integrations to be created without the XBlock context.
4. A new URL format using the LtiConfiguration ID is introduced for the Keyset Endpoint and is used with the location of the XBlock is not available in the configuration.

* Handle LtiError Error During LTI 1.1 Launch for Unauthenticated User (4.5.0)

1. Improve error handling for LTI errors raised during LTI 1.1 launch when user is unauthenticated by returning a 400 response instead of falling through to the 500 error.
2. Change the error template to be generic to both LTI 1.1 and LTI 1.3 launches.
3. Revert logging amendments that were made to investigate the nature of the LTI errors.
2022-08-22 15:11:33 -04:00
Shafqat Farhan
a791759202 feat: VAN-1051 - Integrated Optimizely fullstack Client and experiment 2022-08-22 14:33:25 +05:00
Arunmozhi
6867d55364 feat: adds openedx-filter hook to the child blocks of VerticalBlock
This commit adds a openedx-filters hook to the VerticalBlock XBlock
before rendering of it's children. This allows Open edX plugins to
customize the presentation of specific blocks based on the context.
2022-08-20 13:09:10 +05:30
Jansen Kantor
29f41c8a81 chore: bump submissions to get json encoding fix (#30876)
* chore: bump submissions to get json encoding fix

* fixup! chore: bump submissions to get json encoding fix

* chore: version bump again
2022-08-19 10:07:11 -04:00
John Nagro
0c4e59f389 feat: release edx-enterprise 3.56.5 (#30873) 2022-08-17 16:45:17 -04:00
John Nagro
dd88a4201e feat: release edx-enterprise 3.56.2 (#30852) 2022-08-12 12:41:31 -04:00
Muneeb Ur Rehman
fd06c5b399 chore: bump the version of learner-pathway-progress (#30849) 2022-08-12 17:54:33 +05:00
Alexander Sheehan
a5992fa080 chore: bumping enterprise requirements to 3.56.1 2022-08-10 12:36:20 -04:00
John Nagro
691a866b87 feat: release edx-enterprise 3.56.0 (#30841) 2022-08-10 11:16:18 -04:00
Alexander Sheehan
e84502647f chore: bumping enterprise version to 3.55.3 2022-08-09 12:56:27 -04:00
Alexander J Sheehan
b164b87c38 chore: bumping enterprise version to 3.55.2 (#30833) 2022-08-08 13:01:28 -04:00
michaelroytman
5d5fce2949 fix: missing exception details in xblock-lti-consumer logs
This commit updates the version of the lti-consumer-xblock from 4.3.2 to 4.3.3. This installs the newest version of the lti-consumer-xblock library. This version includes the following changes.

The error handler in LtiConsumerXBlock.lti_1p3_launch_callback logs a warning when a select set of exceptions are handled. That log does not contain useful information about the nature of the exception, because the exceptions were not being instantiated with error messages. The try...catch is a large block that contains code that can raise a multitude of errors, so these changes will enable better debugging.

This commit:
* adds helpful messages to the raised exceptions.
* adds the "exc_info=True" argument to include the stack trace of the handled exception.
* adds ValueError and TypeError to the list of handled exceptions, because the code can raise exceptions of these types.
2022-08-03 08:17:25 -04:00
edX requirements bot
d9377ca414 Django 3.2.15 security patch update (#30822)
* chore: Updating Python Requirements
* fix: pin pycodestyle<2.9.0 to fix quality

Co-authored-by: UsamaSadiq <usama.sadiq@arbisoft.com>
2022-08-03 14:28:22 +05:00
Tim McCormack
f95b414551 fix: Use non-yanked version of snowflake-python-connector (#30821)
2.7.10 was yanked for not having the right dependency constraints:
https://github.com/snowflakedb/snowflake-connector-python/issues/1206#issuecomment-1195840226
2022-08-02 20:04:10 +00:00
Alexander Sheehan
37b3c40428 chore: bumping enterprise version to 3.55.1 2022-08-01 10:45:25 -04:00
Long Lin
124bd83124 chore: bump edx-enterprise version 2022-08-01 09:34:46 -04:00
Mohammad Ahtasham ul Hassan
bd90ebde7b fix: unpin numpy (#30761) 2022-07-28 15:56:03 +05:00
Muhammad Soban Javed
d053bba952 Revert "Revert "refactor: move common/lib/capa/capa to xmodule/capa" (#30762)"
This reverts commit 4463ee751d.
2022-07-27 15:36:08 +05:00
John Nagro
ca13defc90 feat: release edx-enterprise 3.54.2 (#30788) 2022-07-26 14:14:28 -04:00
John Nagro
a69171204d feat: release edx-enterprise 3.54.1 (#30787) 2022-07-26 10:22:09 -04:00
Muneeb Ur Rehman
6d8201b603 build(deps): upgrade edx-enterprise to latest version (#30785) 2022-07-26 18:40:42 +05:00
edX requirements bot
fee05710f4 Python Requirements Update (#30780)
* chore: Updating Python Requirements
2022-07-26 17:59:39 +05:00
Keith Grootboom
7021b0e977 chore: bump django-wiki version to 1.1.1 (#30709) 2022-07-25 12:35:31 -04:00
michaelroytman
efc59de056 test: add debugging log statements for user_id LtiError
This commit updates the version of the lti-consumer-xblock from 4.3.1 to 4.3.2. This installs the newest version of the lti-consumer-xblock library. This version includes the following changes.

This commit adds supplemental logging to diagnose the bug reported in MST-1540: https://2u-internal.atlassian.net/browse/MST-1540. The bug is that learners are encountering the LtiError when trying to do an LTI launch. The learners appear to be authenticated, so this error should not occur. The bug is not easily reproducible in production or development, so this supplemental logging is added to help understand the user's state when the error is raised.

The current hypothesis is that user is temporarily represented by the AnonymousUser in the request that is made when doing the LTI launch, despite the user otherwise being authenticated. Logging in Splunk suggests that this is the case, because logs are of the following form, "2022-07-22 15:10:14,214 ERROR 5067 [django.request] [user None] [ip <ip>] log.py:224 - Internal Server Error: /courses/<course_key>/xblock/<usage_key>/handler/lti_launch_handler", where the "user" is "None". This logging should prove or disprove this hypothesis and provide direction about where else to look.

This logging should be removed once MST-1540 is resolved.
2022-07-22 12:41:23 -04:00
michaelroytman
85207225fc fix: hidden lti_version and 1.3 fields in edit view and incorrect menu behavior in Javascript
This commit updates the version of the lti-consumer-xblock from 4.3.0 to 4.3.1. This installs the newest version of the lti-consumer-xblock library. This version includes the following changes.

This commit fixes three bugs.

1. The first bug is that the lti_version field is inappropriately hidden in the Studio author view edit menu when the selected config_type is database.

2. The second bug is that the editable_fields property of the LtiConsumerXBlock is inappropriately excluding LTI 1.3 fields when the config_type is database. The editable_fields property should include LTI 1.3 fields even when the config_type is database, because the Javascript defined in xblock_studio_view.js may want to show these fields if the user selects a different config_type in the menu. We want to support a dynamic edit menu, so these fields must be considered editable by the XBlock in order for the Javascript to be able to manipulate them.

3. The third bug is in inconsistent rendering of the Studio author view edit menu. Depending on the order in which a user selects lti_version, config_type, or lti_1p3_tool_key_mode, different sets of fields are displayed, due to the overlapping sets of rules that govern what fields should be hidden or shown for a given field selection. This commit corrects this inconsistent rendering by first showing all fields and then gradually hiding fields depending on the sets of rules, for each change to the fields.
2022-07-22 10:19:27 -04:00
Brian Citro
0b195db04e fix: release edx-enterprise 3.53.4 2022-07-21 10:56:59 -04:00
Muhammad Soban Javed
4463ee751d Revert "refactor: move common/lib/capa/capa to xmodule/capa" (#30762) 2022-07-21 18:22:15 +05:00
Muhammad Soban Javed
06064b237b Merge pull request #30403 from openedx/iamsobanjaved/BOM-2582-move-common-lib-capa
refactor: move common/lib/capa/capa to xmodule/capa
2022-07-21 16:27:47 +05:00
John Nagro
ebf257813b feat: release edx-enterprise 3.53.3 (#30756) 2022-07-20 15:27:22 -04:00
Long Lin
42723fb056 chore: bump edx-enterprise version 2022-07-20 11:29:38 -04:00
Usama Sadiq
455521d686 fix: pin charset normalizer version (#30749)
* fix: pin charset-normalizer<2.1.0
* fix: pin markdown<3.4.0 version

Co-authored-by: edX requirements bot <49161187+edx-requirements-bot@users.noreply.github.com>
2022-07-20 14:03:40 +05:00
John Nagro
22b38deb27 feat: release edx-enterprise 3.53.1 (#30745) 2022-07-19 14:41:51 -04:00
michaelroytman
d2ab45671a feat: Add LTI 1.3 and LTI Advantage config to LtiConfiguration model, support XBlock using database
This commit updates the version of the lti-consumer-xblock from 4.2.2/4.2.1 to 4.3.0. This installs the newest version of the lti-consumer-xblock library. This version includes the following changes.

This version adds additional core LTI 1.3 and LTI Advantage variables to the LtiConfiguration model. The additional core LTI 1.3 variables are lti_1p3_oidc_url, lti_1p3_launch_url, lti_1p3_tool_public_key, and lti_1p3_tool_keyset_url. The additional LTI Advantage variables are lti_advantage_enable_nrps, lti_advantage_deep_linking_enabled, lti_advantage_deep_linking_launch_url, and lti_advantage_ags_mode.

This commit also adds a configuration type to the LtiConsumerXBlock to support the storage of these Lti variables on the LTIConfiguration model (i.e. the database) instead of the XBlock itself.

Changes that allow the use of this configuration option are behind the lti_consumer.enable_database_config CourseWaffleFlag.
2022-07-19 10:42:48 -04:00
Soban Javed
9eba9f983a refactor!: move common/lib/capa/capa to xmodule/capa
As part of dissolving our sub-projects in edx-platform, we are moving this package under the xmodule directory.
We have fixed all the occurences of import of this package and also fixed all documents related references.
This might break your platform if you have any reference of `import capa` or `from capa import` in your codebase or in any Xblock.

Ref: https://openedx.atlassian.net/browse/BOM-2582
2022-07-19 12:20:04 +05:00
irfanuddinahmad
1c64ef96b8 chore: upgraded edx-enterprise version 2022-07-18 19:52:10 +05:00
muhammad-ammar
3f294eca1e feat: fire follow up event for first time passed learners 2022-07-15 15:54:29 +05:00
Zaman Afzal
506c47a74c chore: bump learner pathway progress version (#30726) 2022-07-14 16:41:23 +05:00
Zaman Afzal
5587d1b08e fix: Add Learner pathway progress update signal (#30722) 2022-07-14 10:28:48 +05:00
Jansen Kantor
143ea1dbbc fix: use peer assessment as default ora template (#30705)
* fix: use peer assessment as default ora template

* chore: bump ora

* test: update test after ORA update
2022-07-13 10:21:42 -04:00
David Ormsbee
915ddb98d7 fix: update LTI XBlock to fix DarkLangMiddleware issue 2022-07-07 12:42:35 -04:00
Sagirov Evgeniy
dccb463103 FC-0001: Remove edx-jsme, Molecular Structure Problem type (#30321)
* feat: Remove edx-jsme, Molecular Structure Problem type

* feat: remove common/static/js/capa/jsme and common/static/js/capa/jsmolcalc
2022-07-06 15:51:58 -04:00
Long Lin
6e71f303a5 chore: bump edx-enterprise version 2022-07-05 18:00:32 -07:00