Commit Graph

62986 Commits

Author SHA1 Message Date
Feanil Patel
4e043de248 docs: Update the readme.
* Re-rule the file to match the current standards.
* Add a "Dependencies" section that outlines the interpreter and service
  dependencies for the edx-platform codebase.  It's not comprehensiv but
  I couldn't find anything anywhere that was so start with something
  here for now.
2023-05-09 10:38:00 -04:00
John Nagro
a4be3a17eb feat: release edx-enterprise==3.62.5 (#32207) 2023-05-09 14:23:04 +00:00
Syed Ali Abbas Zaidi
adf879e8b2 Revert "fix: all auto fixable eslint issues (#31900)" (#32203)
This reverts commit 228180b1ef.
2023-05-09 13:53:54 +05:00
Syed Ali Abbas Zaidi
228180b1ef fix: all auto fixable eslint issues (#31900)
* fix: eslint operator-linebreak issue

* fix: eslint quotes issue

* fix: react jsx indent and props issues

* fix: eslint trailing spaces issues

* fix: eslint line around directives issue

* fix: eslint prefer template issue

* fix: eslint semi rule

* fix: eslint newline per chain rule

* fix: eslint space infix ops rule

* fix: eslint space-in-parens issue

* fix: eslint space before function paren issue

* fix: eslint space before blocks issue

* fix: eslint arrow body style issue

* fix: eslint dot-location issue

* fix: eslint quotes issue

* fix: eslint quote props issue

* fix: eslint operator assignment issue

* fix: eslint new line after import issue

* fix: indent issues

* fix: operator assignment issue
2023-05-09 11:57:15 +05:00
Ahtisham Shahid
118ea3a024 feat: added enrollment api for notification config (#32162)
* feat: added enrollment API for notification config

* feat: added apps.py in notifications

* feat: added waffle flag for notification app

* feat: added proper docs for the API
2023-05-09 11:51:31 +05:00
Alexander J Sheehan
837bcdd8ed Merge pull request #32199 from openedx/asheehan-edx/bumping-enterprise-version-3.62.4
chore: bumping enterprise package version to 3.62.4
2023-05-08 13:46:35 -04:00
github-actions[bot]
60b9267ca9 feat: Upgrade Python dependency lti-consumer-xblock (#32198)
Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`

CHANGELOG: https://github.com/openedx/xblock-lti-consumer/blob/master/CHANGELOG.rst#940---2023-05-08

Co-authored-by: Zacharis278 <Zacharis278@users.noreply.github.com>
2023-05-08 17:42:20 +00:00
Alexander J Sheehan
15e81e19d3 chore: bumping enterprise package version to 3.62.4 2023-05-08 17:02:42 +00:00
Hamzah Ullah
1970c4ceaf chore: bumping enterprise package version to 3.62.3 (#32197) 2023-05-08 15:42:40 +00:00
Nawfal Ahmed
a5987e73d0 feat: subscription changes for program details page (#32060)
* feat: subscription ui changes on program detail page (#31846)
* test: update tests for subscription changes on program details (#32020)
* feat: subscription api changes on program details (#32059)
2023-05-08 20:19:25 +05:00
Piotr Surowiec
9d9bd63926 Merge pull request #32177 from open-craft/braden/fix-warnings
Fix some warnings from usage of deprecated properties
2023-05-08 16:04:28 +02:00
Leangseu Kim
aa8594ff03 chore: update styling for selection 2023-05-08 09:47:59 -04:00
edX requirements bot
f3f4b856eb chore: Updating Python Requirements (#32182) 2023-05-08 13:39:36 +05:00
Jenkins
202b86c291 chore(i18n): update translations 2023-05-07 17:04:02 -04:00
Kyle McCormick
05487e9279 Revert "Decouple XModule styles from LMS/Studio styles (attempt 2) (#32188)" (#32191)
This reverts commit c34f8efc0e.
2023-05-05 15:06:32 -04:00
Alexander J Sheehan
518bbe8d63 Merge pull request #32190 from openedx/asheehan-edx/bumping-enterprise-version-3.62.2
chore: bumping enterprise package version to 3.62.2
2023-05-05 13:26:11 -04:00
Alexander J Sheehan
dcfb975bd3 chore: bumping enterprise package version to 3.62.2 2023-05-05 16:26:10 +00:00
Braden MacDonald
4b72194b98 feat: Show a preview of what's in the user's clipboard (#32132)
This also fixes Studio container view 404.
2023-05-05 17:35:03 +02:00
Andrey Cañon
c34f8efc0e Decouple XModule styles from LMS/Studio styles (attempt 2) (#32188)
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
* build: fix: add system dirs to theme lookup paths. 

This is an amendment to #32018

Addressing the issue #31624
2023-05-05 10:02:18 -04:00
0x29a
065f894d1b fix: missing advance_settings_access template variable
Co-authored-by: Farhaan Bukhsh <farhaan.bukhsh@gmail.com>
2023-05-05 11:42:53 +05:30
Nathan Sprenkle
6307961ff6 fix: video share link fixes (#32187)
* fix: remove outdated click handler in social share

* fix: reestablish blank target of social share link

* test: update js tests
2023-05-04 16:29:47 -04:00
Kristin Aoki
af96cb1b21 feat: make video feature api to be course agnostic (#32173) 2023-05-04 13:33:07 -04:00
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
Braden MacDonald
11a46bde54 chore: properly mark usage of deprecated accessors in test_block_render
lms/djangoapps/courseware/tests/test_block_render.py:

DeprecationWarning: runtime.seed is deprecated. Please use the user service `user_id` instead.
DeprecationWarning: runtime.user_id is deprecated. Use block.scope_ids.user_id or the user service instead.
DeprecationWarning: runtime.user_is_staff is deprecated. Please use the user service instead.
DeprecationWarning: runtime.get_user_role is deprecated. Please use the user service instead.
...
2023-05-03 12:42:43 -07:00
Braden MacDonald
ab21376b7d fix: use correct stacklevel for deprecation warnings, warn only on read
Writing to the deprecated props is just to enable backwards compatibility (for now), so shouldn't be a warning.
Reading from them is the problematic thing that we need to warn about and fix.

Also, the stacklevel was wrong, resulting in unhelpful warnings like this:

  /openedx/edx-platform/xmodule/x_module.py:1486: DeprecationWarning: `runtime.course_id` is deprecated. Use `context_key` instead: `runtime.scope_ids.usage_id.context_key`.
    block = self.load_item(usage_id, for_parent=for_parent)

/openedx/venv/lib/python3.8/site-packages/django/test/utils.py:387: DeprecationWarning: runtime.anonymous_student_id is deprecated. Please use the user service instead.
    return func(*args, **kwargs)

  /opt/pyenv/versions/3.8.12/lib/python3.8/unittest/case.py:633: DeprecationWarning: runtime.anonymous_student_id is deprecated. Please use the user service instead.
    method()

  /opt/pyenv/versions/3.8.12/lib/python3.8/unittest/case.py:633: DeprecationWarning: runtime.cache is deprecated. Please use the cache service instead.
    method()

  /openedx/venv/lib/python3.8/site-packages/django/test/utils.py:387: DeprecationWarning: runtime.can_execute_unsafe_code is deprecated. Please use the sandbox service instead.
    return func(*args, **kwargs)
2023-05-03 12:35:19 -07:00
Braden MacDonald
0ff65c2b9f chore: fix usage of runtime.course_id
/openedx/edx-platform/xmodule/modulestore/mongo/base.py:275: DeprecationWarning: `runtime.course_id` is deprecated. Use `context_key` instead: `block.scope_ids.usage_id.context_key`.
    metadata_inheritance_tree = self.modulestore._compute_metadata_inheritance_tree(self.course_id)
2023-05-03 12:35:19 -07:00
Braden MacDonald
7a5265aace chore: fix warnings with old locator properties
asset_index.html.py:175: DeprecationWarning: Name is no longer supported as a property of Locators. Please use the block_id property.
    __M_writer(js_escaped_string(context_course.location.name ))
  asset_index.html.py:183: DeprecationWarning: Revision is no longer supported as a property of Locators. Please use the branch property.
    __M_writer(js_escaped_string(context_course.location.revision ))

container.html.py:387: DeprecationWarning: Name is no longer supported as a property of Locators. Please use the block_id property.
    __M_writer(js_escaped_string(context_course.location.name ))
  container.html.py:395: DeprecationWarning: Revision is no longer supported as a property of Locators. Please use the branch property.
    __M_writer(js_escaped_string(context_course.location.revision ))
  course_outline.html.py:417: DeprecationWarning: Name is no longer supported as a property of Locators. Please use the block_id property.
    __M_writer(js_escaped_string(context_course.location.name ))
  course_outline.html.py:425: DeprecationWarning: Revision is no longer supported as a property of Locators. Please use the branch property.
    __M_writer(js_escaped_string(context_course.location.revision ))
2023-05-03 12:35:18 -07: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