Commit Graph

61762 Commits

Author SHA1 Message Date
edx-semantic-release
369e5af85a chore(i18n): update translations 2022-08-07 16:58:05 -04:00
Waheed Ahmad
767646fde3 fix: broken promise for personalized recommendations (#30828)
VAN-1034
2022-08-05 19:01:32 +05:00
Muhammad Adeel Tajamul
525dfa6ef6 fix: author can see close edit reason (#30819)
Co-authored-by: adeel.tajamul <adeel.tajamul@arbisoft.com>
2022-08-05 16:38:32 +05:00
Waheed Ahmad
f8632ab721 fix: show general recommendations on error or empty list (#30827)
Currently, the loading sign shows indefinitely if the recommendation API response
is 200 with an empty recommended courses list. Fix, it by showing the general
recommendations.

VAN-1034
2022-08-05 15:14:08 +05:00
Zainab Amir
e73139d60f feat: add error handling to email task (#30820) 2022-08-04 13:03:03 +05:00
Michael Roytman
6c47a6d0aa Merge pull request #30824 from openedx/mroytman/bump-xblock-lti-consumer-4.3.3
fix: missing exception details in xblock-lti-consumer logs
2022-08-03 10:10:58 -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
SaadYousaf
a948f535c1 feat: add flag to pass inIframe query_param for discussions MFE. 2022-08-03 15:39:02 +05: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
Marcin
86bd82c4fb feat: added flag for exams ida (#30815) 2022-08-02 13:52:38 -04:00
Chris Chávez
ebd96cba8a fix: Bug showing hidden sections for learners of a public course fixed (#27925)
The bug is explained in https://openedx.atlassian.net/browse/CRI-233. Only is missing add the `VisibilityTransformer` in `get_blocks()` when the user is not enrolled to the course.
On the test, `html_block` is visible only for staff and `vertical_block` is a normal block. The new behaviour hides the `html_block` and show the `vertical_block` to anonymous users
2022-08-02 12:40:23 -04:00
Mubbshar Anwar
38e63681bb fix: Update event property (#30768)
- Use course_key instead of course_run_key for the is_personalized_recommendation event.

VAN-1021
2022-08-02 21:04:43 +05:00
Justin Hynes
999970d60b Merge pull request #30809 from openedx/jhynes/microba-1901_task-status-fix
feat: Add a little bit more detail to REVOKED (scheduled) bulk email tasks
2022-08-02 08:09:29 -04:00
Alexander J Sheehan
08eb1551b2 Merge pull request #30814 from openedx/asheehan-edx/bumping-enterprise-3-55-1
chore: bumping enterprise version to 3.55.1
2022-08-01 11:41:16 -04: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
edx-semantic-release
a73582962c chore(i18n): update translations 2022-07-31 16:54:21 -04:00
Moeez Zahid
500cc9f0f0 fix: Add default video stream priority (#30810) 2022-07-29 22:31:47 +05:00
Justin Hynes
10014d79be feat: Add a little bit more detail to REVOKED (scheduled) bulk email tasks
[MICROBA-1901]
- Update the task_output for (scheduled) bulk emails to include a _little_ more info when they are REVOKED.
2022-07-29 12:06:45 -04:00
Moeez Zahid
3311225292 feat: Add stream_priority for videos (#30767)
* feat: Add stream_priority for videos
2022-07-29 13:33:42 +05:00
Robert Raposa
2af65d1b77 feat: add monitoring for users across requests (#30795)
We already add the user id (imperfectly) to many requests.
However, when a user starts off unauthenticated, it is not
possible to correlate to those requests. Adding the raw
IP chain provides that possibility. See new custom attribute
ip_chain.raw.
2022-07-28 13:45:34 -04:00
Kyle McCormick
cd18f48ad7 docs: link to sub-project dissolution ADR in xmodule README (#30794)
Co-authored-by: Robert Raposa <rraposa@edx.org>
2022-07-28 12:32:58 -04:00
Zainab Amir
56e8203496 feat: set default value for is_marketable (#30784)
If a user is created using manage_user command, set value
for is_marketable attribute to false.

VAN-996
2022-07-28 18:10:10 +05:00
Mohammad Ahtasham ul Hassan
bd90ebde7b fix: unpin numpy (#30761) 2022-07-28 15:56:03 +05:00
Raymond Zhou
6cdc481db8 feat: fix for course_keys nonetype error (#30797) 2022-07-28 10:39:05 +05:00
SaadYousaf
257a7f38d3 feat: enable moderators to unreport content for discussion api 2022-07-27 19:30:52 +05:00
Muhammad Ammar
24dbf9653c Merge pull request #30792 from openedx/bilaltahir21/ENT-5938-fix
fix: revert api client for UNENROLL_DONE signal
2022-07-27 17:31:32 +05:00
Muhammad Soban Javed
3d96700189 Merge pull request #30791 from openedx/revert-30762-revert-30403-iamsobanjaved/BOM-2582-move-common-lib-capa
refactor: move common/lib/capa/capa to xmodule/capa
2022-07-27 16:41:50 +05:00
Muhammad Bilal Tahir
a35176e09b fix: revert api client for UNENROLL_DONE signal 2022-07-27 16:35:59 +05:00
Sameen Fatima
282d639e32 refactor: simplify code logic for consent_needed_for_course utility (#30775) 2022-07-27 16:34:06 +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
Brian Beggs
6d80bddb95 Merge pull request #30693 from open-craft/pooja/fix-page-banner-message-not-seen
[BB-6438] Check if feature is enabled before calling enterprise api
2022-07-26 14:42:47 -04:00
John Nagro
ca13defc90 feat: release edx-enterprise 3.54.2 (#30788) 2022-07-26 14:14:28 -04:00
Kyle McCormick
423acd32f9 docs: retroactively add ADR for dissolution of sub-projects (#30779) 2022-07-26 11:33:01 -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
Jansen Kantor
33e8d26502 Jkantor/learner course regrade queue (#30778)
* temp: move recalculate_course_and_subsection_grades_for_user to new queue
2022-07-25 15:14:05 -04:00
Keith Grootboom
7021b0e977 chore: bump django-wiki version to 1.1.1 (#30709) 2022-07-25 12:35:31 -04:00
Braden MacDonald
82ec7159a8 fix: disable Mongo collision detection when MySQL stores course indexes (#30746)
We have found that for many courses on edx.org, the "current version"
of the course that's stored in MongoDB doesn't match what's stored in
MySQL. Although this doesn't directly cause any problems as the
"current version" (course index) is not normally read from MongoDB,
it's not supposed to happen - and it can cause problems if some other
extra-platform components (like a pruner script) read the course
indexes out of MongoDB.

We still aren't sure what can cause MongoDB and MySQL to get out of
sync in the first place; this won't necessarily fix that issue. What
this does fix is a bug that seems to be: once they get out of sync,
they stay out of sync and mongo will stop receiving writes.

The Mongo code in most cases will only write a new record if the
"current" record's last_update matches the last_update value before
the change was made. e.g. last_update is "10am", user makes a change,
Mongo gets updated only if the current row's last_update is still
"10am". Otherwise it's considered a "collision" and silently ignored.

Once Mongo and MySQL somehow become out of sync, they may stay out of
sync because any new writes will have a last_update value read from
MySQL, which is newer than the value in MongoDB, so the MongoDB writes
will all be rejected as "collisions".

This should fix the issue by making mongo writes always match the MySQL
writes, instead of letting the Mongo code "decide on its own" when to
write course index updates or not.
2022-07-25 11:26:01 -04:00
Muhammad Ammar
9a13121d95 Merge pull request #30776 from openedx/ammar/enable-outcome-surveys-segment-events
feat: enable outcome surveys segment events
2022-07-25 19:32:45 +05:00
muhammad-ammar
f56b39a0c9 feat: enable outcome surveys segment events 2022-07-25 18:54:14 +05:00
Michael Roytman
4c6db8c869 Merge pull request #30772 from openedx/mroytman/bump-xblock-lti-consumer-4.3.2
test: add debugging log statements for user_id LtiError
2022-07-25 08:56:03 -04:00
Hammad Ahmad Waqas
500e16237f Merge pull request #30741 from openedx/hammad/ENT-5992
feat: added support to check for DSC in course-home:course-metadata view.
2022-07-25 14:08:59 +05:00
Mehak Nasir
f79e35dfcb style: icon design fixed by adding svg (#30763)
fix: style fix added for legacy button
2022-07-25 13:50:09 +05:00
edx-semantic-release
e678ac14fa chore(i18n): update translations 2022-07-24 16:54:41 -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
Michael Roytman
65a5bdbe0d Merge pull request #30771 from openedx/mroytman/bump-xblock-lti-consumer-4.3.1
fix: hidden lti_version and 1.3 fields in edit view and incorrect menu behavior in Javascript
2022-07-22 11:00:41 -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