Commit Graph

7392 Commits

Author SHA1 Message Date
Yusuf Musleh
7665f13547 feat: Add Library Collections REST endpoints [FC-0062] (#35321)
* feat: Add Library Collections REST endpoints

* test: Add tests for Collections REST APIs

* chore: Add missing __init__ files

* feat: Add events emitting for Collections

* feat: Add REST endpoints to update Components in a Collections (temp) (#674)

* feat: add/remove components to/from a collection

* docs: Add warning about unstable REST APIs

* chore: updates openedx-events==9.14.0

* chore: updates openedx-learning==0.11.4

* fix: assert collection doc have unique id

---------

Co-authored-by: Jillian <jill@opencraft.com>
Co-authored-by: Chris Chávez <xnpiochv@gmail.com>
Co-authored-by: Rômulo Penido <romulo.penido@gmail.com>
2024-09-11 13:21:10 -05:00
Tim McCormack
b615a8767f feat: Convert contentserver to view permanently (drop middleware and flag) (#35420)
Final planned portion of https://github.com/openedx/edx-platform/issues/34702 -- waffle flag and middleware are removed.

Commits:

1. Feature change
    - Delete `content_server.use_view` waffle flag in favor of always using view
    - Delete the husk of `StaticContentServerMiddleware` and references to it
    - Update views module docstring
2. Refactor (move)
    - Move contentserver implementation into views.py
3. Lint cleanup
    - Fix import ordering (from refactor debris + amnestied lint)
2024-09-06 14:42:32 +00:00
Muhammad Adeel Tajamul
f8bf592483 fix: added course_id in email sent event (#35422) 2024-09-05 15:01:43 +05:00
Juliana Kang
51d538cbe7 fix: Remove B2C Subscriptions (#35303)
REV-3697
2024-09-04 14:01:45 -04:00
Navin Karkera
ec34753043 fix: update library v2 search index synchronously (#35367)
Discarded components need to be removed from index in sync to make sure
that users see the latest updated data.
2024-08-30 12:16:02 -07:00
Robert Raposa
311da82ff9 feat: DEPR USE-JWT-COOKIE header - Part 1 (#35401)
This repo is no longer using USE-JWT-COOKIE header,
since it has the required edx-drf-extensions>10.2.0,
where it was fully removed.

This removes all uses of the header, except updating
CORS_ALLOW_HEADERS, which can't be done before all
MFEs and other callers stop sending the header.

See "[DEPR]: USE-JWT-COOKIE header" for more details:
- https://github.com/openedx/edx-drf-extensions/issues/371
2024-08-30 10:40:21 -04:00
Robert Raposa
01c718dfb2 Revert "feat: DEPR USE-JWT-COOKIE header (#35393)" (#35397)
This reverts commit 1c2b804ef7.
2024-08-29 11:23:05 -04:00
Muhammad Adeel Tajamul
b323e65eeb feat: added content block in email notification template (#35391) 2024-08-29 18:08:20 +05:00
Muhammad Adeel Tajamul
481a50717a feat: updated content in course_update notification (#35373) 2024-08-29 18:07:57 +05:00
Robert Raposa
1c2b804ef7 feat: DEPR USE-JWT-COOKIE header (#35393)
This repo is no longer using USE-JWT-COOKIE header,
since it has the required edx-drf-extensions>10.2.0,
where it was fully removed.

This is final clean-up for this repo.

See "[DEPR]: USE-JWT-COOKIE header" for more details:
- https://github.com/openedx/edx-drf-extensions/issues/371
2024-08-29 08:27:47 -04:00
Blue
ea596d6a25 fix: convert totalRegistrationTime to snake case (#35333)
* fix: convert totalRegistrationTime to snake case
Description:
Convert totalRegistrationTime to snake case
VAN-1816

* fix: link issue

---------

Co-authored-by: Ahtesham Quraish <ahtesham.quraish@192.168.1.4>
Co-authored-by: Syed Sajjad  Hussain Shah <ssajjad@2u.com>
2024-08-28 14:58:14 +05:00
Navin Karkera
c65478e487 feat: index library collections in studio meilisearch index (#35324) 2024-08-27 10:45:46 -07:00
Rômulo Penido
9124e7bca4 feat: allow update xblock fields without passing data (#35320) 2024-08-27 12:31:13 -05:00
Chris Chávez
2e77e65d1c feat: Problem types added as filterable attribute [FC-0059] (#35242) 2024-08-27 11:43:29 -05:00
Deborah Kaplan
0f177e4666 feat: linting only (#35370)
Editing this file is going to cause a lot of automatic linting, so lint-only commit for nicer code review.
2024-08-26 10:20:03 -04:00
Muhammad Adeel Tajamul
71f410eb40 feat: added snowflake events for email digest unsubscribe (#35329) 2024-08-26 11:24:05 +05:00
Deborah Kaplan
6071992281 feat: lint this file (#35348)
I'm about to make a bunch of changes to this file, and before I do I'm
saving it and letting the linter reformatted to our current code style
standards, so that code reviewers won't have to read a mix of lint and
code changes.

FIXES: APER-3554
2024-08-22 14:56:51 -04:00
Navin Karkera
c3480b8f0b chore: add comment 2024-08-19 17:01:25 +05:30
Navin Karkera
fed8a803f1 test: delete documents that were never published on discard 2024-08-19 17:01:25 +05:30
Navin Karkera
e1495398e2 refactor: delete documents that were never published on discard 2024-08-19 17:01:25 +05:30
Navin Karkera
140b9bb968 refactor: delete all documents on discard 2024-08-19 17:01:25 +05:30
Navin Karkera
2efff2697b refactor: parallelize content block update on discard 2024-08-19 17:01:25 +05:30
Navin Karkera
65258117d8 fix: delete discarded drafts from meilisearch index 2024-08-19 17:01:25 +05:30
Muhammad Adeel Tajamul
00772693ef feat: added unsubscribe url in digest header (#35319) 2024-08-19 12:21:43 +05:00
Yusuf Musleh
11de2a4055 feat: REST API to allow pasting clipboard (staged) content into a library (#35199) 2024-08-15 09:58:06 -07:00
Eemaan Amir
152b678e62 feat: save author pronoun separately for notification to prevent info loss (#35234)
* feat: save author pronoun separately for notification to prevent info loss

* fix: missing pronoun in comment on followed post

* test: updated tests for new comment notifications
2024-08-12 12:04:20 +05:00
Muhammad Adeel Tajamul
25d5d084e0 feat: fetched notifications based on time not date (#35250) 2024-08-12 06:18:33 +05:00
Rômulo Penido
aa952c9332 feat: allow copying library v2 XBlocks via existing copy REST API (#35211) 2024-08-08 09:31:33 -07:00
Ahtisham Shahid
e7dbc4883c fix: resolved content issue in renamed notification (#35252) 2024-08-08 19:10:47 +05:00
Tim McCormack
36200f4232 fix: Fix matching of /c4x/ in course asset view urlpatterns (#35247)
This was failing to capture /c4x/ URLs when the `content_server.use_view`
waffle flag was enabled, so we were returning 404s for those during our
rollout test.

Part of https://github.com/openedx/edx-platform/issues/34702
2024-08-07 17:05:03 +00:00
Ahtisham Shahid
9bd692413a fix: make course update email pref false (#35224)
fix: updated unit tests

fix: updated unit tests
2024-08-07 14:55:02 +05:00
Braden MacDonald
8aac664e67 fix: error when saving changes to a v2 library block (#35217) 2024-08-06 04:30:14 +09:30
Muhammad Adeel Tajamul
5aa69589c4 feat: added truncate and alert in notification (#35214) 2024-08-05 06:08:19 +05:00
Eemaan Amir
c135fddd55 fix: removed extra space and colon from ORA notification content (#35206) 2024-08-02 12:22:34 +05:00
Chris Chávez
2788f2bc3b feat: New fields in library v2 details API view (#35091) 2024-08-01 11:50:13 -07:00
Jillian
20f7dbda7a fix: content search last_published date [FC-0059] (#35195)
* fix: use versioning.last_publish_log for components
* chore: bump openedx-learning to 0.10.1
2024-08-02 02:48:31 +09:30
Deborah Kaplan
089b34a6bf feat: removing the demographics application stage 2 (#35186)
* removing the application folder
* removing references in all other files

FIXES: APER-3560
2024-07-26 11:13:35 -04:00
Deborah Kaplan
12569b459f feat: removing djangoapp demographics, step 1 (#35182)
* feat: removing djangoapp `demographics`, step 1

This step removes the models, the references to the models, and adds a
migration to drop both tables  (`HistoricalUserDemographics`  didn't
have a corresponding model but was still a valid table).

Once this has deployed, this will be removed from `INSTALLED_APPS` and
completely removed.

No other apps  in the repository currently reference this djangoapp  in
code or tables.

FIXES: APER-3560
2024-07-25 19:06:24 +00:00
Jillian
6b5d812d38 feat: adds sortable fields to studio content search index (#35103) 2024-07-25 18:18:49 +00:00
Rômulo Penido
238dca732e fix: skip block indexing if it raises an error while loading (#35139)
* fix: skip block indexing if it raises an error while loading
* test: add tests to the issue
2024-07-26 02:15:57 +09:30
Eemaan Amir
03a8f5daf7 refactor: refactored notifications app and removed unused code (#35160) 2024-07-25 11:09:00 +05:00
Awais Ansari
1fb20b3598 feat: update account verification email context (#35165) 2024-07-24 14:40:58 +05:00
Muhammad Adeel Tajamul
ce290db4c1 feat: added snowflake events for email notifications (#35158) 2024-07-24 14:39:02 +05:00
Juliana Kang
40ddfeb3b8 feat: Add override on percentage config to the First Purchase Discount (#35167)
REV-4098
2024-07-23 15:43:34 -04:00
Muhammad Adeel Tajamul
e12ec1b153 feat: added group_by_id field in notifications model (#35137) 2024-07-23 14:28:56 +05:00
Juliana Kang
a19697786f feat: Add First Purchase Discount override (#35143)
REV-4098
2024-07-22 14:01:07 -04:00
Muhammad Anas
8f7496d00e fix: DiscussionsConfigurations admin error 2024-07-22 09:08:49 -04:00
Juliana Kang
475b49c3ca feat: Add waffle flag for First Purchase Discount override (#35133)
REV-4097
2024-07-19 08:59:55 -04:00
Eemaan Amir
b438349795 fix: rephrasing and removing bugs from response endorsed notifications (#35136)
* fix: rephrasing and removing bugs from response endorsed notifications

* test: updated test for response endorsed notifications
2024-07-19 15:56:05 +05:00
Deborah Kaplan
a9355852ed test: improve logging for periodic error (#35141)
we have a periodic error that makes no sense when the certificate
available date is none. This improves logging for the API call. Because
the only thing being changed is a course certificate, there is no risk
of PII being exposed in the new logging.
2024-07-18 15:33:15 -04:00