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
Jenkins
1a3ddd969f
chore(i18n): update translations
2023-06-25 17:04:48 -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
Nawfal Ahmed
80d151b404
feat: add marketing url to subscription upsell ( #32560 )
2023-06-23 12:54:15 +00:00
github-actions[bot]
ef0fa643f5
feat: Upgrade sphinx and removed edx-sphinx-theme
2023-06-23 16:07:49 +05:00
Muhammad Zubair
a00c21f850
Merge pull request #32528 from openedx/zubair-expire_create_entitlements_command
...
temp: [REV-3574] create management command expire_and_create_entitlements
2023-06-23 15:17:56 +05: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
Alexander J Sheehan
b3fd3c9562
Merge pull request #32551 from openedx/asheehan-edx/bumping-enterprise-version-3.67.2
...
chore: bumping enterprise package version to 3.67.2
2023-06-22 16:16:26 -04:00
Alexander J Sheehan
e58af88ba1
chore: bumping enterprise package version to 3.67.2
2023-06-22 19:55:24 +00:00
Jenkins
22989f4fe8
chore(i18n): update translations
2023-06-22 12:34:48 -04:00
Alexander J Sheehan
61982ca66b
Merge pull request #32548 from openedx/asheehan-edx/bumping-enterprise-version-3.67.1
...
chore: bumping enterprise package version to 3.67.1
2023-06-22 12:33:44 -04:00
Alexander J Sheehan
7ccdaaced8
chore: bumping enterprise package version to 3.67.1
2023-06-22 16:12:32 +00:00
Nguyen Tuan Anh
6e8328b01d
test: change modulestore/tests/test_mongo.py to use ddt ( #31956 )
...
The file modulestore/tests/test_mongo.py contained some deprecated tests using
old-style yield, this has since been deprecated by pytest.
The two outdated tests include:
- test_write, which was refactored to use ddt.data
- test_delete, which was refactored to two smaller tests
(test_delete_key_error, test_delete_key_default)
2023-06-22 15:43:11 +02:00
Jody Bailey
b559a61c14
fix: added response for austin masters program in CPR views ( #32544 )
...
* fix: added response for austin masters program in CPR views
* test: fixed test names and docstrings
* chore: pylint check fixes
2023-06-22 14:21:25 +02:00
Awais Qureshi
92cba6c71c
fix: updating bucket to bucket_name. These are deprecated. ( #32533 )
...
* fix: updating bucket to bucket_name. These are deprecated.
https://github.com/jschneier/django-storages/blob/master/CHANGELOG.rst#17-2018-09-03
2023-06-22 16:14:22 +05:00
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
Jenkins
fa93f5c3a2
chore: geoip2: update maxmind geolite country database
2023-06-21 16:58:57 -04:00
Alejandro Matta
fd08f26e5d
feat: change wording ccpa footer link ( #32303 )
...
Co-authored-by: Alejandro Matta <amatta2u@gmail.com >
2023-06-21 16:12:42 -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
Kyle McCormick
a903230a74
revert build: common/static/css/xmodule -> xmodule/static/css ( #32291 )" ( #32526 )
...
This reverts commit 5671dab975 .
The original PR is causing styling issues due to broken CSS references
on studio.edx.org.
See https://github.com/openedx/edx-platform/issues/32292 for follow-up.
2023-06-21 14:23:36 -04:00
Piotr Surowiec
0137f21627
feat: move XQueueService from the runtime to ProblemBlock
...
The XQueueService is used only by the ProblemBlock. Therefore, we are moving
it out of the runtime, and into the ProblemBlock, where it's initialized only
when it's going to be used.
2023-06-21 20:08:31 +02:00
ihor-romaniuk
9e0b59fe87
fix: simplify code by using common method
2023-06-21 13:38:41 -04:00
ihor-romaniuk
efe40657b4
fix: save scroll position on exit from video xblock fullscreen mode
2023-06-21 13:38:41 -04:00
Jenkins
1a58d864e0
chore(i18n): update translations
2023-06-21 13:35:27 -04:00
Nawfal Ahmed
28ebe5221f
fix: fix subscription timezone logic ( #32536 )
2023-06-21 18:10:20 +05:00
Mohammad Ahtasham ul Hassan
597a1f1837
fix: unrestrict enterprise learner from B2C subscriptions ( #32534 )
2023-06-21 15:56:35 +05:00