Commit Graph

21747 Commits

Author SHA1 Message Date
Jansen Kantor
fb626cd072 update docs (#25248)
* update docs

* obscure urls
2020-10-05 17:28:48 -04:00
Ned Batchelder
17bc82c11a Merge pull request #25086 from edx/nedbat/logout-login
Don't use "/logout" as the next-url for login
2020-10-05 17:13:29 -04:00
stvn
9a33fdff16 Merge PR #24264 open-craft/kshitij/bb-2595/tnl-7209/anonymous-apis
* Commits:
  Allow anonymous access for course blocks API
2020-10-05 10:25:57 -07:00
binodpant
ec438cdd28 add missing app blackboard 2020-10-05 11:54:41 -04:00
Thomas Tracy
6d88ad96cb Ttracy/mb 618 modal fast follow (#25217)
* Fix ref on multiselect button to prevent if from staying open
2020-10-05 10:05:41 -04:00
edX Transifex Bot
b7cd41f100 fix(i18n): update translations 2020-10-04 17:40:16 -04:00
Kshitij Sobti
570d02a858 Allow anonymous access for course blocks API
Opens the course blocks API to public access, and allows anonymous users to
use the API to fetch data about public courses. Anonymous users need to
explicitly pass an empty username parameter to get the block data that is
visible to the public.
2020-10-03 02:07:25 +05:30
Dillon Dumesnil
a96079f2d1 AA-196: Course Celebration for passing Verified Learners 2020-10-01 16:53:25 -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
Matthew Piatetsky
95811992ca [REV-1508] Add functionality to limit timed exam access behind waffle flag (#25054)
Re-applied bugfix #24214, but behind a waffle flag. The change gates timed exams for audit learners. We would like to limit access to timed exams to verified learners. However, some of the instructors would like to make their content free for all users, including graded content/timed exams (hence the Feature-Based Enrollment "FBE" exemption). As a result, we will be rolling the gated timed exams functionality out behind a waffle flag now, add the FBE exemption when we figure out how, and gradually turn the waffle flag on for everyone.
2020-10-01 09:33:12 -04:00
Thomas Tracy
f605ce3763 Fix aria-hidden on info icon (#25167)
* Fix aria-hidden on info icon

* caps
2020-09-30 12:26:56 -04:00
Calen Pennington
51c526ea83 Per the documentation, name should be the full python path to the module.
https://docs.djangoproject.com/en/2.2/ref/applications/#django.apps.AppConfig.name

These packages were mis-named after the sys.path fixes.
2020-09-30 11:09:19 -04:00
David Ormsbee
38080e0e85 Merge pull request #24991 from open-craft/farhaan/upstream-bb-2924-registration-form-changes
[BB-2924] Added a constant to help modify countries list in drop-down
2020-09-30 09:41:36 -04:00
adeel khan
a9380e2fc9 Merge pull request #25137 from edx/adeel/van_78_program_dashboard_pii_suppression
Pii suppression via HotJar
2020-09-30 13:00:00 +05:00
Adeel Khan
0f98910df3 Pii suppression via HotJar
VAN-78
2020-09-30 10:36:26 +05:00
Diana Huang
657da20c6e DEPR-43 - Remove JS that refers to shoppingcart receipt page. (#24890)
https://openedx.atlassian.net/browse/DEPR-43

Co-authored-by: Jeremy Bowman <jbowman@edx.org>
2020-09-29 16:08:42 -04:00
Thomas Tracy
bf0de81c57 Ttracy/demographics bugs 19 20 (#25148)
* Focus first input when loading a wizard page

* Add aria-hidden to info icon:
2020-09-29 13:37:19 -04:00
Justin Hynes
77d63c57f0 Merge pull request #25138 from edx/jhynes/MB-600_demographics-link-new-tab
MB-600 | Open demographics modal link in new tab
2020-09-29 10:21:04 -04:00
Thomas Tracy
b1ed288915 Fix form auto-filling "prefer not to respond" (#25126)
An issue with 2 options having the same react child key. This makes the
keys more unique.
2020-09-29 09:42:13 -04:00
Justin Hynes
66821bb1e1 MB-600 | Open demographics modal link in new tab
[MB-600]
- Update demographics modal to open embedded link in new tab
2020-09-29 09:33:21 -04:00
Justin Hynes
bac8f3aebc Merge pull request #25127 from edx/jhynes/microba-596_fix-spacing
MICROBA-596 | Adjust style of MultiSelect dropdown in demographics modal
2020-09-29 07:43:52 -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
Justin Hynes
e200215421 MICROBA-596 | Adjust style of MultiSelect dropdown in demographics modal
[MICROBA-596]
- Add space between checkbox and label
- Adjust spacing between end of MultiSelect dropdown choices and next question
2020-09-28 16:03:39 -04:00
Albert (AJ) St. Aubin
1b298deaad Suppress Hotjar on demographic collection modal 2020-09-28 13:29:21 -04: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
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
edX Transifex Bot
d74f6d9800 fix(i18n): update translations 2020-09-27 17:34:20 -04:00
Josh McLaughlin
73fd2ed849 Update default for override to avoid setting duplication 2020-09-25 21:50:11 -07: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
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
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
Troy Sankey
dded86d2ae Change subquery to JOIN in list_course_keys API 2020-09-25 12:54:37 -04:00
Troy Sankey
83a0327b92 Also exclude libraries from the list_course_keys API 2020-09-25 11:53:35 -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
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
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
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
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
Calen Pennington
9c4f746d8f Get rid of unused NoOpMigrationModules 2020-09-23 10:05:37 -04:00