Commit Graph

64137 Commits

Author SHA1 Message Date
Rebecca Graber
ddabba458b feat: remove manual sends of events (#33642) 2023-11-03 10:36:50 -04:00
Feanil Patel
9ba9935fb6 Merge pull request #32802 from openedx/feanil/default_drf_auth_class
feat: Add JwtAuthentication as a default DRF auth class.
2023-11-02 10:05:50 -04:00
Feanil Patel
f16414efca Merge pull request #33641 from openedx/revert-33630-revert-33350-salman/remove-bok-choy
Revert "Revert "chore: remove bok-choy settings""
2023-11-02 08:52:02 -04:00
Jenkins
4860ef8a7f chore: geoip2: update maxmind geolite country database 2023-11-01 17:00:04 -04:00
Brian Beggs
be4aa3f6b6 Merge pull request #33638 from openedx/bbeggs/version_enterrpise
Update edx-enterprise to 4.6.10
2023-11-01 15:43:17 -04:00
Brian Beggs
d604ce6887 Merge branch 'master' into bbeggs/version_enterrpise 2023-11-01 15:08:44 -04:00
Brian Beggs
212b8fc1f7 chore: Update edx-enterprise to 4.6.10 2023-11-01 15:07:53 -04:00
Feanil Patel
825503a750 fix: Remove call to print_devstack_warnings
This is the only call to the removed function and the removed function
printed a dead link about an issue that may no longer be relevant so
we're just removing this call rather than putting the message back.
2023-11-01 13:45:44 -04:00
Feanil Patel
66e987997c Revert "Revert "chore: remove bok-choy settings"" 2023-11-01 13:41:37 -04: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
Muhammad Adeel Tajamul
44b62cafe7 fix: notification audience was not filtering users with no preference (#33625) 2023-11-01 09:32:35 +05: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
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
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
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
Ahtisham Shahid
5009d052e5 chore: added debug logs to notifications filters (#33568) 2023-10-24 14:42:38 +05:00
Muhammad Adeel Tajamul
07ae24aaab feat: added sender_id to notification generated events (#33544) 2023-10-24 11:09:00 +05:00
salman2013
e2560e163f chore: fix tests 2023-10-24 09:17:33 +05:00