Commit Graph

58450 Commits

Author SHA1 Message Date
Troy Sankey
e3cd6d55c4 Bypass calls to has_access() when listing courses
When listing courses for which a user has "staff" level access, bypass
calls to has_access() and use a hopefully more performant and simpler
access pattern that uses only a single ORM query and far less processing
per course.

Caution: this short-circuit implementation does not handle org-level
access grants.
2020-09-25 10:44:03 -04:00
Robert Raposa
04560b5ec6 replace deprecated RequestMetricsMiddleware
Replace deprecated RequestMetricsMiddleware with
renamed version RequestCustomAttributesMiddleware.

ARCHBOM-1495
2020-09-25 09:37:45 -04:00
Justin Hynes
133e616d4d Merge pull request #25083 from edx/jhynes/microba-595_work_status_default
MICROBA-595 | Add default option to work status choices
2020-09-25 09:35:03 -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
edX requirements bot
a96a23ef94 Updating Python Requirements (#25090) 2020-09-25 13:40:07 +05:00
Farhaan Bukhsh
8018dbed27 Document the COUNTRIES_FIRST setting in common.py
This change introduces a way to help filling form, with the constant we
can specify the order of the countries that should come first. This will
reduce the chance of commiting a mistake while filling form.

Signed-off-by: Farhaan Bukhsh <farhaan@opencraft.com>
2020-09-25 10:58:50 +05:30
Ned Batchelder
3ee5a3dd11 Don't use a login next-url of /logout
If /logout is the current page, redirecting back there after logging in
makes the whole exercise pointless.
2020-09-24 16:00:03 -04:00
Justin Hynes
055595e39e MICROBA-595 | Add default option to work status choices
[MICROBA-595]
- Add default option to work status choices
2020-09-24 15:30:35 -04:00
Kyle McCormick
31a4b761ad Lower 'Mismatch between the children...' message to DEBUG level (#25065)
This message comes from the content library block transformer,
and has been filling up our logs at a rate of 250k instances/hr.

Since we don't need to see this log message in production any more,
we are lowering it to the DEBUG level.
2020-09-24 09:13:48 -04:00
Aarif
30acfdc904 Updated the Dockerfile to switch to python 3.8 2020-09-24 17:24:21 +05:00
Awais Qureshi
d2f2a2918e Merge pull request #25071 from edx/jenkins/upgrade-python-requirements-dc230bc
Python Requirements Update
2020-09-24 16:10:26 +05:00
Nadeem Shahzad
813763c766 Merge pull request #25072 from edx/nadeem/psre-248
update db dump github action (PSRE-248)
2020-09-24 14:15:34 +05: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
nadeemshahzad
79077e26a4 update db dump github action 2020-09-24 06:57:39 +00:00
edX Transifex Bot
eccdda53ae geoip2: update maxmind geolite country database 2020-09-24 11:51:35 +05:00
edX requirements bot
66c0ff5d8f Updating Python Requirements 2020-09-24 00:55:19 -04:00
Troy Sankey
dc230bc6fc Merge pull request #25064 from edx/pwnage101/more-monitoring-for-course-id-list-view-2
Add even more telemetry to the CourseIdListView
2020-09-23 15:59:40 -04:00
Binod Pant
4f1fdb3490 upgrade edx-enterprise 3.8.18 (#25067) 2020-09-23 15:58:38 -04:00
Thomas Tracy
132898b991 Trap focus in modal and other a11y work (#25063) 2020-09-23 14:51:08 -04:00
Troy Sankey
7d3631a79b Add even more telemetry to the CourseIdListView
This time, we narrow our search down to paginate_queryset().
2020-09-23 14:12:53 -04:00
Usama Sadiq
05417b5f6e Merge pull request #25052 from edx/pin-importlib
Pin importlib-metadata to version 1.7.0
2020-09-23 20:50:04 +05:00
Calen Pennington
9c4f746d8f Get rid of unused NoOpMigrationModules 2020-09-23 10:05:37 -04: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
2a157ae854 Lower query counts 2020-09-23 10:05:37 -04:00
Calen Pennington
88d16a8186 Improve the logging of tests that fail because of a changed number of mongodb calls 2020-09-23 10:05:37 -04:00
Calen Pennington
0aa2edbc37 Clean up some radically dirty global state pollition to fix a flaky test 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
Calen Pennington
211bd3beb5 Run sys_path_hacks/un_sys_path.sh lms 2020-09-23 10:05:37 -04:00
Calen Pennington
3ebba52cf7 Add the script used to deprecate sys.path hacks 2020-09-23 10:05:37 -04:00
Calen Pennington
7cbfc8de40 Add an ADR capturing sys.path removal justifications 2020-09-23 10:05:37 -04:00
jawad khan
fc03da2b23 Added Apple sign-in button branding (#25015)
* Added Apple sign-in button branding

LEARNER-7926
2020-09-23 18:47:25 +05:00
Troy Sankey
829daf0e84 Merge pull request #25047 from edx/pwnage101/more-monitoring-for-course-id-list-view
Add more monitoring to the CourseIdListView
2020-09-23 09:37:58 -04:00
Tim McCormack
89032577ae Fix existing typo in line I touched 2020-09-23 13:18:20 +00:00
Zulqarnain
c9ab017ab3 pin importlib metadata 2020-09-23 17:53:24 +05:00
Nadeem Shahzad
9fd0cfbdc2 Merge pull request #25051 from edx/nadeem/PSRE248
add wait to github action to complete db migration (PSRE-248)
2020-09-23 17:48:24 +05:00
nadeemshahzad
0389859d30 add wait to github action to complete db migration 2020-09-23 12:06:41 +00:00
Nimisha Asthagiri
8739eac924 Merge pull request #24207 from shadinaif/shadinaif/instructor_dashboard_js
Resolve errors in browser console caused by Instructor Dashboard
2020-09-23 07:04:57 -04:00
Shadi Naif
1502a9c16c (Problem Input) should always be LTR (#24208) 2020-09-23 07:01:30 -04:00
Nadeem Shahzad
45348f64ac Merge pull request #25017 from edx/nadeem/PSRE-248
add github action for edxapp db dump (PSRE-248)
2020-09-23 15:41:50 +05:00
nadeemshahzad
331e2cd480 add github action for edxapp db dump 2020-09-23 04:44:08 +00:00
Troy Sankey
23b76a60b6 Add more monitoring to the CourseIdList view 2020-09-22 20:15:34 -04: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
Binod Pant
126f777c64 upgrade to enterprise 3.8.16 (#25046) 2020-09-22 14:30:38 -04: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
Muhammad Soban Javed
eada6326c1 Merge pull request #24916 from edx/iamsobanjaved/BOM-2013
Replace django-celery with django-celery-results
2020-09-22 17:09:23 +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
Usama Sadiq
a90b66546d Merge pull request #25035 from edx/testeng/bokchoy_auto_cache_update_6497e9076c0e1d7a95ac5a7f696a18d9592ab557
Bokchoy Testing DB Cache update
2020-09-22 12:10:18 +05:00