Commit Graph

13906 Commits

Author SHA1 Message Date
ayesha waris
9f136a4149 feat: added notifications when response is endorsed or answered (#34082)
* feat: added notification when response is endorsed or answered

* test: added and fixed test cases

* fix: fixed lint errors

* refactor: changed method name for readibility

* feat: added notification when my response is endorsed

* test: fixed failed test cases
2024-02-01 13:33:16 +05:00
Kaustav Banerjee
d0a49d1a01 fix: add missing function import in certificate template (#33904)
* fix: add missing function import in certificate template
* test: add test case to check certificates generated when GA4 is enabled
2024-01-31 09:18:34 +10:30
Ahtisham Shahid
039583f88f feat: added reported notification type (#34067) 2024-01-30 12:07:49 +05:00
Deborah Kaplan
253853119f Merge branch 'master' into dkaplan1/APER-1322_certs-with-invalidation-records-arent-in-the-unavailable-status 2024-01-29 11:52:34 -05:00
Deborah Kaplan
1c049a3f39 feat: switching to a defined enum
feedback from code review

FIXES: APER-1322
2024-01-29 16:48:52 +00:00
Syed Sajjad Hussain Shah
cb2a34e51f feat: logout other sessions on email change (#33846)
* feat: logout other sessions on email change

* fix: updated the approach for session invalidation

* fix: update and add tests

* fix: update tests with descriptive comments

* feat: add integration tests

* fix: store email in session update

* fix: add setting for tests

* fix: fix tests

* feat: Upgrade Python dependency edx-drf-extensions (#34135)

Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`

Co-authored-by: syedsajjadkazmii <syedsajjadkazmii@users.noreply.github.com>

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: syedsajjadkazmii <syedsajjadkazmii@users.noreply.github.com>
2024-01-29 14:43:51 +05:00
Saad Yousaf
928e810b33 Revert "temp: add temporary logs for course wide notifications" 2024-01-29 12:42:39 +05:00
Deborah Kaplan
f14d279dad feat: data migration for some ancient legacy problems
one time data migration for  certificates that ended up in a broken
state (not marked is unavailable, but having invalidation records).

FIXES: APER-1322
2024-01-25 22:13:02 +00:00
Justin Hynes
426ee163bc revert: add brand_color variable for the email templates (#33421)"
This reverts commit 4ec70eb98b.

This commit introduced a new setting (`brand_color`) that does not appear to be set and is causing issues with account deletion and other parts of the courseware.

Reverting until we can understand the change better.
2024-01-24 18:47:02 +00:00
bydawen
4ec70eb98b feat: add brand_color variable for the email templates (#33421)
* feat: add brand_color variable for the email templates

* test: fix tests assertations

---------

Co-authored-by: Eugene Dyudyunov <evgen.dyudyunov@raccoongang.com>
2024-01-23 13:21:06 +05:00
Deborah Kaplan
b4bf07660e feat: fixes from code review
improving a comment

FIXES: APER-2851
2024-01-18 15:14:24 +00:00
Deborah Kaplan
a35a6f908e feat: linter
Fixing a linter air

FIXES: APER-2851
2024-01-18 13:49:22 +00:00
Deborah Kaplan
e0ef013f02 feat: fixing some codestyle/lint errors
not sure why the manual linter didn't complain

FIXES: APER-2851
2024-01-17 22:00:30 +00:00
Deborah Kaplan
994b8a3d49 feat: adding tests to modify cert template
Re-factored to make the code more testable, and added some more tests,
also improved dry run logging

FIXES: APER-2851
2024-01-17 21:41:21 +00:00
Deborah Kaplan
7c78473b0c Merge branch 'master' into dkaplan1/APER-2851_replicate-share-certificate-in-facebook-improvements-for-edx.org 2024-01-16 18:09:03 -05:00
Deborah Kaplan
cccb960f20 feat:tests for certificate template modifier
still needs mocks for all tests to work

FIXES: APER-2851
2024-01-16 23:07:51 +00:00
ahmed-zubair-1998
73a446d85b perf: Reduce database calls when generating problem responses report (#33940)
During the process of generatinng report for problem responses,
there are two places where N + 1 query problem exist. In both
cases, `StudentModule` objects are fetched and looped over where
`student.username` field for each object is accessed. This result
in a seperate database call to get the username for each student
response.

This problem is fixed by creating a join to fetch the related
table in the original query using `select_related`. In a test
conducted on report having 5000 `StudentModule` objects, the
number of queries for the request reduced from 8363 to 29. The
total time taken for the task reduced from 23764 ms to 7394 ms.
2024-01-16 13:41:15 -05:00
Deborah Kaplan
817c8f28cd Merge branch 'master' into dkaplan1/APER-2851_replicate-share-certificate-in-facebook-improvements-for-edx.org 2024-01-16 11:06:32 -05:00
Muhammad Adeel Tajamul
692b3ac4b2 fix: removed enable_discussion_mfe from email content (#34061) 2024-01-16 12:12:55 +05:00
Feanil Patel
019888f3d1 Merge pull request from GHSA-qx8m-mqx3-j9fm
fix: add `JwtRestrictedApplication` check to XBlock callback
2024-01-12 11:26:28 -05:00
ayesha waris
2fd1f7bd90 chore: removed enable_course_live and enable_big_blue_button flag flags (#33998)
* chore: removed enable_course_live flag

* chore: removed enable_big_blue_button flag

* fix: fixing failed test cases
2024-01-12 15:24:46 +05:00
ayesha waris
53270f17b3 chore: removed and merged multiple flags into enable_discussions_mfe flag (#33983) 2024-01-12 15:07:00 +05:00
Deborah Kaplan
392110bdda feat: pep8 fixes
pep8

FIXES: APER-2851
2024-01-11 22:27:47 +00:00
Deborah Kaplan
3ac66de476 feat: adding migration
adding the migration for  the ability to manage these command configs
via django admin

FIXES: APER-2851
2024-01-11 22:17:19 +00:00
Deborah Kaplan
ce48516c90 feat: fixing a long line problem
fixing a long line problem

FIXES: APER-2851
2024-01-11 22:08:48 +00:00
Deborah Kaplan
18027adfae feat: reordering includes
undid my auto formatters reordering of the includes, because I'm
assuming that's what the lint-amnesty directives are there for. Best
practice would have a human-written comment explaining why they need to
stay there, but I'm just going have to assume it's correct, Because no
such human-written comment exists.

FIXES: APER-2851
2024-01-11 21:56:12 +00:00
Deborah Kaplan
7bdb8ee0cc Merge branch 'master' into dkaplan1/APER-2851_replicate-share-certificate-in-facebook-improvements-for-edx.org 2024-01-11 16:51:34 -05:00
Deborah Kaplan
9657645fad feat: adds a certificate template modifier
adds a management command to modify certificate templates, with a dry
run option. Inherently unsafe; just as a search and replace on the first
string match.

TODO:
* unit tests
* make sure the multi-line string replacements work via django admin

FIXES: APER-2851
2024-01-11 21:45:34 +00:00
Muhammad Adeel Tajamul
e3b122b7af fix: legacy reported content will send email based on discussion settings (#34006) 2024-01-11 16:55:42 +05:00
Agrendalath
d57e5f61ea fix: add JwtRestrictedApplication check to XBlock callback 2024-01-10 08:47:08 -05:00
connorhaugh
efaef4510e fix: protect video transcript handler from scraper (#34017)
Web scrapers do annoying stuff like visit urls they shouldn't know about and cause xblock handlers to break.
I tested this by:
Making sure video transcripts worked as normal while logged in
making sure that I got no 500s in my logs while attempting to view it logged out.
2024-01-08 18:14:03 -05:00
Justin Hynes
2209549e68 Merge pull request #34000 from openedx/jhynes/APER-2551
docs: add diagrams for course cert awarding and revocation
2024-01-05 14:13:11 -05:00
Arslan Ashraf
986737a944 fix: Incorrect ORA assignment link in Dates tab (#33984) 2024-01-04 07:55:54 -05:00
Justin Hynes
49537d5011 docs: add diagrams for course cert awarding and revocation
[APER-2551]

This PR adds some diagrams to help visualize the current certificate awarding and revocation process of the monolith.
2024-01-03 18:58:35 +00:00
SaadYousaf
8a9e19ad8f temp: add temporary logs for course wide notifications 2023-12-29 16:53:39 +05:00
Muhammad Adeel Tajamul
30c029f119 feat: added comment_endorsed, thread_followed and thread_unfollowed signals in mfe api (#33944) 2023-12-29 11:29:31 +05:00
Muhammad Adeel Tajamul
dd4a97d410 feat: added thread_flagged and comment_flagged signals in legacy discussion (#33949) 2023-12-29 11:29:17 +05:00
SaadYousaf
2d353f5594 feat: move new forum content creation notifications to use course wide notification event 2023-12-20 14:25:00 +05:00
Glib Glugovskiy
cae4091579 docs: [FC-0031] Update docstring 2023-12-19 19:15:29 +02:00
KyryloKireiev
003f6d9bb4 refactor: [FC-0031] Use serializer instead of custom function 2023-12-19 19:15:29 +02:00
KyryloKireiev
81c992990a fix: [FC-0031] Add parameters description, refactor list method 2023-12-19 19:15:29 +02:00
KyryloKireiev
c4fe8d30e3 feat: [AXIM-26] Extended BlocksInCourseView API 2023-12-19 19:15:29 +02:00
Troy Sankey
9ef8ce61e6 feat: wrap new course_not_started_enterprise_learner in a SettingToggle
ENT-8078
2023-12-18 18:54:36 -08:00
Troy Sankey
499679ab6c feat: add new course access error_code for enterprise learners in future courses (2nd try)
Normally, the course API would return an access error_code of
`course_not_started` if the course has not started yet.  This change
breaks that up into two codes:

* if the course has not started:
  * return error_code=`course_not_started_enterprise_learner` if the
    learner is enrolled as a subsidized enterprise learner.
  * else, return error_code=`course_not_started`.

This supports a change to the frontend which will interpret
`course_not_started_enterprise_learner` differently and trigger a
redirect to the enterprise (B2B) learner dashboard instead of the B2C
dashboard.

ENT-8078
2023-12-18 12:55:17 -08:00
Troy Sankey
f74d48341b Merge pull request #33937 from openedx/pwnage101/ENT-8078-2
revert: "feat: add new course access error_code for enterprise learners in future courses"
2023-12-15 11:17:16 -08:00
Feanil Patel
01fcbc9828 Merge pull request #33646 from raccoongang/rg/feat/FC0031/update_course_detail_view_endpoint
feat: [FC-0031] Add optional field 'is_enrolled' to course detail view
2023-12-15 14:08:32 -05:00
Troy Sankey
0ea0048bdf revert: "feat: add new course access error_code for enterprise learners in future courses"
This reverts commit 287a7ff7fd.
2023-12-15 10:49:46 -08:00
Glib Glugovskiy
d344a7eef6 fix: [FC-0031] Restrict access to is_enrolled field 2023-12-15 20:28:31 +02:00
KyryloKireiev
bd5386356a feat: [FC-0031] Add optional field 'is_enrolled' to course detail view 2023-12-15 14:28:09 +02:00
Troy Sankey
287a7ff7fd feat: add new course access error_code for enterprise learners in future courses
Normally, the course API would return an access error_code of
`course_not_started` if the course has not started yet.  This change
breaks that up into two codes:

* if the course has not started:
  * return error_code=`course_not_started_enterprise_learner` if the
    learner is enrolled as a subsidized enterprise learner.
  * else, return error_code=`course_not_started`.

This supports a change to the frontend which will interpret
`course_not_started_enterprise_learner` differently and trigger a
redirect to the enterprise (B2B) learner dashboard instead of the B2C
dashboard.

ENT-8078
2023-12-14 22:18:25 -08:00