Commit Graph

5712 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
Yagnesh Nayi
d9af2dfb36 feat!: DEPR expected error part of EXPECTED_ERRORS (#33184)
Removes expected part of EXPECTED_ERRORS with a variety of changes.
- In many placed in the code, "expected" was used to mean
  "ignored and expected", and all such instances are renamed to "ignored".
- The setting ``EXPECTED_ERRORS`` is renamed to ``IGNORED_ERRORS``,
  which better matches how it was being used in the first place.
- The setting ``EXPECTED_ERRORS[REASON_EXPECTED]`` is renamed to ``IGNORED_ERRORS[REASON_IGNORED]``.
- The setting toggle ``EXPECTED_ERRORS[IS_IGNORED]`` is removed,
  because it will now always be True.
- The how-to will is renamed to how_tos/logging-and-monitoring-ignored-errors.rst.

See 0002-logging-and-monitoring-expected-errors-removed.rst for more details.

Implements DEPR: https://github.com/openedx/edx-platform/issues/32405

**BREAKING CHANGE:** The rename of the setting ``EXPECTED_ERRORS`` to
  ``IGNORED_ERRORS``, and ``REASON_EXPECTED`` to ``REASON_IGNORED``,
  was implemented without backward compatibility. Simply copy the old settings
  with the new name as an expand phase before deleting the old names in the 
  contract phase.
2023-10-04 10:03:41 -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
Yusuf Musleh
0d15ca7240 fix: Escape CDATA special char on xblock serialize (#33239)
This fixes a bug in xblock serialization when trying to copy a
unit/component that contains an HTML xblock with the characters "]]>"
which is a special character in CDATA.
2023-09-15 08:58:23 -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
Kyle McCormick
265701c01d feat!: remove library_sourced block (#33257)
Originally, we planned to add support for V2 libraries and for static
(hand-selected) library block reference via new block type: library_sourced.

We have since decided that it would be better to add those capabilities
in-place to the existing library_content block. This will ease V1->V2
library migration and make adoption of the new features easier for current
library users. It will also avoid duplication of logic between two block types,
we we fear would be error-prone. For details, see this ADR:
 https://github.com/openedx/edx-platform/pull/33231

So, we are removing the library_sourced block.
This block has existed in edx-platform for a few years now, but was not
enabled by default and never officially supported. It was only usable via the
experimental V2 content library feature. Operators who added library_sourced
blocks to their course will now see them render as `HiddenBlock` instances, i.e.:

> ERROR: "library_sourced" is an unknown component type...

This should not impact other component types in such courses and should not
impact import/export.
2023-09-15 10:04:38 -04: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
Yusuf Musleh
ee1b6b8a6d fix: Copy/Paste unit with python_lib.zip (#33164)
This fixes the issue when pasting a copied unit that contains
python_lib.zip file into another course. The python_lib.zip file was not
being correctly copied over to the new course's Files & Uploads page.
2023-09-13 12:22:55 -07: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