Commit Graph

64893 Commits

Author SHA1 Message Date
feanil
ba28d248a6 feat: Upgrade Python dependency user-util
Add Python 3.11 Support

Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`
2024-04-10 09:39:39 -04:00
Feanil Patel
20f94e5b18 Merge pull request #34500 from openedx/feanil/update_new_asset_commands
build: Remove the `npm bin` calls from package.json
2024-04-10 09:01:33 -04:00
Feanil Patel
4e3dd161ff build: Remove the npm bin calls from package.json
That command no longer exists with newer versions of NPM but the build
path for `npm run` includes the `node_modules/bin` directory now so it's
also not necessary.
2024-04-09 15:48:01 -04:00
Feanil Patel
41953bb3b2 Merge pull request #34498 from brian-smith-tcril/fix-prod-webpack-config
fix: replace outdated webpack plugins
2024-04-09 15:25:40 -04:00
Feanil Patel
f8eececaee Merge pull request #34497 from brian-smith-tcril/bump-npm
fix: bump npm from 10.2.x to 10.5.x
2024-04-09 14:51:23 -04:00
Brian Smith
b204f1b572 fix: replace outdated webpack plugins 2024-04-09 14:28:12 -04:00
Brian Smith
b6662d4ee0 fix: bump npm from 10.2.x to 10.5.x 2024-04-09 14:15:47 -04:00
Feanil Patel
1e9f36c54d Merge pull request #34311 from brian-smith-tcril/node-18
chore: upgrade to node 18
2024-04-09 11:16:29 -04:00
github-actions[bot]
968a120c7b feat: Upgrade Python dependency edx-enterprise (#34494) 2024-04-09 19:46:57 +05:00
Brian Smith
8fb63bb0cf chore(deps): update deps to support node 18 2024-04-09 10:32:54 -04:00
Brian Smith
2511556e95 chore: test updating node to 16.20 2024-04-09 10:32:54 -04:00
Brian Smith
5fa163a769 chore: add .nvmrc to match node version in Dockerfile 2024-04-09 10:32:54 -04:00
ruzniaievdm
a8586e5114 feat: display error notifications on the Unit page (#34450) 2024-04-09 09:52:35 -04:00
Pooja Kulkarni
3c7e16255a feat: add new endpoint for cloning course (#31794)
Co-authored-by: Maxim Beder <maxim@opencraft.com>
2024-04-09 15:05:10 +05:30
Chris Chávez
ddb407a3f2 feat: handle tags when importing/exporting courses (#34356) 2024-04-08 11:39:46 -07:00
Ben Lu
54eeedf3a4 Merge pull request #34400 from openedx/add-JWT-kid-for-verification-when-use-asymmetric-key
feat: add kid when encoding and signing JWT with asymmetric key
2024-04-08 12:53:49 -05:00
Rodrigo Martin
b42e66bcdc fix(AU-1855): Fix email WCR email subject variable text (#34488)
* fix(AU-1855): Fix email WCR email subject variable text

* fix(AU-1855): Add filter force_escape before blockstrans
2024-04-08 13:42:15 -03:00
Alexander J Sheehan
ada5ad973a Merge pull request #34487 from openedx/alex-sheehan-edx/upgrade-edx-enterprise-b706e60
feat: Upgrade Python dependency edx-enterprise
2024-04-08 11:42:03 -04:00
alex-sheehan-edx
c2e4faa068 feat: Upgrade Python dependency edx-enterprise
enterprise version bump

Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`
2024-04-08 14:56:03 +00:00
Saleem Latif
b706e600a0 Merge pull request #34481 from openedx/saleem-latif/upgrade-edx-enterprise-a1f08d8
feat: Upgrade Python dependency edx-enterprise
2024-04-08 15:25:11 +05:00
saleem-latif
78eb317303 feat: Upgrade Python dependency edx-enterprise
chore: edx-enterprise version upgrade to 4.14.0

Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`
2024-04-08 09:40:36 +00:00
Irtaza Akram
a1f08d85bd Merge pull request #34398 from openedx/xblock2
upgrade xblock==2.0
References:
- https://github.com/openedx/public-engineering/issues/15
- https://github.com/openedx/XBlock/pull/680
2024-04-08 14:30:38 +05:00
Michael Roytman
7a9672944a Merge pull request #34478 from openedx/michaelroytman/COSMO-238-idv-approval-management-command
Add must_retry as valid status to approve_id_verifications management command.
2024-04-05 15:04:55 -04:00
michaelroytman
541bc6f5cb feat: add must_retry as valid status to approve_id_verifications management command
Sometimes, submissions to an IDV provider fail, which results in an IDV attempt moving from the "ready" status into the "must_retry" status instead of the "submitted" status.

We would like to approve these attempts too.
2024-04-05 14:01:45 -04:00
Kyle McCormick
a27cda2fd9 revert: "build: remove dependency on Python sass module (#34439)" (#34476)
This reverts commit a08a10c396.

compile_sass.py had a bug which was caught by 2U's pipeline, but not
by local testing.
2024-04-05 11:59:58 -04:00
Rodrigo Martin
e768d6d9e5 feat: send email after course reset completion (#34460)
* feat: send email after course reset completion

* fix: lint test

* fix: clean code

* fix: correct expected email parts

* fix: logs

* fix: email assertion
2024-04-05 12:27:21 -03:00
Kyle McCormick
a08a10c396 build: remove dependency on Python sass module (#34439)
Instead of using libsass-python's `sass` module, which is incompatible
with Python 3.11, we now directly use libsass-python's `_sass` module,
which directly binds to the underlying C++ libsass library.

This ensures that the Sass build will not a blocker for the edx-platform
Python 3.11 upgrade, which needs to land in Redwood.

For more details, see the docstring at scripts/compile_sass.py#L167
2024-04-05 10:50:05 -04:00
Feanil Patel
b819ea17f6 Merge pull request #34474 from openedx/feanil/even_more_package_updates
feanil/even more package updates
2024-04-04 16:02:10 -04:00
Maria Grimaldi
e3dfbf2847 fix: fix typo in share embed link editor (#34470) 2024-04-04 14:09:11 -04:00
Bryann Valderrama
85620ec73c feat: add grading method support for problems with multiple attempts (#33911)
A new field in the Problem settings for choosing a Grading Method. Currently, the only Grading Method is the Last Score. From now on, when turning the feature flag on, the new grading methods available for configuration in Studio are:
- Last Score (Default): The last score made is taken for grading.
- First Score: The first score made is taken for grading.
- Highest Score: The highest score made is taken for grading.
- Average Score: The average of all scores made is taken for grading.
2024-04-04 14:04:25 -04:00
Kyle D. McCormick
24db4dfb53 build: compile/watch sass with new npm scripts
`paver` commands are deprecated for managing static assets. Starting in
Sumac, only `npm run` commands will be supported for managing static
assets.

To ease the transition, both `paver` and `npm run` commands will work in
Redwood. However, we want to stop using the *implementations* of the
`paver` asset commands right now, as they are blocking the Python 3.11
upgrade. This will also make the removal of `paver` commands more
straightforward come Sumac.

So, this commit turns these commands/functions:
* paver compile_sass (used by configuration)
* paver watch_sass (used by configuration and devstack)
* pavelib/assets.py:_compile_sass (used by Tutor)

into very thin wrappers around the new `npm run` commands. Each of these
paver routines now raise a loud deprecation warning, including a message
of the `npm run` command that the operator can switch to.
We expect no impact to site operators or end users.

https://github.com/openedx/edx-platform/issues/31895
2024-04-04 10:31:02 -04:00
Kyle D. McCormick
bd82b1d75a docs: npm scripts for static assets are no longer experimental :) 2024-04-04 10:31:02 -04:00
Kyle D. McCormick
3b8d018e4b fix: simplify npm run watch-sass so that it is more reliable
The implementation of `npm run watch-sass` was trying really hard
to recompile precisely only the Sass that needed to be recompiled, but in
order to do so, it had to spin up several `watchmedo` processes
per theme. These processes would trigger one another sometimes, leading
to infinite recompilation loops.

Rather than figure out all the dependency directions and messing with
`watchmedo`, I've opted to simplify the script to invoke a single
`watchmedo` process per theme. A single theme recompiles within
seconds, so I think this is a good compromise, one which makes the
script easier to reason about will help me move pass this legacy
assets work.
2024-04-04 10:31:02 -04:00
Kyle McCormick
5a785482ab test: remove some unused paver references from CI scripts (#34468)
All CI used to go through scripts/generic-ci-tests.sh, which is a
wrapper around various `paver` test/linting/check invocations.
These days, most edx-platform CI checks just invoke their tools (pylint,
pycodestyle, pytest, etc.) directly.

In anticipation of the proposed Paver deprecation [1], let's remove
the parts of this script that aren't used any more, including several
`paver` command invocations. This should have no impact on CI.

Furthermore, we are able to remove the SHARD environment variable,
which was formely used to split unit and quality checks up into
smaller pieces. Unit tests and pylint checks now have their own
separate sharding logic, so there is only one "quality" shard remaining
(SHARD=4, ie generic quality checks), thus we don't need a SHARD
variable at all.

[1] https://github.com/openedx/edx-platform/issues/34467
2024-04-04 10:05:04 -04:00
Muhammad Adeel Tajamul
fe13884ed6 feat: added management command to delete notifications (#34447)
* feat: added management command to delete notifications
2024-04-04 16:57:26 +05:00
Dmytro
03a490f7cd feat: add ability to notify credentials about honor certificates (#32633) 2024-04-04 07:56:02 -04:00
Irtaza Akram
d9458ceab8 fix: remove print statements 2024-04-04 16:15:56 +05:00
Irtaza Akram
49f5a4f1e3 fix: pylint and unit test 2024-04-04 16:06:26 +05:00
Irtaza Akram
c810a1b3e5 Merge branch 'master' into xblock2 2024-04-04 15:16:55 +05:00
Feanil Patel
28034a8cc0 chore: Update done-xblock to a python 3.11 compatible version. 2024-04-03 17:18:18 -04:00
Feanil Patel
f88c9493e9 chore: Update edx-django-release-util to a python 3.11 compatible version. 2024-04-03 17:01:20 -04:00
Feanil Patel
2c3eb3cbe7 chore: Update django-config-models to a python 3.11 compatible version. 2024-04-03 15:12:37 -04:00
Ben Lu
6112f85c0b fixup! feat: add JWT KID 2024-04-03 13:22:51 -05:00
Ben Lu
ef59da6775 feat: add JWT KID
Added JWT KID when encoding and signing JWT with asymmetrical key
2024-04-03 12:13:53 -05:00
Feanil Patel
d865e1b48a Merge pull request #34461 from openedx/feanil/more_python3.11_package_upgrades
Upgrade more packages to be Python 3.11 compatible
2024-04-03 12:33:15 -04:00
Brian Mesick
704c2e58a1 Merge pull request #34454 from qasimgulzar/qasim/DEPR/34342-warning
temp: adding DeprecationWarning to remove neo4j.
2024-04-03 11:16:00 -04:00
Jansen Kantor
e49628558c feat: add validation and actions to course reset django admins (#34453)
* fix: course opt in course id should be unique

* feat: add validation for opt in course id admin page

* feat: admin action to mark audits as failed
2024-04-03 10:08:50 -04:00
Jansen Kantor
9c5779ad9c feat: add flag to silence signals and events when clearing state (#34434)
* feat: add flag to silence signals and events when clearing state

* feat: don't emit signals and events when clearing entire course
2024-04-03 10:08:29 -04:00
Irtaza Akram
682a80addd fix: review changes 2024-04-03 16:03:56 +05:00
Irtaza Akram
79a4327f67 Merge branch 'master' into xblock2 2024-04-03 14:57:00 +05:00