Commit Graph

62080 Commits

Author SHA1 Message Date
Maxim Beder
e0330cf418 refactor: clean up HTMLSnippet
Remove code that is no longer needed after conversion of all the
XModules to standard XBlocks.
2022-10-15 14:27:58 +02:00
Usama Sadiq
7296c06b49 Update docutils & Sphinx constraints (#31152)
* fix: remove sphinx and docutils constraint
* fix: pin docutils<0.19 version

Co-authored-by: edX requirements bot <devops+edx-requirements-bot@edx.org>
2022-10-14 11:44:18 +05:00
SaadYousaf
c79c41e0a3 fix: filter out discussion topics that have not started yet for instructor paced courses 2022-10-13 23:15:46 +05:00
Michael Roytman
2ae11706d0 Merge pull request #31155 from openedx/mroytman/bump-xblock-lti-consumer-5.0.0
feat: decouple LtiConsumerXBlock.location from LTI 1.3 views
2022-10-13 13:40:58 -04:00
michaelroytman
6a8cdeeb43 feat: decouple LtiConsumerXBlock.location from LTI 1.3 views
This commit upgrades the version of the lti-consumer-xblock library from version 4.5.0 to version 5.0.0. This new version contains breaking changes to the public Python API published by the library, but it mainly contains code refactors that decouple the LtiConsumerXBlock.location field from the basic LTI 1.3 launches.

LTI 1.3 launches should continue to work unaltered.

The only course staff or instructor facing changes are described below. The access token and keyset URLs displayed in Studio have changed in format.

The old format was:

Access Token URL: https://courses.edx.org/api/lti_consumer/v1/token/block-v1:edX+999+2022Q3+type@lti_consumer+block@714c10a5e4df452da9d058788acb56be
Keyset URL: https://courses.edx.org/api/lti_consumer/v1/public_keysets/block-v1:edX+999+2022Q3+type@lti_consumer+block@714c10a5e4df452da9d058788acb56be

The new format is:

Access Token URL: https://courses.edx.org/api/lti_consumer/v1/token/c3f6af60-dbf2-4f85-8974-4ff870068d43
Keyset URL: https://courses.edx.org/api/lti_consumer/v1/public_keysets/c3f6af60-dbf2-4f85-8974-4ff870068d43

The difference is in the slug at the end of the URL. In the old format, the slug was the UsageKey of the XBlock associated with the LTI integration. In the new format, the slug is the config_id of the LtiConfiguration associated with the LTI integration. This is an iterative step toward decoupling the access_token_endpoint and the public_keyset_endpoint views from the XBlock location field. The XBlock location field appears as the usage_key parameter to both views. We cannot simply remove the usage_key parameter from the views, because existing LTI 1.3 integrations may have been created using the old format, and we need to maintain backwards compatibility. This change, however, prevents new integrations from being created that are coupled to the XBlock. In the future, we may address integrations that use the old format to fully decouple the XBlock from the views.
2022-10-13 12:42:29 -04:00
Kyle McCormick
66dc16c626 chore: upgrades blockstore to 1.2.4 (#31121)
and runs `make upgrade`

Blockstore changeset: https://github.com/openedx/blockstore/compare/1.2.1...openedx:blockstore:1.2.4

Co-authored-by: Jillian Vogel <jill@opencraft.com>
2022-10-13 08:45:07 -04:00
Ahtisham Shahid
c2696c07fc fix: updated topic sorting for discussions MFE (#31124)
* fix: updated topic sorting for discussions MFE

* feat: updated topic sorting test case
2022-10-13 15:09:19 +05:00
Jenkins
4bcf8cda80 chore: geoip2: update maxmind geolite country database 2022-10-12 16:53:30 -04:00
Kristin Aoki
cb51735333 feat: add thumbnail field to video xblock fields 2022-10-12 15:40:39 -04:00
Sagirov Evgeniy
265ddc426e feat!: raise 404 for old mongo course pages (#31125)
LMS Courseware access to Old Mongo courses was already removed in
fc8601de (https://github.com/openedx/edx-platform/pull/30172). This
commit makes direct links to the other tabs (progress, instructor
dashboard, discussion, static tabs) fail with a 404 error on Old
Mongo courses.

Upcoming work to remove parent/child relationships from the Old
Mongo Modulestore would have broken these pages anyway.
2022-10-12 10:44:04 -04:00
Demid
062a760242 feat: add "count_flagged" query param to the learner thread endpoint (#31048) 2022-10-12 16:41:06 +05:00
Muhammad Ammar
eb394173ff Merge pull request #31142 from openedx/iahmad/ENT-6295
chore: Update edx-enterprise version
2022-10-12 15:32:45 +05:00
Matjaz Gregoric
5b98fb1c06 Merge pull request #31145 from openedx/mtyaka/update-pr-tmeplate
build: nudge devs about Olive release in github
2022-10-12 09:08:14 +02:00
Muhammad Adeel Tajamul
c758291ebd fix: removed switch experience bar from legacy (#31138)
Co-authored-by: adeel.tajamul <adeel.tajamul@arbisoft.com>
2022-10-12 12:00:32 +05:00
Matjaz Gregoric
2f5a5ecd48 build: nudge devs about Olive release in github
Remind devs that when they open PRs on edx-platform, that they should backport their bug fixes to the Olive master branch (and think about backporting to Nutmeg as well).
2022-10-11 20:15:24 +02:00
Tim McCormack
fd20dfe51d chore: Unpin newrelic (Confluent Kafka instrumentation bug is fixed) (#31143)
Previously pinned in commit 71686cddb9/PR #31119.

Closes https://github.com/openedx/event-bus-kafka/issues/52
2022-10-11 14:29:16 +00:00
irfanuddinahmad
ca06675d30 chore: Update edx-enterprise version 2022-10-11 17:38:42 +05:00
Muhammad Bilal Tahir
0d41371d35 Merge pull request #31140 from openedx/btahir/ENT-6387
chore: upgrade learenr-pathway-progress version
2022-10-11 16:22:30 +05:00
Muhammad Bilal Tahir
39dd842c37 chore: upgrade learenr-pathway-progress version 2022-10-11 14:43:03 +05:00
edX requirements bot
882f3a9710 chore: Updating Python Requirements 2022-10-11 12:22:45 +05:00
Syed Sajjad Hussain Shah
52de7e9066 feat: integrate amplitude API with learner_home frontend [VAN-1124] (#31098) 2022-10-10 12:09:28 +05:00
Jenkins
3bd94f78f9 chore(i18n): update translations 2022-10-09 16:58:34 -04:00
Saad Yousaf
3423feb4fd Revert "fix: filter out discussion topics that have not started yet."
This reverts commit 54b5d59fc3.
2022-10-08 14:58:14 +05:00
SaadYousaf
54b5d59fc3 fix: filter out discussion topics that have not started yet. 2022-10-07 15:17:12 +05:00
Alejandro Cardenas
43158404bc perf: add lru_cache to improve performance with multiple themes
These changes should improve the performance caused by the file I/O
when it's running in docker, using lru_cache to save thousands of calls to listdir
when running with a handful of themes defined in COMPREHENSIVE_THEME_DIRS.
2022-10-06 14:32:14 -04:00
Nathan Sprenkle
5deeff3da1 fix: update enrollment.canUpgrade (#31122)
Had previously expected use_ecommerce_payment_flow which we forgot to
pass as part of context. Instead, simplify to infer from
ecommerce_payment_page (which will be None if the ecommerce flow is
disabled).
2022-10-06 13:20:22 -04:00
Tim McCormack
71686cddb9 fix: Pin newrelic to unreleased version fixing kafka instrumentation (#31119)
This will allow us to resume producing events with edx-event-bus-kafka
and help validate NR's fix. Unpinning is be tracked in
<https://github.com/openedx/event-bus-kafka/issues/52>.
2022-10-06 16:03:59 +00:00
Justin Hynes
5245c69d17 Merge pull request #31092 from openedx/jhynes/aper-1941_route-new-task-to-program-cert-queue
fix: update new `update_certificate_available_date_on_course_update` task to use dedicated credentials queue
2022-10-06 07:51:22 -04:00
Ned Batchelder
f3031d0b2a build(fix): use alls-green to correctly aggregate earlier steps
If a job "needs" earlier jobs, and one of the earlier jobs fails, then
the "needs" job will be marked as Skipped.  A required check that is
skipped doesn't block merging.

The alls-green action has the correct logic to fail the aggregation job
if any of its required jobs fail.
2022-10-06 04:22:42 -07:00
Syed Sajjad Hussain Shah
0509bb3acd feat: launch hotjar recommendations survey [VAN-1108] (#31118) 2022-10-06 16:08:32 +05:00
Muhammad Adeel Tajamul
5cb6e9859a feat: remove support for discussion mfe iframe (#31067)
Co-authored-by: adeel.tajamul <adeel.tajamul@arbisoft.com>
2022-10-06 06:04:33 +05:00
Jenkins
2bae5df47c chore: geoip2: update maxmind geolite country database 2022-10-05 16:53:26 -04:00
Nathan Sprenkle
2f10ba0992 fix: learner home entitlement image fallback (#31107)
* fix: add default for pseudo session image

This keeps the serializer from breaking when image is not present in a
pseudo session.
2022-10-05 15:56:08 -04:00
Leangseu Kim
27006febcd fix: safe wrapper for no program banner image 2022-10-05 14:40:06 -04:00
Kyle McCormick
56961ce0e6 build: fix syntax error in GH-hosted tests workflow (#31105)
We were seeing this error whenever unit tests
were run from a fork (only forks use the GH-hosted
workflow, which is why this was able to merge
into master):

  You have an error in your yaml syntax on line 65

The comment hash (#) needs to be aligned
with the rest of the text block.
2022-10-05 13:30:01 -04:00
Kristin Aoki
0d0f9e7b3c feat: add video_images_upload_enabled api so new video editor knows val 2022-10-05 11:09:24 -04:00
Mohammad Ahtasham ul Hassan
78999c8af5 fix: fix CI badge (#31097) 2022-10-05 14:35:47 +05:00
Syed Sajjad Hussain Shah
893c025d0c feat: add course recommendations api unit tests [VAN-1104] (#31069) 2022-10-05 11:37:55 +05:00
Jenkins
8f90ba5f32 chore(i18n): update translations 2022-10-04 16:54:59 -04:00
Justin Hynes
479129eb21 fix: update new update_certificate_available_date_on_course_update task to use credentials queue
[APER-1941]

* update new `update_certificate_available_date_on_course_update` task to use dedicated credentials queue (like the other import Credentials tasks)
2022-10-04 13:25:32 -04:00
Justin Hynes
2a54414eaf Merge pull request #31063 from openedx/jhynes/APER-1941_fix-cad-mgmt-cmd
fix issue with cert available dates not being removed from credentials
2022-10-04 08:20:25 -04:00
Shahbaz Shabbir
a41552b905 Merge pull request #31060 from shahbaz-arbisoft/shahbaz/VAN-1091
fix: use timeout from settings
2022-10-04 15:57:14 +05:00
edX requirements bot
354f825d3e chore: Updating Python Requirements 2022-10-04 11:17:13 +05:00
Tim McCormack
2edbdcf7f4 build: Clear out stale dependencies when installing requirements (#31080)
We've been seeing some cross-version caching issues in the
edx-platform-runner unit tests, which apparently run on a "dirty"
environment—the virtualenv does not get cleared out between runs,
which probably improves performance but allows installed dependencies
to "leak" between runs. This results in errors between master and older
open-releases but could also prevent us from noticing missing deps.

By using pip-sync in the new CI Make targets (as we already do for
the regular `make requirements` target) we can ensure that any stale
dependencies from runs by other branches (or older versions of the
code) are removed.

Calling `make local-requirements` at the end of each `*-requirements`
target rather than making it a prerequisite is necessary for using sync,
since otherwise the local reqs would be wiped out.

The `requirements` target is also deduplicated into the newer
`dev-requirements` (aliased to it, with both installing private deps now.)

Adding a prerequisite of `pre-requirements` allows us to simplify some
workflow calls slightly. This ends up being the bulk of the commit by
line count. The pip lockfile also wasn't being used in the Makefile, so
I added that to pre-requirements as well.

Also fix leading whitespace issue in Makefile.
2022-10-03 20:26:40 +00:00
Rebecca Graber
d2377d348a chore: upgrade edx-event-bus-kafka (#31081)
* chore: upgrade edx-event-bus-kafka
2022-10-03 14:06:45 -04:00
Ned Batchelder
a5f687bf70 build: add a success aggregation step to simplify required check configuration 2022-10-03 07:11:53 -07:00
Ned Batchelder
63f6baf528 style: make action style more uniform 2022-10-03 07:11:53 -07:00
Ned Batchelder
a78f8f9496 style: make action style more uniform 2022-10-03 07:11:53 -07:00
edX requirements bot
3744647bd6 chore: Updating Python Requirements 2022-10-03 17:21:24 +05:00
UsamaSadiq
69632ee702 fix: pin openedx-events version 2022-10-03 17:21:24 +05:00