Commit Graph

62948 Commits

Author SHA1 Message Date
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
Pooja Kulkarni
c80fba689a refactor: rename descriptor -> block within lms/djangoapps/courseware
Co-authored-by: Agrendalath <piotr@surowiec.it>
2023-04-26 17:10:53 +02:00
Pooja Kulkarni
79f67b9ce3 refactor: rename descriptor -> block within lms/djangoapps/certificates
Co-authored-by: Agrendalath <piotr@surowiec.it>
2023-04-26 17:10:53 +02:00
Pooja Kulkarni
953e1f945e refactor: rename descriptor -> block within common
Co-authored-by: Agrendalath <piotr@surowiec.it>
2023-04-26 17:10:53 +02:00
Pooja Kulkarni
ce13cd540a refactor: rename descriptor -> block within cms
Co-authored-by: Agrendalath <piotr@surowiec.it>
2023-04-26 17:10:53 +02:00
edX requirements bot
a2f1ad1f11 build: added dependabot config (#32039) 2023-04-26 19:17:52 +05:00
Muhammad Adeel Tajamul
f08b4d9090 fix: info banner not visible when course is created (#32133)
Co-authored-by: adeel.tajamul <adeel.tajamul@arbisoft.com>
2023-04-26 18:34:16 +05:00
Zachary Hancock
18fab26d07 chore: update lti-consumer (#32129) 2023-04-25 15:59:31 -04:00
edX requirements bot
f09f3543c4 chore: Updating Python Requirements (#32123) 2023-04-25 19:02:24 +05:00
Ahtisham Shahid
fae6ece427 fix: added check for empty list in discussions settings task (#32105)
* fix: added check for empty list in discussions settings task
2023-04-25 12:44:26 +05:00
Kristin Aoki
766fdc5197 fix: missing blockquote margin xblock preview (#32120) 2023-04-24 16:59:12 -04:00
Braden MacDonald
dd927c7fee chore: consolidate two different implementations for serializing XBlocks 2023-04-24 12:16:42 -07:00
Nathan Sprenkle
df6a60b0e0 feat: video share icons (#32111)
* feat: replace video share links with icons

* feat: add download / share icons to video block

* feat: consistent styling for transcript links

* feat: change order of download/share for videos
2023-04-24 10:04:03 -04:00