Commit Graph

5629 Commits

Author SHA1 Message Date
Calen Pennington
4456269508 Merge pull request #25305 from cpennington/always-reference-task-packages-absolutely
Always import task packages by absolute paths
2020-10-08 14:41:00 -04:00
Calen Pennington
2714da86a4 Always import task packages by absolute paths
This follows the recommendation in the Celery documentation so as to
not confuse automatic task name generation.

Docs: https://docs.celeryproject.org/en/stable/userguide/tasks.html#automatic-naming-and-relative-imports
2020-10-08 14:10:17 -04:00
Hammad Ahmad Waqas
fc1d7d2318 Merge pull request #25228 from edx/hammad/ENT-3523
ENT-3523 | Handle Client Error for the API called in refund_order_voucher signal.
2020-10-07 12:29:42 +05:00
HammadAhmadWaqas
215d004930 Handle Client Error for the API called in refund_order_voucher signal. 2020-10-07 11:28:26 +05:00
Dillon Dumesnil
4c7b9bafd9 Merge pull request #25265 from edx/ddumesnil/small-fix
Check if effective_user is anonymous before trying to get grade
2020-10-06 10:51:50 -07:00
Dillon Dumesnil
fa2277bb6b Check if effective_user is anonymous before trying to get grade
I saw locally that it caused an error if you hit the endpoint directly
so just being defensive.
2020-10-06 12:49:03 -04:00
Awais Jibran
dcdac9ddc1 Merge pull request #24975 from edx/aj/password-reset-confirm-mail
Sends Post-password-change acknowledgment email
2020-10-05 22:27:25 +05:00
Fox Piacenti
73adc729d9 Add a license field to libraries. (#25007) 2020-10-05 11:45:36 -04:00
Awais Jibran
6b1506c3ff Sends Post-password-change acknowledgement email
PROD-421
2020-10-05 17:01:19 +05:00
DawoudSheraz
ad748d98eb drop video pipeline integration model with migration 2020-10-05 10:45:52 +05:00
edx-pipeline-bot
fe550fbd5f Merge pull request #25214 from edx/private_to_public_6f254aa
Mergeback PR from private to public.
2020-10-02 23:05:56 +05:00
Chris Pappas
ef7c3c390e Implementing support for multiple credit provider keys (#25036)
* Implementing support for multiple credit provider keys

* Plan on storing keys as list and not dict

* Adding tests for serializer and signature code

* adding more tests

* tweaking a comment

* Quality fixes

* Breaking out some login into a helper function
2020-10-02 13:41:45 -04:00
Syed Muhammad Dawoud Sheraz Ali
6f254aaf84 Merge pull request #205 from edx/dsheraz/PROD-217
fix password reset token leakage in referrer
2020-10-02 22:17:37 +05:00
Dillon Dumesnil
3d3657f792 Merge pull request #24864 from edx/ndalfonso/AA-196-course-celebration-cert
AA-196 course celebration cert.
2020-10-02 06:37:31 -07:00
DawoudSheraz
5ea6b8d175 remove veda integration model code 2020-10-02 10:16:45 +05:00
Dillon Dumesnil
a96079f2d1 AA-196: Course Celebration for passing Verified Learners 2020-10-01 16:53:25 -04:00
Nicholas D'Alfonso
91282b8af0 AA-196 course celebration cert 2020-10-01 12:09:24 -04:00
Robert Raposa
f65bf0ed9d Merge pull request #24794 from regisb/regisb/settings-docs
[BD-21] Document settings with annotations
2020-10-01 11:53:39 -04:00
Albert (AJ) St. Aubin
200b423412 Added search to User Demographics Admin page 2020-10-01 08:15:55 -04:00
Syed Muhammad Dawoud Sheraz Ali
1c275b74af Merge pull request #25091 from edx/dsheraz/PROD-2152
remove VEDA reference from platform
2020-10-01 10:34:06 +05:00
David Ormsbee
9281efc4b9 Merge pull request #25089 from open-craft/blockstore-i18n
LX-1578 Enable the i18n service for the Blockstore service
2020-09-30 09:43:26 -04:00
Waheed Ahmed
af958ada75 Add new endpoint to validate password reset token.
Added a new endpoint to validate password reset token for
logistration MFE.

VAN-61
2020-09-30 16:12:33 +05:00
Alex Dusenbery
3292104470 enterprise_customer_uuid_for_request() should not return a __CACHE_MISS__. 2020-09-29 12:03:33 -04:00
Nimisha Asthagiri
bc1d1bc2c5 Merge pull request #23731 from open-craft/alanoe/move_celery_check_to_high_priority_queue_upstream
Move Celery check task to the high priority queue
2020-09-29 06:37:06 -04:00
uzairr
b1d321374f Refactor third party auth msg generation 2020-09-29 06:52:02 +05:00
Usman Khalid
571b1f4d17 Enable the i18n service for the Blockstore service. 2020-09-28 09:34:36 -07:00
Michael Terry
6f69fd7dc2 Merge pull request #25105 from edx/mikix/public-outline
AA-253: don't send outline if not enrolled
2020-09-28 11:46:22 -04:00
Tim McCormack
ec65018306 Rename more "custom metric" references to "custom attribute" (#25018)
* Rename CookieMetricsMiddleware to CookingMonitoringMiddleware

This fixes a misuse of New Relic terminology. Here we are in fact using
custom attributes; custom metrics are a different thing that we may start
using in the future.

* Rename metric -> attribute in courseware New Relic code

* Fix my weird typo

* Replace `s/metric/attribute/g` in waffle_utils and in caller

This changes:

- `WAFFLE_FLAG_CUSTOM_METRICS`
- `WaffleFlagNamespace._set_waffle_flag_metric`
- `_get_waffle_flag_custom_metrics_set` and some other unreferenced
  internals

* Avoid direct use of newrelic (while we're in there)

* Fix existing typo in line I touched

* A few other "metric" names in files touched in previous renaming PRs

* Make dependency constraint note terse, and add description
2020-09-28 11:35:44 -04:00
Fox Piacenti
2c15bbba2d Add type field/constraint to to libraries v2. (#24861) 2020-09-28 10:58:27 -04:00
Michael Terry
100018081d AA-253: don't send outline if not enrolled
This is for the learning MFE outline endpoint.

Also clean up some related permissions issues.
2020-09-28 10:45:07 -04:00
Tim McCormack
5b331b2d4d Merge branch 'master' into timmc/misc-metric-attribute
# Conflicts:
#	cms/envs/common.py
#	lms/envs/common.py
2020-09-28 13:56:08 +00:00
Tim McCormack
f29e418264 Revert "Revert "ARCHBOM-1494: Refer to custom attributes, not metrics, especially with edx-django-utils (#25010)" (#25025)" (#25055)
This reverts commit 986a448d9e.
2020-09-28 13:53:57 +00:00
Régis Behmo
e555d8a571 [BD-21] Document settings with annotations
We introduce the documentation of django settings via code annotations.
This will allow us to produce a human-readable documentatio of all Open
edX settings.
2020-09-28 12:44:36 +02:00
DawoudSheraz
6181edfa4c fix password reset token leakage in referrer 2020-09-28 10:20:17 +05:00
DawoudSheraz
b80fefdbdd remove VEDA reference from platform 2020-09-28 10:14:32 +05:00
Tim McCormack
705ad07524 A few other "metric" names in files touched in previous renaming PRs 2020-09-25 19:11:30 +00:00
Robert Raposa
1cc4ae2080 ARCHBOM-1339: add ADRs for extracting waffle_utils (#24798)
- Add ADR for the extraction of waffle_utils to
edx-toggles to reuse across IDAs.
- Add ADR for temporarily leaving CourseWaffleFlag
in edx-platform in order to simplify extraction.
- Add ADR for simplifying the interface for
WaffleFlag and WaffleSwitch by removing the
Namespace classes.

ARCHBOM-1339

Co-authored-by: Feanil Patel <feanil@edx.org>
2020-09-25 15:02:46 -04:00
Kyle McCormick
ef845ebc43 Fully qualify remaining edxnotes imports 2020-09-25 14:13:30 -04:00
Robert Raposa
9c6ee54258 remove flaky test_login_ratelimited 2020-09-25 11:24:47 -04:00
Fox Piacenti
7bc10e0464 Adjustments to library user access API endpoints required by frontend needs. (#24919) 2020-09-25 09:33:32 -04:00
Alan Evangelista
b9559fc934 Move Celery check task to the high priority queue
Currently, LMS uses 3 Celery workers: lms_default_1, lms_high_1 and
lms_high_mem_1. Each Celery worker sends messages to a single queue:
edx.core.default, edx.core.high and edx.core.high_mem, respectively.
The number of child processes per Celery worker is set to 1. Due to
this configuration, any task in a queue blocks all other tasks.

Currently, the Celery check task submitted by the /heartbeat?extended
LMS HTTP API endpoint runs in the default queue. When some slow task
(eg course grades creation) is sent to the default queue, it will
block the Celery check task, which will expire and the heartbeat endpoint
will fail. This patch moves the task to another queue which has
only shorter tasks and in which this problem will not occur.

Use a Django setting for the Celery check task routing key so that
it can be overriden by individual OpenEDX instances via JSON
env files.
2020-09-24 01:27:08 -07:00
Calen Pennington
dc884c2166 Fix a test that relied on incorrect mocking.
We fully hide authorization denied blocks from the mobile app (until the
latest version of the mobile app rolls out).
2020-09-23 10:05:37 -04:00
Calen Pennington
4a120a9e26 Fix failures caused by removing lms/djangoapps from sys.path 2020-09-23 10:05:37 -04:00
Tim McCormack
89032577ae Fix existing typo in line I touched 2020-09-23 13:18:20 +00:00
Tim McCormack
92135ad567 Avoid direct use of newrelic (while we're in there) 2020-09-22 23:25:50 +00:00
Tim McCormack
c71c9d4984 Replace s/metric/attribute/g in waffle_utils and in caller
This changes:

- `WAFFLE_FLAG_CUSTOM_METRICS`
- `WaffleFlagNamespace._set_waffle_flag_metric`
- `_get_waffle_flag_custom_metrics_set` and some other unreferenced
  internals
2020-09-22 23:19:23 +00:00
Tim McCormack
0f33afc20a Fix my weird typo 2020-09-22 22:59:28 +00:00
Alex Dusenbery
de277ce46b Prevent an unbound local variable exception in enterprise_support.api. Add more unit tests for same. 2020-09-22 11:15:17 -04:00
Hammad Ahmad Waqas
3b23a9b227 Merge pull request #25003 from edx/hammad/ENT-3337
catch signal UNENROLL_DONE signal and call /api/v2/enterprise/coupons…
2020-09-22 19:51:35 +05:00
Soban Javed
b7ca6d5619 Upgrade celery to 4.4.7
Replace django-celery with django-celery-results
Upgrade redis to latest
2020-09-22 16:20:45 +05:00