Commit Graph

7419 Commits

Author SHA1 Message Date
Zainab Amir
4792f9e792 Revert "feat: send some user traits in successful registration response (#32532)" (#32543)
This reverts commit e30bf391c9.
2023-06-22 13:33:20 +05:00
Agrendalath
71fee4a4a0 feat!: remove block handling from runtime initialization of ReplaceURLService
BREAKING CHANGE: This removes the following deprecated shims from the runtime:
`replace_urls`, `replace_course_urls`, `replace_jump_to_id_urls`. XBlocks need
to use the `replace_urls` service instead.
2023-06-21 20:28:24 +02:00
Syed Sajjad Hussain Shah
e30bf391c9 feat: send some user traits in successful registration response (#32532)
VAN-1499
2023-06-21 13:21:30 +05:00
Ahtisham Shahid
bf4b3c628b refactor: updated api reference from unseen to seen (#32501) 2023-06-21 13:02:28 +05:00
Muhammad Adeel Tajamul
aab3624960 feat: added parser to update existing notification on get (#32450) 2023-06-20 14:10:21 +05:00
SaadYousaf
4c36156c8c feat: add content field property to Notification model 2023-06-20 13:32:52 +05:00
Awais Ansari
8990035116 feat: add notifications mark as read API (#32475)
* feat: add notifications mark as read API

* chore: update description for mark as read notification URL

* refactor: resolve pylint issue

* refactor: notifications mark as read API and test cases

* feat: add translated messages in notificationsAPI response
2023-06-19 18:47:56 +05:00
SaadYousaf
3eab837c0b feat: add management command to generate notification preferences for course 2023-06-19 16:45:28 +05:00
Yagnesh
14f90eba96 feat: BLOCK_STRUCTURES_SETTINGS['PRUNING_ACTIVE'] toggle removed depr31 2023-06-17 02:31:07 +05:30
Mubbshar Anwar
c55f0961ba fix: update event property (#32479)
Update event property name which was added to measure the conversion rate of registration through on ramp experience.

VAN-1478
2023-06-16 09:06:25 +05:00
Jesper Hodge
a6c57811cd feat add xblock api endpoint (#32282)
* feat: add xblock endpoint for updating an xblock

fix: remove debugger

feat: make function call more generic

refactor: just use request.json for request data as before

refactor: extract method

fix: revert wrong method change

fix: refactor correct method

feat: use handle_xblock method so that we can do more than update xblocks

fix: usage_key_string defaults to None

add all CRUD operations

fix usage key parameter

refactor: create /views folder

refactor: move xblock view functions to xblock_services

fix: tests

fix: tests

refactor: move xblock API endpoint to contentstore

* docs: add explanatory comment to new xblock_service

* feat: add feature flag for enabling content editing api

* feat: raise 404 if studio content api is disabled

* tests: test xblock endpoint

* test: make all post tests work

* test: check that xblock_handler receives correct args

* refactor: create util mixin for course factories with staff

* refactor: extract course staff authorization tests

* refactor: extract tests to api view testcase class

* test: add get tests

* test: fix tests

* test: fix tests

* test: fix tests

* test: add all crud tests

* fix: refactor to fix tests

* fix: merge conflict

* fix: merge conflict

* fix: tests after merge

* fix: json request decorator

* fix: lint

* fix: lint

* fix: lint

* fix: lint

* fix: new test files

* fix: lint

* fix: lint and apply PR suggestions

* fix: lint

* fix: lint

* fix: lint

* fix: lint

* fix: lint

* fix: lint
2023-06-15 14:17:49 -04:00
Robert Raposa
e7e4fa3935 temp: remove flaky test_login_and_registration_form_ratelimited (#32459) 2023-06-15 11:43:17 -04:00
Justin Hynes
2f8b7380fb Merge pull request #32463 from openedx/jhynes/APER-2504_changes-part-2
feat: add ability for `notify_credentials` to revoke program certs
2023-06-15 08:25:27 -04:00
Mubbshar Anwar
a62276b8ce feat: registration event property (#32447)
Registration event property to calculate conversion rate through on ramp experience.

VAN-1478
2023-06-15 17:20:43 +05:00
Zainab Amir
d5be2c8033 feat: Get welcome page context (#32426) 2023-06-15 17:09:47 +05:00
ayesha waris
d3b1ce176a feat: adds waffle flag for show notifications tray (#32451)
* feat: adds waffle flag for show notifications tray

* refactor: refactored notifications count api code
2023-06-15 14:38:46 +05:00
Muhammad Faraz Maqsood
65687857d5 enhancement: add support for caching programs for one site (#32380)
* perf!: add support for caching programs on per site bases
2023-06-15 11:29:22 +05:00
Justin Hynes
2beaa1d260 feat: add ability for notify_credentials to revoke program certs
[APER-2504]

This is a companion to PR #32458. This updates the `notify_credentials` management command and adds an additional argument/switch (`--revoke_program_certs`).

If included, this option will be converted to a boolean and passed as a script option. Eventually, the `send_notifications` function (updated in the previously mentioned PR) will determine if we should fire a signal that checks if any program certs need to revoked.
2023-06-14 19:29:55 +00:00
Justin Hynes
d427d404da feat: add ability for notify_credentials to revoke program certs
[APER-2504]

This PR adds additional functionality to the tasks kicked off when the `notify_credentials` management command is run.

I have added a new keyword arg (revoke_program_certs) that, if True, will check to see if we need to revoke a program certificate. This functionality was introduced to help automate fixing cases where a learner still has access to a Program Certificate even if they have been awarded all of the course certificates in a Program (see APER-2499).

The functionality has to be committed in two separate PRs because of our blue/green deployments. The task changes will come first, then we will update the management command to be able to set/pass the new settings. New settings were added as keyword args (defaulting to False) in order to ensure that we won't trip up our workers.
2023-06-14 16:29:43 +00:00
Kaustav Banerjee
489e23983f feat: tpa automatic logout (#32193)
* feat: tpa automatic logout

* chore: modify toggle documentations

* chore: check TPA_AUTOMATIC_LOGOUT_ENABLED in _show_tpa_logout_link

* docs: modify method doc
2023-06-14 17:01:00 +05:00
muhammad-ammar
2a24bf8c4f chore: add comment 2023-06-13 19:40:06 +05:00
Muhammad Bilal Tahir
8693d5a4a6 feat: create user profile if not found in current job command 2023-06-13 17:07:17 +05:00
Awais Ansari
52a886d456 feat: filter notifications based on NOTIFICATIONS_EXPIRY (#32411)
* feat: add 2 months limit in notifications list API

* chore: add NOTIFICATIONS_MAX_DAYS in lms settings

* refactor: update NOTIFICATIONS_MAX_DAYS to NOTIFICATIONS_EXPIRY

* feat: add order_by reverse id in notificationslist API
2023-06-13 17:05:18 +05:00
muhammad-ammar
2ecd06a735 feat: trigger signals to import and delete course details from plugin 2023-06-12 18:31:57 +05:00
Nawfal Ahmed
6a5c1bbf44 feat: update subscription enrollment alert (#32414) 2023-06-12 13:07:43 +00:00
Muhammad Bilal Tahir
86edbbeb46 feat: management command to fetch enterprise current job in lms extended profile 2023-06-07 15:17:10 +05:00
SaadYousaf
2da176ce32 feat: implementing basic functionality to incorporate new notification types 2023-06-07 14:05:59 +05:00
SaadYousaf
0339784e4e feat: integrating notification preference API 2023-06-07 14:05:59 +05:00
Muhammad Adeel Tajamul
3832eda78d fix: change response of course enrollment api for notifications 2023-06-05 14:29:07 +05:00
Attiya Ishaque
0544c06705 fix: fix empty list as default value for extended_profile (#32323) 2023-05-31 18:12:29 +05:00
Muhammad Adeel Tajamul
d7f618844b feat: notifications enrollments api will show courses for which notifications is enabled (#32307) 2023-05-31 17:00:08 +05:00
irfanuddinahmad
b55104a832 Merge pull request #32294 from openedx/iahmad/ENT-7164-3
feat: Added filter for modifying course home url for externally hosted courses
2023-05-31 15:28:22 +05:00
Matt Hughes
044f172cb1 perf: pull user's profile information for serialization w/ ret. arch
JIRA:CR-5812
2023-05-30 09:33:45 -04:00
Juliana Kang
c67408b9c5 fix: Modify nextPaymentDate in program details subscriptions (#32310)
PON-247
2023-05-26 10:50:39 -04:00
IrfanUddinAhmad
b2734099ac feat: Added filter for modifying course home url for externally hosted courses 2023-05-26 14:15:27 +05:00
Shahbaz Shabbir
24dced2093 test: add tests for MFE Context API serializser (#32179) 2023-05-24 15:20:01 +05:00
ayesha waris
abac77e106 feat: adds ability to disable posting in discussions indefinitely (#32171)
* feat: adds ability to disable posting in discussions indefinitely

* test: fixed ffailing test cases

* test: added new model field in test cases

* refactor: removes unnecessary migrations

* refactor: removed previous migrations and adds new field in discussions api

* refactor: added docstring and changed method name

---------

Co-authored-by: ayesha waris <73840786+ayeshoali@users.noreply.github.com>
2023-05-23 15:08:06 +05:00
Ahtisham Shahid
27b8d2f68d feat: Added notification APIs (#32232)
* feat: added api to get notifications for users

* feat: added api to get count of notifications

* feat: added api to mark notifications as seen

* feat: added index on app_name in notification table

* refactor: updated api view parent and url

* refactor: resolved linter issue
2023-05-23 11:15:35 +05:00
Ned Batchelder
8e7b0c1c73 fix: oscm@edx.org is not the right email for asking about APIs
We get about one email per month from people looking for access to edX
APIs.  Those emails come to the now almost-defunct oscm@edx.org email
address.  I think that's because of these swagger references.

I suppose someone could find this email address on an Open edX
installation, and people would write to it, but I find in practice this
doesn't happen.

Co-authored-by: Kyle McCormick <kyle@tcril.org>
2023-05-22 07:51:45 -07:00
Zainab Amir
fa7953ca24 feat: set traverse pagination to False (#32269)
* For enrollment email task, while getting course uuid and
owner data don't traverse the discovery endpoint.
* Update log message
2023-05-19 19:46:33 +05:00
John Nagro
0fd36f97f3 fix: adding some logging and exceptions to further investigation into discovery load (#32267) 2023-05-18 19:42:19 -04:00
John Nagro
3e1bf1e511 fix: add a reasonable useragent to catalog utils (#32262) 2023-05-18 10:34:14 -04:00
Syed Ali Abbas Zaidi
d7053a6783 fix: eslint autofixable issues (#32181)
* fix: eslint operator-linebreak issue

* fix: eslint quotes issue

* fix: react jsx indent and props issues

* fix: eslint trailing spaces issues

* fix: eslint line around directives issue

* fix: eslint semi rule

* fix: eslint newline per chain rule

* fix: eslint space infix ops rule

* fix: eslint space-in-parens issue

* fix: eslint space before function paren issue

* fix: eslint space before blocks issue

* fix: eslint arrow body style issue

* fix: eslint dot-location issue

* fix: eslint quotes issue

* fix: eslint quote props issue

* fix: eslint operator assignment issue

* fix: eslint new line after import issue

* fix: indent issues

* fix: operator assignment issue

* fix: all autofixable eslint issues

* fix: all react related fixable issues

* fix: autofixable eslint issues

* chore: remove all template literals

* fix: remaining autofixable issues

* fix: failing js test
2023-05-18 11:03:59 +05:00
Michael Roytman
9b644109fe Merge pull request #31741 from raccoongang/fix-upgrade-reminder-email-image
fix: upgrade reminder email image
2023-05-17 10:36:52 -04:00
Gabe Mulley
1fa50b834d feat: pass query string parameters on to the learning MFE for jump_to links (#32180) 2023-05-16 08:32:56 -04:00
SaadYousaf
9a43af848c feat: add api for user notification preferences 2023-05-16 12:09:23 +05:00
Mohammad Ahtasham ul Hassan
acc9dac627 fix: fix manage subs url, add orders and subs url (#32126)
* fix: fix manage subs url, add orders and subs url
2023-05-16 09:35:22 +05:00
Muhammad Adeel Tajamul
d8db64cf2a feat: hide discussion tab when disabled (#32195) 2023-05-16 05:17:06 +05:00
Syed Ali Abbas Zaidi
adf879e8b2 Revert "fix: all auto fixable eslint issues (#31900)" (#32203)
This reverts commit 228180b1ef.
2023-05-09 13:53:54 +05:00
Syed Ali Abbas Zaidi
228180b1ef fix: all auto fixable eslint issues (#31900)
* fix: eslint operator-linebreak issue

* fix: eslint quotes issue

* fix: react jsx indent and props issues

* fix: eslint trailing spaces issues

* fix: eslint line around directives issue

* fix: eslint prefer template issue

* fix: eslint semi rule

* fix: eslint newline per chain rule

* fix: eslint space infix ops rule

* fix: eslint space-in-parens issue

* fix: eslint space before function paren issue

* fix: eslint space before blocks issue

* fix: eslint arrow body style issue

* fix: eslint dot-location issue

* fix: eslint quotes issue

* fix: eslint quote props issue

* fix: eslint operator assignment issue

* fix: eslint new line after import issue

* fix: indent issues

* fix: operator assignment issue
2023-05-09 11:57:15 +05:00