Commit Graph

19629 Commits

Author SHA1 Message Date
Shahbaz Shabbir
f6071490e8 feat: add a command to fetch unsubscribed emails from Braze 2023-07-13 18:13:14 +05:00
Mohammad Ahtasham ul Hassan
7fe5229bbb feat: Add new entitlement expiration endpoint (#32677)
* feat: add new entitlements expiration endpoint
2023-07-13 13:38:20 +05:00
Jenkins
5379daf83e chore: geoip2: update maxmind geolite country database 2023-07-12 17:08:57 -04:00
leangseu-edx
2025a3b55f fix: MathJax equations flickering (#32696)
* Revert "Revert "fix: mathjax resize on sindow resize (#32606)""

This reverts commit 9dac65a35a.

* fix: mathjax wrap overflow and flickering
2023-07-11 11:19:44 -04:00
leangseu-edx
9dac65a35a Revert "fix: mathjax resize on sindow resize (#32606)"
This reverts commit a68fd49103.
2023-07-07 15:20:47 -04:00
John Nagro
74e3bb9fd4 fix: correct bug in sapsf country to code mapping (#32675) 2023-07-06 20:28:38 +00:00
Ahtisham Shahid
b477a20ad2 Added notifications for discussions events (#32432)
* feat: added notifications for discussions app

* feat: added unit tests for handler

* feat: updated openedx-events package

* fix: updated notification creation logic and tests

* refactor: updated openedx-event version and event name

* refactor: moved logic to separate methods
2023-07-06 13:33:20 +05:00
Jenkins
5ccdd2126f chore: geoip2: update maxmind geolite country database 2023-07-05 16:59:02 -04:00
Ben Warzeski
a68fd49103 fix: mathjax resize on sindow resize (#32606)
* fix: mathjax resize on sindow resize

* fix: add resize for mathjax in wiki and cms
2023-07-05 14:49:03 +00:00
John Nagro
6d5dcdf77a fix: improve username generation (#32613) 2023-06-30 09:47:02 -04:00
Jenkins
7ef20f0b91 chore: geoip2: update maxmind geolite country database 2023-06-28 16:58:53 -04:00
Phillip Shiu
8072c3e9ef temp: fix entitlements_to_expire should be capped at entitlements_count (#32579) 2023-06-26 16:44:18 +00:00
Muhammad Zubair
2d0a8b44b7 feat: fixed failing checks related to linting and tests 2023-06-26 19:46:25 +05:00
Muhammad Zubair
3f84b14b92 feat: removed unnecessary ignore-liting message 2023-06-26 18:59:25 +05:00
Muhammad Zubair
4519ca405e chore: added standard logging and removed celery logging 2023-06-26 18:47:17 +05:00
Muhammad Zubair
87953991e0 feat: removed extra blank line 2023-06-26 15:40:09 +05:00
Phillip Shiu
e115cd9873 test: for entitlements tasks.expire_and_create_entitlements 2023-06-25 22:48:21 -04:00
Phillip Shiu
82338bd375 fix: SyntaxError: use CourseEntitlement.objects, not .object 2023-06-25 22:12:10 -04:00
Phillip Shiu
2af47c7128 temp: remove celery ignore_result=True
We are lacking information in Flower about our Celery tasks that are
marked as successful but are actually failing.

Attempt to remove ignore_result=True to see if this is suppressing
valuable debugging information.
2023-06-25 22:11:08 -04:00
Phillip Shiu
fb9bf9325e temp: fix use len(list) not list.count() in expire_and_create_entitlements (#32565) 2023-06-23 21:05:49 +00:00
Phillip Shiu
886227c88b temp: fix EncodeError for username in expire_and_create_entitlements (#32564)
On running the management command, we get the folowing error:

    kombu.exceptions.EncodeError: Object of type User is not JSON serializable

Pass a string of the username instead in the parameters of the tasks
created by the expire_and_create_entitlements management command.
2023-06-23 18:08:51 +00:00
Phillip Shiu
5996ae098b temp: fix EncodeError & correct EntitlementSupportDetail action name in expire_and_create_entitlements (#32562)
* fix: EntitlementSupportDetail.action is EXPIRE, not EXPIRED

* fix: pass list of entitlement ids, not QuerySet subset for Celery json parser

On running the management command, we get the folowing error:

    kombu.exceptions.EncodeError: Object of type CourseEntitlement is not JSON serializable

Pass a list of ints instead of a QuerySet object in the parameters of
the tasks created by the expire_and_create_entitlements management
command.
2023-06-23 14:31:12 +00:00
Phillip Shiu
5dfe83d154 chore: quality 2023-06-22 22:52:10 -04:00
Phillip Shiu
eee3db8820 perf: run select count(*) only once for entitlements.count()
Not much of an optimization, but might shave a couple seconds if the
number of entitlements on production are large.

Django will use the _result_cache if the QuerySet has already been
retrieved:

107865780a/django/db/models/query.py (L597-L598)
2023-06-22 22:42:49 -04:00
Phillip Shiu
d4ae7bfa06 fix: use newly created (not expired) entitlement id in logs and support records 2023-06-22 22:37:45 -04:00
Phillip Shiu
c973059ae7 feat: add start/end/length log information at beginning of each expire_and_create_entitlements task 2023-06-22 22:37:17 -04:00
Phillip Shiu
9dfa5563f5 feat: remove hardcodes of exceptional course uuids and username for support notes
The values of these may vary across our environments, so it may be
useful for testing to be able to set these from the management command
arguments.
2023-06-22 22:10:59 -04:00
Phillip Shiu
0ca47c7119 fix: use get_user_model() for E5102 imported-auth-user
Don't import django.contrib.auth.models.User model. Use
django.contrib.auth.get_user_model() instead.

36ea72b37c/pylint_django/checkers/auth_user.py (L18-L22)
2023-06-22 18:52:20 -04:00
Muhammad Zubair
43ea99e3a6 feat: skipped linting check 2023-06-22 18:52:20 -04:00
Muhammad Zubair
3e9038efcc feat: removed extra comma 2023-06-22 18:52:20 -04:00
Muhammad Zubair
ee968a1431 feat: fixed linting issues 2023-06-22 18:52:20 -04:00
Muhammad Zubair
825d161d1a feat: fixeid linting issues 2023-06-22 18:52:20 -04:00
Muhammad Zubair
1484750c8a feat: updated query to avoid enntitlements with with course run. 2023-06-22 18:52:20 -04:00
Muhammad Zubair
f674e35d1b feat: fixed linting issues 2023-06-22 18:52:20 -04:00
Muhammad Zubair
aefdc750a6 feat: incorporated feedback comments 2023-06-22 18:52:20 -04:00
Muhammad Zubair
3133628007 feat: incorporated feedback comments 2023-06-22 18:52:20 -04:00
Muhammad Zubair
a9afb4fb5b feat: added user in support_details object 2023-06-22 18:52:20 -04:00
Muhammad Zubair
a0d3c21295 feat: incorporated feedback comments 2023-06-22 18:52:20 -04:00
Muhammad Zubair
8e2612358d feat: resolved linting issues 2023-06-22 18:52:20 -04:00
Muhammad Zubair
33bc48b8de feat: resolved linting issues 2023-06-22 18:52:20 -04:00
Muhammad Zubair
2887e8967e feat: resolved linting issues 2023-06-22 18:52:20 -04:00
Muhammad Zubair
b88a34d3f5 feat: update logic and modified code 2023-06-22 18:52:20 -04:00
Muhammad Zubair
4d4f1cd1b5 chore: added a django management command to expire old entitlements and create new one against them 2023-06-22 18:52:20 -04:00
Jenkins
fa93f5c3a2 chore: geoip2: update maxmind geolite country database 2023-06-21 16:58:57 -04: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
Moeez Zahid
9a8f08f972 fix: Handle invalid_client error for Apple migration (#32531) 2023-06-21 14:20:39 +05:00
Awais Qureshi
2a1cf5f0d0 chore: upgrading djangorestframework. (#32487)
* chore: upgrading djangorestframework.
2023-06-20 16:03:34 +05:00
Mohammad Ahtasham ul Hassan
4048bf9fb4 feat: fix throttling for subscription service user (#32473)
* feat: add subscriptions_worker to ent access list

* fix: add throttle for entitlement APIS
2023-06-20 14:58:35 +05:00
Moeez Zahid
2d1a6e27fc refactor: Add exception handling to Apple migration commands (#32500)
* refactor: Add exception handling to Apple migration commands

* refactor: Remove extra import
2023-06-19 14:07:24 +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