Commit Graph

62996 Commits

Author SHA1 Message Date
Matjaz Gregoric
2d2a3100f1 fix: update shard names for GH tests
Github hosted tests weren't working because shards were not up to date.
2023-05-11 08:29:31 +02:00
Jenkins
f8737d3439 chore: geoip2: update maxmind geolite country database 2023-05-10 16:58:45 -04:00
Nathan Sprenkle
f0a9ef2161 feat: add video sharing config change signal (#32211)
* feat: add tracking to video sharing options change

* test: add tracking to video sharing options change
2023-05-10 10:28:35 -04:00
Feanil Patel
9036c0613f Merge pull request #32196 from openedx/feanil/minimal_update
feanil/minimal update
2023-05-09 13:14:33 -04:00
bszabo
dc4a54060c Bszabo/tnl 10683 birth year (#32200)
* fix: TNL-10683 birthyear protected 


No unit tests yet

* fix: TNL-10683 add unit tests

* fix: TNL-10683 fix lint errors

* fix: TNL-10683 add required docstrings

* fix: TNL-10683 hide year-of-birth feature name

---------

Co-authored-by: Bernard Szabo <bszabo@edx.org>
2023-05-09 12:36:22 -04:00
Alexander J Sheehan
93e3ed9418 Merge pull request #32208 from openedx/asheehan-edx/bumping-enterprise-version-3.62.6
chore: bumping enterprise package version to 3.62.6
2023-05-09 12:08:14 -04:00
Alexander J Sheehan
9a8947bbb5 chore: bumping enterprise package version to 3.62.6 2023-05-09 15:42:59 +00:00
Feanil Patel
3dec975527 build: Monitor changes to minimal.yml
We don't want a lot of things to end up in minimal.yml so get tagged on
reviews of it.
2023-05-09 10:38:00 -04:00
Feanil Patel
1538b4b9ab test: Be able to run migrations locally on bare metal.
With this change, we can run the migrations locally using minimal.yml
2023-05-09 10:38:00 -04:00
Feanil Patel
c3dc07ed7d fix: Be able to connect to SQL in containers.
By default if you use `localhost` as the `HOST` value for mysql, it
tries to connect to a file socket on disk rather than trying to connect
to the loopback hostname.  This prevents us from running MySQL in a
container while running the LMS on your local machine.

Setting the host to `127.0.0.1` forces the SQL connection to go over TCP
instead. This allows you to map your container port to your localhost
without any issues.
2023-05-09 10:38:00 -04:00
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