Commit Graph

55916 Commits

Author SHA1 Message Date
David Ormsbee
3a5ec45676 Merge pull request #25118 from edx/ormsbee/exempt-ccx-from-search-indexing
Exclude CCX Courses from search indexing.
2020-09-28 14:32:24 -04:00
Brandon Baker
d6541c6282 Upgrade enterprise to 3.8.22 (#25122) 2020-09-28 14:15:55 -04:00
David Ormsbee
168c5deee8 Exclude CCX Courses from search indexing.
Search indexing is prohibitively slow for large CCX courses, even
taking hours in the case of some particularly large ones with
thousands of blocks. Temporarily disabling this functionality until
it can be made more performant (PSRE-288), so that we're not
blocking the workers from doing more latency-sensitive work.

There is a separate effort to put search indexing in its own set
of workers.
2020-09-28 13:58:13 -04:00
Albert (AJ) St. Aubin
1b298deaad Suppress Hotjar on demographic collection modal 2020-09-28 13:29:21 -04:00
Tim McCormack
62ecf6dde9 Add README explaining normal/codejail requirements split (#25037) 2020-09-28 17:25:11 +00: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
Sameen Fatima
1c1ffbfa00 Merge pull request #25110 from edx/sameen/upgrade-edx-enterprise
upgrade edx-enterprise 3.8.21
2020-09-28 16:21:55 +05:00
sameenfatima78
f618263253 upgrade edx-enterprise 3.8.21 2020-09-28 15:18:44 +05:00
edX Transifex Bot
d74f6d9800 fix(i18n): update translations 2020-09-27 17:34:20 -04:00
Tim McCormack
ae0741d637 Make dependency constraint note terse, and add description 2020-09-25 19:39:51 +00:00
Thomas Tracy
331952550c Modal Bugfixes (#25101)
- fixes an issue with the keyboard not properly opening the multiselect
- Adds missing aria-label
- properly disables "clear all" on multiselect when theres an error
2020-09-25 15:27:14 -04: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
Calen Pennington
a04690d051 Increase the mongo query count by one because edxnotes has been turned back on, and it loads the course from the modulestore as part of get_html 2020-09-25 14:13:30 -04:00
Kyle McCormick
ef845ebc43 Fully qualify remaining edxnotes imports 2020-09-25 14:13:30 -04:00
Kyle McCormick
ddae9e02ab Use fully-qualified edxnotes app name when checking if installed 2020-09-25 14:13:30 -04:00
Troy Sankey
92cf17b95b Merge pull request #25088 from edx/pwnage101/course-id-list-view-bypass-has-access
Bypass calls to has_access() when listing courses
2020-09-25 13:52:59 -04:00
Robert Raposa
326372f518 Merge pull request #25082 from edx/robrap/ARCHBOM-1495-custom-metric-rename
ARCHBOM-1495: replace deprecated RequestMetricsMiddleware
2020-09-25 13:48:33 -04:00
Troy Sankey
dded86d2ae Change subquery to JOIN in list_course_keys API 2020-09-25 12:54:37 -04:00
Robert Raposa
3136a3192c Merge pull request #25096 from edx/robrap/remove-flaky-login-ratelimit-test
remove flaky test_login_ratelimited
2020-09-25 12:14:40 -04:00
Troy Sankey
83a0327b92 Also exclude libraries from the list_course_keys API 2020-09-25 11:53:35 -04:00
Robert Raposa
9c6ee54258 remove flaky test_login_ratelimited 2020-09-25 11:24:47 -04:00
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
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
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
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