Commit Graph

62960 Commits

Author SHA1 Message Date
Alexander J Sheehan
9e2bb3e2d1 Merge pull request #32186 from openedx/asheehan-edx/bumping-enterprise-version-3.62.1
chore: bumping enterprise package version to 3.62.1
2023-05-04 13:20:46 -04:00
Alexander J Sheehan
aa58c57854 chore: bumping enterprise package version to 3.62.1 2023-05-04 16:20:21 +00:00
Agrendalath
b91f858e70 feat: add Waffle Flag to disable resetting self-paced deadlines by learners 2023-05-04 17:20:44 +02:00
Agrendalath
e02555816f fix: remove relative due date limit
It was an artificial limit enforced by the frontend. The backend does not have
limitations that would prevent it from using a higher value.
2023-05-04 17:20:31 +02:00
Agrendalath
2af5ddbf8a fix: support files with a unicode signature in the Instructor Dashboard API
Without this, files with BOM (byte order mark; generated e.g., by Microsoft
Excel) cannot be read properly.
2023-05-04 17:20:18 +02:00
connorhaugh
b9be2b1e56 Revert "build: Decouple XModule styles from LMS/Studio styles (#32018)" (#32183)
This reverts commit 471ba9121b.
2023-05-04 09:59:15 -04:00
jansenk
4de07c25d0 refactor: video sharing js
test: add testing for VideoSocialSharingHandler

test: fix context tests

refactor: move most link logic to django

chore: update python test

chore: update linting
2023-05-04 09:33:16 -04:00
Andrey Cañon
471ba9121b build: Decouple XModule styles from LMS/Studio styles (#32018)
This basically changes how the xmodule static files are
generated and consumed in order to separate the Xblock
styles from general style files. Includes:

* build: decople XModule style assets by using a custom webpack loader
* build: move scss imports to its specific file

Addressing the issue https://github.com/openedx/edx-platform/issues/31624
2023-05-04 08:21:09 -04:00
github-actions[bot]
b77504804a feat: Upgrade Python dependency python3-saml (#32175)
Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`

Co-authored-by: dianakhuang <dianakhuang@users.noreply.github.com>
2023-05-03 13:42:30 -04:00
Nathan Sprenkle
745cda1580 feat: course overrides of video sharing settings (#32169)
* refactor: public sharing enabled toggle

Cherry-picked from https://github.com/openedx/edx-platform/pull/32150

* feat: course video share setting on video block

Adds awareness of course.video_sharing_options setting to video XBlock.
This can override whether or not sharing is enabled for a video or fall
back to per-video settings

* test: course video share setting on video block

Adds awareness of course.video_sharing_options setting to video XBlock.
This can override whether or not sharing is enabled for a video or fall
back to per-video settings

* test: course video share setting on preview page

Extends checking for course override of video share settings to public
video preview page.
2023-05-03 13:23:34 -04:00
SaadYousaf
402022819e feat: add user notification preference model 2023-05-03 22:16:44 +05:00
Diana Huang
2d08a2a731 fix: Unpin SAML library. (#32167)
We were using an old version of the python3-saml library,
which was causing issues with newer versions of social-core.

The reason it was pinned was because our etree implementation
didn't support several fields that the saml library did, so
we are now importing those entities as well.
2023-05-03 11:08:30 -04:00
github-actions[bot]
baaf4b12ce feat: Upgrade Python dependency lti-consumer-xblock. (#32172)
Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`

Co-authored-by: alangsto <alangsto@users.noreply.github.com>
2023-05-03 11:03:47 -04:00
Syed Ali Abbas Zaidi
f1fb38ed83 fix: multi lines and spaces issues (#31885)
* fix: multi lines and spaces issues

* fix: eslint operator-linebreak issue

* fix: eslint quotes issue

* fix: remaining quotes issues

* fix: eslint object curly newline issue

* fix: eslint object curly spacing issue

* fix: eslint brace-style issues

* fix: react jsx indent and props issues

* fix: eslint trailing spaces issues

* fix: eslint linbreak style issue

* fix: eslint space unary operator issue

* fix: eslint line around directives issue

* fix: void and typeof space unary ops issue
2023-05-03 12:22:46 +05:00
Leangseu Kim
0dc881e25a feat: course level public sharing video options
feat: add video sharing option field course field

chore: add social sharing document url

chore: add course check because library also using this
2023-05-02 14:57:25 -04:00
Jeremy Ristau
bdd2a0d212 Merge pull request #32165 from open-craft/agrendalath/bd-13-fix_anonymous_student_ids
fix: anonymous student IDs [BD-13]
2023-05-02 12:32:47 -04:00
Agrendalath
aa85257b19 fix: use student-specific anonymous IDs in CAPA and HTML XBlocks
After changes from #31472, the user service of a "leaf" XBlock gets overridden
with the one created for its parent (SequenceBlock). Therefore, the
`requires_per_student_anonymous_id` is ignored in these XBlocks. The
subsequent renders of an XBlock (e.g., when requesting the solution) use
the student-specific IDs.

This removes choosing the proper ID (course-specific or student-specific) from
the runtime initialization. Instead, both IDs are passed to the user service.

There are only two XBlocks that relied on the
`requires_per_student_anonymous_id` - `ProblemBlock` and `HtmlBlock`. They
now request the "deprecated" (student-specific) user ID directly from the user
service.
2023-05-02 17:58:22 +02:00
Michael Roytman
3be9297abf Merge pull request #32156 from openedx/MichaelRoytman/upgrade-lti-consumer-xblock-75b6b18
feat: Upgrade Python dependency lti-consumer-xblock
2023-05-02 09:03:56 -04:00
Mubbshar Anwar
73e32b5156 Revert "Revert "refactor: recommendations code refactoring (#31990)" (#32047)" (#32135)
This reverts commit 3b991e6620.
2023-05-02 11:08:43 +05:00
Hamzah Ullah
211c3c30bd chore: bumping enterprise package version to 3.61.16 (#32158) 2023-05-01 18:53:50 +00:00
MichaelRoytman
1e97964568 feat: Upgrade Python dependency lti-consumer-xblock
This commit upgrades the version of the lti-consumer-xblock library from version 9.0.4 to version 9.1.0. Version 9.1.0 adds support for sending a learner's full name in an LTI launch. The full name is sent as an LTI parameter in LTI 1.1 launches as the "lis_person_name_full" parameter. The full name is sent as an LTI parameter to LTI 1.3 launches as the "name" ID token claim.

Please see the CHANGELOG entry for these versions for a full description of the changes: https://github.com/openedx/xblock-lti-consumer/blob/master/CHANGELOG.rst#910---2023-04-28

This commit also downgrades the edx-proctoring-proctortrack dependency from version 1.2.1 to 1.0.5. This is due to a pin in the version of this requirement to 1.0.5 that was not removed when the requirement version was manually updated to version 1.2.1 in #32154. The newer version of the library does not contain any Python changes, so we are rolling back this version until further notice.
2023-05-01 11:52:49 -04:00
Zachary Hancock
75b6b1832b feat: update proctortrack (#32154) 2023-05-01 10:50:12 -04:00
Feanil Patel
25c5ee576b Merge pull request #32007 from open-craft/kshitij/switch-to-sphinx-book-theme
chore: Switch from edx-sphinx-theme to sphinx-book-theme
2023-05-01 09:40:15 -04:00
Jenkins
d194c761b3 chore(i18n): update translations 2023-04-30 17:04:11 -04:00
Adam Stankiewicz
1e8acf49fd fix: include isLearnerPortalEnabled as part of EnterpriseDashboardSerializer (#32142)
* fix: include isLearnerPortalEnabled as part of EnterpriseDashboardSerializer

* chore: test serializer changes

---------

Co-authored-by: Hamzah Ullah <hamzahullah@yahoo.com>
2023-04-28 11:29:37 -04:00
Jody Bailey
e3cb59ca2e fix: adjusted cross product recommendations course filtering and response (#32119)
* fix: adjusted cross product recommendations course filtering and response

* chore: added method descriptions

* test: adjusted mock course data

* chore: removed logs

* chore: removed extra empty line

* fix: removed redundant active course run logic, added active course run filtering
2023-04-28 09:35:03 +02:00
Kshitij Sobti
cb46eeafbe fix: Switch from echo to prinf for more consistent behaviour
In different environments echo seems to handle escape characters differently.
When generating the common constraints file, on some systems it outputs the
"\n" character as-is. This change switches echo to printf, which is supposed to
be more consistent.
2023-04-28 09:16:09 +05:30
Kshitij Sobti
1c3c702583 chore: Switch from edx-sphinx-theme to sphinx-book-theme
The edx-sphinx theme is being deprecated, and replaced with sphinx-book-theme.
This removes references to the deprecated theme and replaces them with the new
standard theme for the platform.

See https://github.com/openedx/edx-sphinx-theme/issues/184
2023-04-28 09:16:09 +05:30
Hamzah Ullah
f1542c0762 chore: bumping enterprise package version to 3.61.15 (#32149) 2023-04-27 15:33:34 -04:00
Braden MacDonald
8ee1f66ffb feat: Paste Components (OLX) into any Unit in Studio (#31969)
* feat: Implement paste button

* chore: improve docs and add tests for python API

* fix: drive-by fix to use a better API for comparing XML

* feat: track which XBlock something was copied from

* feat: add tests

* feat: enable import linter so content_staging's public API is respected

* fix: error seen when trying to paste drag-and-drop-v2 blocks

* fix: use strip_text=True consistently for XML comparisons

* refactor: rename get_user_clipboard_status to get_user_clipboard

* feat: Better error reporting when pasting in Studio

* chore: convert new test suite to pytest assertions

* refactor: push READY status check into the API per review suggestion

* fix: use strip_text=True consistently for XML comparisons

* fix: store "copied_from_block" as a string to avoid Reference field issues

* fix: minor lint error

* refactor: move data types to data.py per OEP-49
2023-04-27 09:58:04 -07:00
Feanil Patel
08c26aa8ab Merge pull request #31883 from openedx/feanil/remove_old_contributing_md
docs: Remove repo specific CONTRIBUTING.md
2023-04-27 11:03:18 -04:00
Feanil Patel
29ea440aa0 docs: Remove repo specific CONTRIBUTING.md
We now have a org wide CONTRIBUTING.md that points to our correct
general contributing guidelines.  We don't need repo specific ones that
forward to other contributing docs.
2023-04-27 10:38:42 -04:00
Andrey Cañon
f8e2363e10 feat: move general imports to specific scss files (#32121)
This moves XModule scss imports to the specific files where they are required instead of
having a common XModule scss import list.

This is part of  https://github.com/openedx/edx-platform/issues/31624
2023-04-27 10:38:04 -04:00
Syed Sajjad Hussain Shah
6af95b46e7 fix: pipeline_user_details serializer error on mfe context response (#32146)
* fix: pipeline_user_details serializer error on mfe context response

* fix: failed tests for mfe context API

---------

Co-authored-by: Syed Sajjad  Hussain Shah <syed.sajjad@H7FKF7K6XD.local>
Co-authored-by: Shahbaz Shabbir <shbzshbr@gmail.com>
2023-04-27 18:56:58 +05:00
Tim McCormack
b1f8b9339a build: Add upgrade-package Make target and workflow (#32131)
This adds a Make target that should simplify the common task of
upgrading a single dependency. Sometimes people manually edit the pin
files, which we would like to avoid; hopefully this will make it
easier for them to do the right thing.

The GitHub workflow should also make it easier for people on Mac to
recompile requirements in a Linux environment, reducing the number of
times spurious dependency changes show up in the pin files (due to
OS-dependent requirements.)

Also, separate upgrade/downgrade instructions and simplify the latter.
(Min constraints are rare and we usually move beyond them quickly.)
2023-04-27 13:44:47 +00:00
Muhammad Adeel Tajamul
f30277ffc5 fix: label is showing staff for learner when global staff (#32144) 2023-04-27 16:11:01 +05:00
Jenkins
a33985e223 chore: geoip2: update maxmind geolite country database 2023-04-26 17:07:53 -04:00
Jeremy Ristau
4afb210935 Merge pull request #31492 from open-craft/pooja/unify-xblock-naming-descriptor
[BD-13][BB-6927] Unify xblock naming descriptor
2023-04-26 12:10:07 -04:00
Agrendalath
e1fb866ca9 chore: update edx-completion 2023-04-26 17:10:54 +02:00
Pooja Kulkarni
1950949c9e refactor: rename descriptor -> block within remaining xmodule
Co-authored-by: Agrendalath <piotr@surowiec.it>
2023-04-26 17:10:54 +02:00
Pooja Kulkarni
ce94d896cf refactor: rename descriptor -> block within xmodule/tests
Co-authored-by: Agrendalath <piotr@surowiec.it>
2023-04-26 17:10:54 +02:00
Pooja Kulkarni
537cfe4e0f refactor: rename descriptor -> block within xmodule/modulestore
Co-authored-by: Agrendalath <piotr@surowiec.it>
2023-04-26 17:10:54 +02:00
Pooja Kulkarni
fb5f8474b0 refactor: rename descriptor -> block within remaining openedx
Co-authored-by: Agrendalath <piotr@surowiec.it>
2023-04-26 17:10:54 +02:00
Pooja Kulkarni
9245bc0f76 refactor: rename descriptor -> block within openedx/core/djangoapps
Co-authored-by: Agrendalath <piotr@surowiec.it>
2023-04-26 17:10:54 +02:00
Pooja Kulkarni
702e14a28a refactor: rename descriptor -> block within remaining lms
Co-authored-by: Agrendalath <piotr@surowiec.it>
2023-04-26 17:10:54 +02:00
Pooja Kulkarni
c452fb3204 refactor: rename descriptor -> block within lms/djangoapps/mobile_api
Co-authored-by: Agrendalath <piotr@surowiec.it>
2023-04-26 17:10:54 +02:00
Pooja Kulkarni
4276e7daf3 refactor: rename descriptor -> block within lms/djangoapps/lti_provider
Co-authored-by: Agrendalath <piotr@surowiec.it>
2023-04-26 17:10:54 +02:00
Pooja Kulkarni
5cc6acae18 refactor: rename descriptor -> block within lms/djangoapps/instructor_task
Co-authored-by: Agrendalath <piotr@surowiec.it>
2023-04-26 17:10:54 +02:00
Pooja Kulkarni
5447a211de refactor: rename descriptor -> block within lms/djangoapps/edxnotes
Co-authored-by: Agrendalath <piotr@surowiec.it>
2023-04-26 17:10:53 +02:00
Pooja Kulkarni
a0d23b20f5 refactor: rename descriptor -> block within lms/djangoapps/course_api
Co-authored-by: Agrendalath <piotr@surowiec.it>
2023-04-26 17:10:53 +02:00