Commit Graph

6303 Commits

Author SHA1 Message Date
SaadYousaf
afbd680a33 fix: move notification generation event within task 2023-09-05 13:48:17 +05:00
Feanil Patel
8691aa78e1 fix: Don't set default_app_config.
From the warning: Django now detects this configuration automatically.
You can remove default_app_config.

This also removes two warnings from shell startup.
2023-09-01 14:41:34 -04:00
Paulo Viadanna
26d8c2166d feat: implements SHOW_REGISTRATION_LINKS feature toggle
(cherry picked from commit 3025ab5fe6f6f53d6af5b36681355efafa37c74b)
2023-09-01 15:06:40 +02:00
SaadYousaf
376135ca73 fix: fix notification generated event, and add notification tray opened event 2023-09-01 14:32:51 +05:00
Muhammad Adeel Tajamul
96f7e9cd9a fix: handle new_comment notification edge case (#33088) 2023-08-31 16:33:20 +05:00
Muhammad Adeel Tajamul
c1b28c35f8 feat: make notification type info translateable (#33071) 2023-08-31 15:20:06 +05:00
Muhammad Adeel Tajamul
4efd54a3fd feat: added new_question_post and new_discussion_post notification (#33043) 2023-08-31 14:29:21 +05:00
Braden MacDonald
a013c08ae6 fix: incorrect type hints in a few places (#33104) 2023-08-28 10:34:08 -07:00
Kira Miller
776f4bf94e feat: adding unenrollments to event bus (#33085)
* feat: adding unenrollments to event bus

* fix: quality fixes

* fix: tweaks to pass tests

* fix: more tweaks for testing

---------

Co-authored-by: John Nagro <jnagro@edx.org>
2023-08-28 09:08:49 -06:00
Dmytro
fc90c852b2 fix: TypeError during student.send_activation_email task (#32623)
Co-authored-by: Edward Zarecor <ezarecor@tcril.org>
2023-08-28 11:21:07 +05:00
irtazaakram
9562bdf5eb fix: requires_system_checks deprecation warning 2023-08-24 10:29:35 +05:00
Zainab Amir
45fd0b57cf feat: add user details to registration response (#33078) 2023-08-23 11:45:43 +05:00
Feanil Patel
5960840f51 Merge pull request #32496 from ManpraXSoftware/edx-depr31
feat: BLOCK_STRUCTURES_SETTINGS['PRUNING_ACTIVE'] toggle removed depr31
2023-08-22 12:58:02 -04:00
Eugene Dyudyunov
4340a832f7 Add the default enrollment start date on course creation (#30954)
* fix: main page course listing

The course is visible on the main page right after creation when the feature toggle `CREATE_COURSE_WITH_DEFAULT_ENROLLMENT_START_DATE` is on.

So anonymous users can see them and access the course about page
for the courses without valid data (e.g. they will see the default
course overview)

When courses list filtering is processed it checks the `see_exists`
permission for the anonymous user.
Actually, `see_exists` means `can_load` OR `can_enroll`.

`can_load` is False in our case because the course start in the future.

But `can_enroll` returns True because the course's enrollment_start
and enrollment_end dates are blank:
```
enrollment_start = courselike.enrollment_start or datetime.min.replace(tzinfo=UTC)
enrollment_end = courselike.enrollment_end or datetime.max.replace(tzinfo=UTC)
if enrollment_start < now < enrollment_end:
    debug("Allow: in enrollment period")
    return ACCESS_GRANTED
```

Set the enrollment_start the same as a course start by default
2023-08-22 10:42:19 -04:00
Yagnesh1998
a5b1fdad38 feat: remove the registration.enable_failure_logging temporary Waffle… (#32977)
* feat: remove the registration.enable_failure_logging temporary WaffleFlag depr84
2023-08-22 10:03:28 -04:00
Robert Raposa
a3cb678a16 Merge pull request #33069 from openedx/robrap/remove-basic-auth
feat!: remove BasicAuthentication default
2023-08-22 09:18:07 -04:00
Usama Sadiq
7710e60328 fix: fix middleware get_response parameter deprecation warning (#33067) 2023-08-22 15:52:30 +05:00
Robert Raposa
71136240ad feat!: remove BasicAuthentication default
Removed BasicAuthentication as a default from DRF
endpoints that have not overridden the authentication
classes. It appears this is not in use, and was just
implicitly a default because it came from DRF's
defaults.

See DEPR: https://github.com/openedx/edx-platform/issues/33028
2023-08-21 15:45:58 -04:00
Robert Raposa
c9734e3399 fix: change session_auth_result value to n/a
Changes one of the values of the custom attribute
session_auth_result from 'skipped' to 'n/a'.
2023-08-21 14:42:30 -04:00
Awais Qureshi
64abfd126c fix: upgrade oauthlib and django-oauth-toolkit to new versions. (#32631)
* chore: bump django-oauth-toolkit and oauthlib
---------

Co-authored-by: Muhammad Umar Khan <m.umarkhan999@gmail.com>
2023-08-18 14:21:25 +05:00
Usama Sadiq
59782fa625 fix: fix is_safe_url and urlquote warnings (#33041)
* fix: fix is_safe_url and urlquote warnings
* fix: replace urlquote with quote
2023-08-17 16:59:23 +05:00
Ahtisham Shahid
62718f2ed3 fix: removed redundant unit update from task (#33017) 2023-08-16 19:33:13 +05:00
Usama Sadiq
852246db8c fix: replace ugettext with gettext (#33022) 2023-08-16 17:07:23 +05:00
Usama Sadiq
87216d360d fix: fix django4 deprecation warnings (#32978) 2023-08-16 17:07:09 +05:00
edX requirements bot
aca521f256 Merge pull request #32578 from openedx/usamasadiq/remove-language-session-key-usage
fix: remove language_session_key usage
2023-08-16 06:05:19 -04:00
kenclary
fa22e01147 Merge pull request #32912 from openedx/kenclary/TNL-10912
fix: fix mako runtime bug with studio_view. TNL-10912
2023-08-15 16:37:11 -04:00
Soban Javed
27edbc6055 fix: added back test_views file 2023-08-15 21:28:43 +05:00
Soban Javed
c45ac51475 fix: update urls and tests for cookies 2023-08-15 21:28:43 +05:00
UsamaSadiq
e332a5660e fix: remove language_session_key usage 2023-08-15 21:28:43 +05:00
Robert Raposa
b9134c64ff feat: add observability for default auth classes (#33003)
Added new authentication classes to be used in
DEFAULT_AUTHENTICATION_CLASSES that include
observability. This will enable us to see more
about the endpoints using the defaults, to help
us make choices about changes in the defaults.

We make the DRF default of Session and Basic
Authentication explicit by setting
DEFAULT_AUTHENTICATION_CLASSES explicitly.
2023-08-15 10:13:26 -04:00
Muhammad Adeel Tajamul
4e5d3f9210 fix: update discussion enabled if true (#33008) 2023-08-15 14:27:15 +05:00
kenclary
af07ab702a Merge branch 'master' into kenclary/TNL-10912 2023-08-14 17:21:39 -04:00
Tim McCormack
f9614533c4 Revert "feat: Pact Provider Verification for Profile Endpoint" (#32999)
Reverts openedx/edx-platform#32928 -- mistaken merge.
2023-08-14 15:04:19 +00:00
Swayam Rana
bd7f6188d2 Merge pull request #32928 from openedx/sr-pact-provider
feat: Pact Provider Verification for Profile Endpoint
2023-08-14 10:13:01 -04:00
Swayam Rana
036fb3ddf7 feat: pact provider profile setup 2023-08-14 13:36:13 +00:00
Ken Clary
b453e4861f fix: fix mako runtime bug with studio_view. TNL-10912 2023-08-11 16:21:02 -07:00
Muhammad Adeel Tajamul
a7f9770cc1 fix: set isPublish as True when creating topics in incontext discussion (#32953) 2023-08-10 13:23:08 +05:00
michaelroytman
7598a81b57 feat: replace learning_assistant_launch_url with learning_assistant_enabled in courseware API
This commit replaces the learning_assistant_launch_url field of the CoursewareInformation view of the courseware API with a learning_assistant_enabled field. learning_assistant_enabled is a boolean that represents whether the Xpert Learning Assistant is enabled for the requesting user, based on the associated CourseWaffleFlag. This change is necessary because we are no longer leveraging the Learning Assistant LTI tool.
2023-08-09 10:29:11 -05:00
Yagnesh1998
dd191e9400 feat: Update models.py 2023-08-08 18:12:01 +05:30
Yagnesh1998
0fae4c975b feat: Update models.py
removed white space
2023-08-08 17:50:12 +05:30
Yagnesh1998
6967ca6f6e Merge branch 'master' into edx-depr31 2023-08-08 17:37:25 +05:30
Yagnesh1998
b2286f4b5d feat: Update models.py 2023-08-08 17:37:04 +05:30
Awais Qureshi
4da29d914d chore: adding migrations related with django-history. (#32935) 2023-08-08 16:04:06 +05:00
Muhammad Soban Javed
2732934e74 fix: re-enable Django deprecation warnings (#32277)
* fix: re-enable Django deprecation warnings
---------

Co-authored-by: UsamaSadiq <usama7274@gmail.com>
2023-08-07 22:08:00 +05:00
Erica Nwoga
4e75a89ff5 fead: added django admin forms (#32926)
* feat: added django admin forms
2023-08-07 13:01:12 -04:00
Mohammad Ahtasham ul Hassan
df197837cb fix: remove extras and enhance existing subs logging (#32919) 2023-08-07 18:01:50 +05:00
Muhammad Adeel Tajamul
f90f1af117 fix: added new_comment and new_response to core notification (#32894) 2023-08-07 12:02:52 +05:00
Syed Sajjad Hussain Shah
7f06e72f5e fix: redirection issue with enterprise selection page flow (#32909)
VAN-1511
2023-08-07 10:09:55 +05:00
Ahtisham Shahid
b37286e035 fix: Update notification sending logic for discussions (#32879) 2023-08-04 14:12:12 +05:00
Yagnesh1998
e7e69d5cd7 feat: Update models.py
remove white space.
2023-08-04 10:33:49 +05:30