Commit Graph

5152 Commits

Author SHA1 Message Date
Ahtisham Shahid
90b039273d feat: added audit track expiry filter in notifications (#33381)
* feat: added audit track expiry filter in notifications
2023-10-13 11:23:30 +05:00
Ahtisham Shahid
4acd6c22b3 chore: updated version of notifications pref (#33486) 2023-10-13 10:35:41 +05:00
Feanil Patel
126256735e Merge pull request #33479 from salman2013/salman/update-drf-endpoints
Update DRF endpoints to use default authentication
2023-10-12 10:50:09 -04:00
Feanil Patel
1ab9079486 Merge pull request #33465 from farhan/farhan/remove-xblockutils
Remove xblockutils package
2023-10-12 09:47:29 -04:00
salman2013
0d5ca66d44 Merge remote-tracking branch 'upstream/master' into salman/update-drf-endpoints 2023-10-12 15:17:27 +05:00
salman2013
f2bf289021 chore: test cases 2023-10-12 15:01:14 +05:00
Ahtisham Shahid
22e2a23b9f feat: add new notifiction type for discussions post followers (#33009)
feat: added model for subscription

feat: added logic for notifaction to followers
2023-10-12 13:03:02 +05:00
salman2013
4a640fec8b chore: update drf endpoints to use default authentication 2023-10-12 11:27:45 +05:00
Erica Nwoga
95b658c2ae feat: toggle to enable/disable lti pii acknowledgement (#33437)
* feat: toggle to enable/disable lti pii acknowledgement
2023-10-11 15:00:42 -04:00
Jillian
ba5546e29d feat: adds endpoint for downloading taxonomy templates (#33464) 2023-10-11 10:59:11 -07:00
Awais Qureshi
254903531a feat!: Adding fall back method for sha1 in case default algo is sha256 (#33345)
* feat!: `sha1` has been deprecated in django32 and removed in django42.

* test: fix quality failure

* fixup! update custom attribute tests (#33436)

I was wondering about all the cases, so I
updated the test to reflect this. I also
made some other minor adjustments.

---------

Co-authored-by: Muhammad Soban Javed <iamsobanjaved@gmai.com>
Co-authored-by: Robert Raposa <rraposa@edx.org>
Co-authored-by: Muhammad Soban Javed <58461728+iamsobanjaved@users.noreply.github.com>
2023-10-11 19:54:01 +05:00
farhan
ff17e51699 refactor: remove xblockutils package 2023-10-11 14:46:09 +05:00
Syed Sajjad Hussain Shah
b0f5d1e8cd fix: name field validations (#33429) 2023-10-11 05:03:41 +00:00
Braden MacDonald
d6e21a1c29 feat: remove Taxonomy.required, squash taxonomy migrations (#33438)
* feat: remove Taxonomy.required, make allow_multiple True by default

* chore: squash migrations

* fix: more robust migration

Co-authored-by: Jillian <jill@opencraft.com>

* chore: version bump, use squashed migration

---------

Co-authored-by: Jillian <jill@opencraft.com>
2023-10-10 10:44:10 -07:00
Muhammad Adeel Tajamul
29c83ca56b feat: notifications and preferences will be created in batches (#33418) 2023-10-06 16:27:22 +05:00
Braden MacDonald
0a6eb51166 feat: Simplify Content Tagging Models (#33378)
* feat: Simplify tagging - remove Content*Taxonomy models
* chore: bump version of openedx-learning
* chore: fix lint errors
2023-10-05 09:38:24 -07:00
Awais Qureshi
64eba521f8 Revert "[django42] sha1 is removed in django42 version. " (#33213)
* Revert "[django42] sha1 is removed in django42 version.  (#33129)"
2023-10-05 15:56:55 +05:00
Erica Nwoga
3d26512759 feat: add python apis to agreements models (#32967)
* feat: added python apis to agreements models

* feat: add python apis to agreements app

* feat: updated pyton apis and rest api

* feat: fixed python apis and added tests

* test: Added error handling and updated test functions

* style: fixed test formatting

* style: fixed test formatting

* style: fixed test formatting

* feat: Fixed error handling for python APIs

* feat: Fixed error handling for python APIs

* fix: edited python api for agreements app

* style: quality revisions for python apis
2023-10-04 10:36:18 -04:00
Feanil Patel
68150b511f Merge pull request #33405 from eduNEXT/mfmz/improve-enrollmentallowed-doc
docs: fix the EnrollmentAllowedView doc to be right
2023-10-04 08:54:22 -04:00
Syed Sajjad Hussain Shah
e7f6d1c8f1 fix: null email in identify calls (#33410) 2023-10-04 12:08:58 +00:00
Maria Fernanda Magallanes Zubillaga
8c071a30b4 docs: fix the EnrollmentAllowedView doc to be right 2023-10-03 21:33:15 -05:00
Zachary Hancock
835a81c466 feat: handle exam events for credit state (#33402)
Handles exam related events from the event bus that impact credit state. Functionally this will behave the same as the existing CreditService which is called by edx-proctoring. This enables edx-exams (an IDA) to have the same behavior.
2023-10-03 16:50:47 -04:00
Rômulo Penido
64adc5ee4d feat: Remove tagging object rest api pagination (#33311) 2023-09-26 10:48:34 -07:00
Feanil Patel
437b7e6219 Merge pull request #33289 from raccoongang/rg/feat/FC0031/add_bearer_authorization_in_delete_user_api
feat: [FC-0031] Add Bearer Authentication to Delete Account view
2023-09-26 07:49:38 -04:00
Ahtisham Shahid
c7c2d916de Revert "chore: added log to track changes in user notification pref (#33237)" (#33334)
This reverts commit 90ca72a34e.
2023-09-26 14:27:59 +05:00
Oksana Slusarenko
cd3abbfdb4 Merge branch 'master' into rg/feat/FC0031/add_bearer_authorization_in_delete_user_api 2023-09-25 14:28:38 +03:00
KyryloKireiev
6a1f126be9 fix: (review) Add comment to Delete Account view 2023-09-25 14:12:17 +03:00
Muhammad Adeel Tajamul
8c9232ace9 feat: updated notification admin (#33320) 2023-09-25 11:14:32 +05:00
Kyrylo Kireiev
4c50ad0a43 feat: [AXIM-44] Adapt Delete Account to Bearer Authorization 2023-09-22 12:07:36 +03:00
Rômulo Penido
e45460a2ce refactor: Move content_tagging django app so that CMS-only tests run (#33259) 2023-09-21 12:01:20 -07:00
Dmytro
f81b64f415 fix: get registration fields from site configuration (#33165)
Co-authored-by: Edward Zarecor <ezarecor@tcril.org>
Co-authored-by: Zainab Amir <zainab.amir@arbisoft.com>
2023-09-21 13:57:30 +05:00
ABBOUD Moncef
9b44065ab0 fix: hide sequences & sections when access is restricted in units through cohorts (#33191)
This does two major things:

* Removes subsections from a student's course outline if the
  subsection's units are all restricted to a cohort that the student
  is not a part of (see CohortPartitionGroupsOutlineProcessor).
* Removes sections from the course outline if the user is not allowed
  to see any of its child subsections.
2023-09-19 10:05:02 -04:00
Tim McCormack
25b18e83cd build: Add missing Celery task decorators, and add CI check for it (#33154) 2023-09-15 20:03:04 +00:00
María Fernanda Magallanes
76dbcdee6f feat: CourseEnrollmentAllowed API (#33059) 2023-09-15 11:43:59 -07:00
María Fernanda Magallanes
cddfc02fbc feat: add email support to the enrollment post and get methods (#33006) 2023-09-15 11:43:14 -07:00
Tim McCormack
eeb35733bb fix: Update cors_csrf middleware for Django 4.0 (#33262)
Remove use of Django's `CSRF_COOKIE_USED`, which is no longer leaked
outside of the dynamic scope of the Django csrf middleware as of Django
4.0. Specifically, https://github.com/django/django/pull/14688 replaced
that META entry and a request attribute with a single META entry
`CSRF_COOKIE_NEEDS_UPDATE`, which is then set back to False once the CSRF
cookie is set by the middleware's process_response.

We'll send the cross-domain cookie if the decorator requests it and the
value is present, regardless of whether the same-domain cookie would have
been sent. (And we'll still *set* `CSRF_COOKIE_NEEDS_UPDATE` to ensure that
a cookie gets generated.)

See https://github.com/openedx/edx-platform/issues/33207
2023-09-15 14:34:25 +00:00
Ahtisham Shahid
202e79093c fix: Integraty error in enrollments api (#33265) 2023-09-15 17:41:20 +05:00
Muhammad Adeel Tajamul
5fcad886cb fix: notification tray icon was not visible to non-verified users (#33247) 2023-09-15 16:14:24 +05:00
Ahtisham Shahid
6ff8e42bba fix: removed user object from logs (#33264) 2023-09-15 07:44:26 +00:00
Jansen Kantor
88b6f3894e fix: turn off atomic requests for course api get views (#33230)
* fix: turn off atomic requests for course api get views

* test: fix test
2023-09-14 10:40:28 -04:00
Ahtisham Shahid
90ca72a34e chore: added log to track changes in user notification pref (#33237)
* chore: added log to track changes in user notification pref
2023-09-14 13:31:00 +05:00
Kristin Aoki
f9c1af775c feat: change problem default display name (#33240) 2023-09-13 11:08:48 -04:00
Irtaza Akram
4191a37303 fix: expected query count django 4.2 (#33235) 2023-09-13 13:05:40 +05:00
SaadYousaf
ca9b008a46 fix: fix notification generated event to include only users with preferences enabled. 2023-09-11 17:19:54 +05:00
Awais Qureshi
26bf329eb7 [django42] sha1 is removed in django42 version. (#33129)
* fix: fixing django42 issue. sha1 is removed in 42 version.
2023-09-11 15:30:42 +05:00
SaadYousaf
d4fbc3037c fix: make updates to notification related events 2023-09-11 11:49:40 +05:00
connorhaugh
e788143564 test: remove flaky libraries asset test (#33195) 2023-09-07 17:20:20 +00:00
Artur Gaspar
7da99848a7 fix: edxnotes visibility in courseware and courseware API (#33096)
This retrieves user preferences for edxnotes visibility by:
1. Adding a `bind_course_for_student` method to course overview model.
2. Using a bound XBlock in the `toggle_notes.html` template.

The previously used unbound course instance was returning a default value.
2023-09-07 17:59:51 +02:00
Muhammad Adeel Tajamul
e524af5c7c feat: added notification_expiry_days in notification count api (#33187) 2023-09-07 13:54:54 +05:00
Sagirov Evgeniy
c5d1807c81 feat!: remove most Old Mongo functionality (#31134)
This commit leaves behind just enough Old Mongo (DraftModulestore)
functionality to allow read-only access to static assets and the
root CourseBlock. It removes:

* create/update operations
* child/parent traversal
* inheritance related code

It also removes or converts tests for this functionality.

The ability to read from the root CourseBlock was maintained for
backwards compatibility, since top-level course settings are often
stored here, and this is used by various parts of the codebase,
like displaying dashboards and re-building CourseOverview models.

Any attempt to read the contents of a course by getting the
CourseBlock's children will return an empty list (i.e. it will look
empty).

This commit does _not_ delete content on MongoDB or run any sort of
data migration or cleanup.
2023-09-06 10:01:31 -04:00