Kyrylo Kireiev
763b102ac9
fix: [AXIM-50] Fix count items in pagination
2023-11-01 17:07:52 +02:00
Feanil Patel
ac2cc158f8
test: Update tests to the new return code.
...
When including `JwtAuthentication`, the auth_header becomes `JWT
realm="api"`. Without it, it is `None`. This changes the behavior of the
code in DRF and returns a slightly different auth response.
Relevant Code: 56946fac8f/rest_framework/views.py (L456C3-L456C3)
2023-11-01 11:03:03 -04:00
Feanil Patel
7af2b1db24
feat!: Add JwtAuthentication as a default DRF auth class.
...
By default DRF sets 'DEFAULT_AUTHENTICATION_CLASSES' to:
```
[
'rest_framework.authentication.SessionAuthentication',
'rest_framework.authentication.BasicAuthentication'
]
```
We also want to allow for JWT Authentication as a valid default auth
choice. This will allow users to send JWT tokens in the authorization
header to any existing API endpoints and access them. If any APIs have
set custom authentication classes, this will not override that.
I believe this is a fairly safe change to make since it only adds one
authentication class and does not impact authorization of any of the
endpoints that might be affected.
Note: This change changes the default for both the LMS and CMS because
`cms/envs/common.py` imports this value from the LMS.
BREAKING CHANGE: For any affected endpoint that also required the user
to be authenticated, the endpoint will now return a 401 in place of a
403 when the user is not authenticated.
- See [these DRF docs](https://github.com/encode/django-rest-framework/blob/master/docs/api-guide/authentication.md#unauthorized-and-forbidden-responses ) for a deeper explanation about why this changes.
- Here is [an example endpoint](b8ecfed67d/openedx/core/djangoapps/embargo/views.py (L20-L21) ) that does not override defaults and checks for IsAuthenticated.
Generally speaking, this is should not be a problem. An issue would
appear only if the caller of the endpoint is specifically handling 403s
in a way that would be missed for 401s.
2023-11-01 11:03:03 -04:00
alangsto
b9ee4a9ad2
test: remove echoes in dockerfile ( #33639 )
2023-11-01 10:11:02 -04:00
github-actions[bot]
fa14382c2d
feat: Upgrade Python dependency openedx-events ( #33637 )
...
fix: event bus producer config merging
Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`
Co-authored-by: rgraber <rgraber@users.noreply.github.com >
2023-11-01 10:10:13 -04:00
Muhammad Ammar
0301bdad58
Merge pull request #33635 from openedx/ammar/add-vsf-enterprise-uuid-setting
...
feat: add enterprise customer related setting
2023-11-01 16:25:16 +05:00
muhammad-ammar
55442ec2a9
feat: add enterprise customer related setting
2023-11-01 15:53:28 +05:00
Mashal Malik
4f1503fbed
Merge branch 'master' into dvz/clean-warnings
2023-11-01 12:17:11 +05:00
Muhammad Adeel Tajamul
44b62cafe7
fix: notification audience was not filtering users with no preference ( #33625 )
2023-11-01 09:32:35 +05:00
Daniel Valenzuela
398c84e1bc
chore: ignore 'etree' is deprecated
...
Related issue: https://github.com/openedx/edx-platform/issues/32888
2023-11-01 00:18:40 -03:00
Daniel Valenzuela
9752da2b03
chore: ignore warning from pkg_resources.declare_namespace
...
Related issue: https://github.com/openedx/edx-platform/issues/33592
2023-11-01 00:18:40 -03:00
Daniel Valenzuela
115c65aa18
fix: flags not at the start of the expression
...
related issue: https://github.com/openedx/edx-platform/issues/33585
2023-11-01 00:18:40 -03:00
Daniel Valenzuela
72be4812bf
chore: replace newrelic add_custom_parameter deprecated method
...
related issue: https://github.com/openedx/edx-platform/issues/33584
note: it has been replaced with add_custom_attribute. it is just a rename
https://docs.newrelic.com/docs/release-notes/agent-release-notes/python-release-notes/python-agent-80300/
2023-11-01 00:18:40 -03:00
Daniel Valenzuela
ef0a9c00af
chore: ignore import ABCs from 'collections' warning
...
related issue: https://github.com/openedx/edx-platform/issues/33584
note: this warning is from a third party library (libsass)
2023-11-01 00:18:40 -03:00
Daniel Valenzuela
d2f427a672
chore: ignore HTTPResponse.getheaders() deprecation warning
...
related issue: https://github.com/openedx/edx-platform/issues/33584
note: this warning is rased from a third party library (elasticsearch)
2023-11-01 00:18:40 -03:00
Daniel Valenzuela
66c5be8c02
chore: ignore default_app_config warning
...
related issue: https://github.com/openedx/edx-platform/issues/33572
2023-11-01 00:18:40 -03:00
Robert Raposa
2f49af300c
Merge pull request #33630 from openedx/revert-33350-salman/remove-bok-choy
...
Revert "chore: remove bok-choy settings"
2023-10-31 16:22:09 -04:00
Robert Raposa
083ccbf09b
Revert "chore: remove bok-choy settings"
2023-10-31 15:27:44 -04:00
alangsto
eec67f4799
test: modify dockerfile to test environment variables ( #33629 )
2023-10-31 14:20:02 -04:00
Feanil Patel
063204161c
docs: Update the security e-mail address.
...
This repository is now managed by the Axim Collaborative and security issues
with it should be reported to security@openedx.org instead of security@edx.org
This work is being done as a part of https://github.com/openedx/wg-security/issues/16
2023-10-31 12:37:55 -04:00
Feanil Patel
3003abb092
Merge pull request #33350 from salman2013/salman/remove-bok-choy
...
chore: remove bok-choy settings
2023-10-31 11:19:56 -04:00
salman2013
a97845294f
chore: update lms,cms port variable names
2023-10-31 15:11:42 +05:00
lunyachek
9649e55502
fix: Absent message after submiting "Generate Exception Certificates" button at Instructor tab
2023-10-30 18:58:32 +02:00
Cristhian Garcia
9e65024744
feat: emit signal for thread, response, and comment created events ( #33395 )
2023-10-30 11:46:39 -04:00
Jenkins
99b6f6b6e9
chore: geoip2: update maxmind geolite country database
2023-10-30 10:26:42 -04:00
Taras Lytvynenko
25800858fc
Merge branch 'master' of github.com:openedx/edx-platform into lytvynenko/additional_name_check
2023-10-30 15:07:24 +02:00
salman2013
de935e146f
chore: update variable for frontend test server hostname
2023-10-30 09:46:16 +05:00
Moeez Zahid
ba1f382471
feat: Add scope user_id to JWT payload ( #33455 )
2023-10-30 07:56:58 +05:00
Braden MacDonald
e6e124bf16
chore: tagging - version bump to latest openedx-learning ( #33553 )
2023-10-27 10:06:47 -07:00
Kristin Aoki
8cfd04ff68
feat: add drf for studio video page ( #33528 )
2023-10-27 09:04:37 -04:00
Ahtisham Shahid
3c50f3e029
fix: update CourseOverviewTab while changing discussions settings ( #33605 )
2023-10-27 15:14:31 +05:00
salman2013
f71e650b2f
chore: update bok-choy hostname and revert the old logic to chose browser for karma
2023-10-27 09:09:55 +05:00
Max Sokolski
e5b7e3e38a
build: nudge devs about Quince release in github
...
Remind devs about backporting their bug fixes to
the Quince master branch and think about
backporting to Palm as well
2023-10-26 15:35:13 -04:00
Andrew Shultz
35eb8c6528
Merge pull request #33551 from openedx/ashultz0/course_enrollment_clean
...
small cleanups in course enrollment while researching
2023-10-26 13:14:36 -04:00
Andy Shultz
ad90c05b98
fix: remove unused and untested function
2023-10-26 11:00:37 -04:00
Andy Shultz
2fde582a4d
docs: remove TODO which asks a question where the answer is no
...
TODO posits cache key is not in use, it is used in this file via signal.
2023-10-26 11:00:27 -04:00
Andy Shultz
fadc9618d4
docs: fix old course_id arg description to modern(2015) usage
...
the code asserts that this is a key rather than a string
2023-10-26 10:59:30 -04:00
Sid Verma
3bda3bed4a
feat: Add display_name filtering in GET assets/:course
...
This allows clients to check if a file already exist before
overwriting the asset with new data. See openedx/studio-frontend#384
2023-10-26 09:32:36 -04:00
salman2013
942e713ff0
chore: resolve conflicts
2023-10-26 14:20:26 +05:00
Muhammad Adeel Tajamul
808390ace8
fix: sender list was empty in notification generated event ( #33590 )
2023-10-26 06:49:20 +05:00
Jenkins
e024d2b62d
chore: geoip2: update maxmind geolite country database
2023-10-25 16:59:21 -04:00
thezaeemaanwar
216f8df0d2
feat: Migrations for badges deletion
2023-10-26 01:03:26 +05:00
Alexander J Sheehan
d14d9eac8e
Merge pull request #33595 from openedx/alex-sheehan-edx/upgrade-edx-enterprise-086834a
...
feat: Upgrade Python dependency edx-enterprise
2023-10-25 15:12:25 -04:00
alex-sheehan-edx
e2095bd818
feat: Upgrade Python dependency edx-enterprise
...
enterprise version bump 4.6.9
Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`
2023-10-25 18:51:28 +00:00
Omar Al-Ithawi
086834aa8b
docs: design for atlas pull for the edx-platform and its plugins ( #33166 )
2023-10-25 13:36:45 -04:00
Muhammad Umar Khan
5b469371d5
chore: update connect_timeout for memcache server ( #33594 )
2023-10-25 17:11:12 +00:00
Tim McCormack
d18bf2ce8f
chore: Update actions/upload-artifact from v2 to v3 ( #33580 )
...
v2 is giving warnings:
```
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/upload-artifact@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
```
2023-10-24 21:18:34 +00:00
connorhaugh
b0a004de33
docs: add pytest django setting specification to docs ( #33564 )
2023-10-24 11:35:15 -04:00
Ehmad Saeed⚡
c41db87c80
Merge pull request #33570 from openedx/justEhmadSaeed/upgrade-edx-enterprise-5009d05
...
feat: Upgrade Python dependency edx-enterprise
2023-10-24 19:15:58 +05:00
justEhmadSaeed
ca2f24a0e7
feat: Upgrade Python dependency edx-enterprise
...
Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`
2023-10-24 17:34:53 +05:00