Commit Graph

64852 Commits

Author SHA1 Message Date
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
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
Hamza Waleed
3f29c6aa45 Merge pull request #34458 from openedx/hamzawaleed01/upgrade-edx-enterprise-104969c
feat: Upgrade Python dependency edx-enterprise
2024-04-03 12:35:08 +05:00
Feanil Patel
61c6eec1f3 chore: Update edx-organizations to a python 3.11 compatible version. 2024-04-02 16:04:50 -04:00
Feanil Patel
d8d21f9a2b chore: Update edx-api-doc-tools to a python 3.11 compatible version. 2024-04-02 15:49:07 -04:00
Feanil Patel
fb5daf7739 chore: Update web-fragments to a python 3.11 compatible version. 2024-04-02 15:37:48 -04:00
Feanil Patel
a96f937cc7 Merge pull request #34455 from openedx/feanil/python3.11_package_upgrades
Python 3.11 Package Upgrades
2024-04-02 14:56:34 -04:00
qasim.gulzar
2eba42c7ad temp: adding DeprecationWarning to remove neo4j. 2024-04-02 23:44:10 +05:00
Jillian
7ad225658f feat: don't use OLX for tags when copying/duplicating blocks (#34386) 2024-04-02 09:59:57 -07:00
hamzawaleed01
b0543bcb9b feat: Upgrade Python dependency edx-enterprise
Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`
2024-04-02 11:29:53 +00:00
Feanil Patel
c8dfceb2a3 chore: Update edx-celeryutils to a python 3.11 compatible version. 2024-04-01 16:01:11 -04:00
Feanil Patel
8b843efe40 chore: Update edx-submissions to a python 3.11 compatible version. 2024-04-01 15:44:25 -04:00
Feanil Patel
dd9cba91cc chore: Update staff-graded-xblock to a python 3.11 compatible version. 2024-04-01 15:34:23 -04:00
Feanil Patel
368917596d chore: Update edx-auth-backends to a python 3.11 compatible version. 2024-04-01 15:28:30 -04:00
Feanil Patel
56918012fd chore: Update edx-search to a python 3.11 compatible version. 2024-04-01 15:08:53 -04:00
Feanil Patel
8dbfc4fe5c chore: Update recommender-xblock to a python 3.11 compatible version. 2024-04-01 13:48:51 -04:00
Feanil Patel
aa8497f260 chore: Update edx-django-utils to a python 3.11 compatible version. 2024-04-01 13:42:52 -04:00
Feanil Patel
59780e4924 chore: Update django-user-tasks to a python 3.11 compatible version. 2024-04-01 11:29:31 -04:00
Feanil Patel
87011e5edf chore: Upgrade openedx-django-pyfs to a python 3.11 compatible version. 2024-04-01 11:22:13 -04:00
Jansen Kantor
104969c659 fix: add gradebook to devstack csrf trust list (#34451) 2024-03-29 14:20:59 -04:00
Kristin Aoki
9f734a7a5e feat: update youtube transcript fetch to allow all languages (#34436)
* feat: allow all languages

* feat: add youtube transcript import functions as drf
2024-03-29 08:28:18 -04:00
github-actions[bot]
25409de9d1 feat: Upgrade Python dependency edx-enterprise to 4.13.13 (#34443)
Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`

Co-authored-by: kiram15 <kiram15@users.noreply.github.com>
2024-03-28 14:16:38 -06:00
Jorg Are
19d6c0c4d4 Merge pull request #34441 from openedx/hajorg/au-1945-course-reset-clear-grades
feat: add clear grades to course reset task
2024-03-28 17:42:36 +01:00
hajorg
7fc2f57059 feat: add clear grades to course reset task 2024-03-28 14:33:18 +01:00
Alexander J Sheehan
68c3e24564 Merge pull request #34435 from openedx/alex-sheehan-edx/upgrade-edx-enterprise-2764593
feat: Upgrade Python dependency edx-enterprise
2024-03-27 15:11:42 -04:00
alex-sheehan-edx
c3e6c8f864 feat: Upgrade Python dependency edx-enterprise
enterprise version bump 4.13.12

Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`
2024-03-27 18:20:42 +00:00
Jansen Kantor
2764593f5c feat: add completion data reset to course reset (#34395) 2024-03-27 13:39:48 -04:00
Omar Al-Ithawi
5a437779d9 fix: add fallback gettext function if translations aren't pulled in dev envs (#34416) 2024-03-27 13:20:12 -04:00
Ihor Romaniuk
f1311108ce fix: decoration of see all children link in wiki pages (#33670) 2024-03-27 10:25:15 -04:00
Kyle McCormick
4d969b73b5 build: avoid using glob in make clean_translations
Co-authored-by: Omar Al-Ithawi <i@omardo.com>
2024-03-27 08:30:40 -04:00
Kyle D. McCormick
3dc5d9b984 build: clean_translations without .git
We reimplement `make translations` so that it does not depend on the
presence of the `.git` directory. This fixes the Tutor build error:

     > [production 18/34] RUN make clean_translations:
    git clean -fdX conf/locale
    fatal: not a git repository (or any of the parent directories): .git
    make: *** [Makefile:57: clean_translations] Error 128

Why is the .git directory missing during the Tutor translations build?
Because if it were present, it would tie the translations' layer cache
up with git state, which would lead to the Docker layer being rebuilt
any time there was any change to git state.
2024-03-27 08:30:40 -04:00
Syed Sajjad Hussain Shah
4d4f8f457d Revert "chore: moved user_authn all urls in urls.py (#34396)" (#34431)
This reverts commit fc63719ceb.
2024-03-27 11:33:38 +05:00
Omar Al-Ithawi
6dab71e2cb chore: clean_translations refactored into separate makefile target (#34428)
This will allow external tools like Tutor to easily clean existing
translations without having to use the full pull_translations
makefile target.
2024-03-26 19:56:14 +00:00
Jorg Are
53da867e0b Merge pull request #34410 from openedx/hajorg/au-1912-delete-learner-course-grade
feat: api function to delete learner's course grades
2024-03-26 15:08:06 +01:00
Jansen Kantor
ce1064bf5f fix: clean up course reset post endpoint (#34419) 2024-03-26 10:00:39 -04:00
Justin Hynes
7f62080c95 refactor: update logs, remove direct use of CredentialsApiConfig model (#34393)
[APER-3229]

In a previous PR, I created a new utility function named `is_credentials_enabled()` that can be used to determine if use of the Credentials IDA is enabled by config in an Open edX instance.

This PR is some additional cleanup that replaces the direct import and use of the `CredentialsApiConfig` model with the new utility function.

I took some additional time to update some existing log messages to include more info while reducing our need to log PII. I've removed as much use of a learner's username as possible, replacing it with logging the learner's LMS User Id instead.
2024-03-26 08:29:11 -04:00
hajorg
1c3f403f38 fix: update and cleanup tests 2024-03-26 11:11:13 +01:00
Isaac Lee
40744eca36 fix: gate lti tools frorm onboarding function (#34413)
* fix: gate lti tools frorm onboarding function

- Block calls to does_backend_support_onboarding if the proctoring provider uses LTI

* fix: LTI onboarding false by default
2024-03-25 19:59:30 +00:00
Alison Langston
f944e67ce4 fix: register exams without due date or course end date (#34421) 2024-03-25 15:21:46 -04:00
Syed Sajjad Hussain Shah
fc63719ceb chore: moved user_authn all urls in urls.py (#34396) 2024-03-25 22:05:55 +05:00