Commit Graph

22344 Commits

Author SHA1 Message Date
usamasadiq
dc36d0bfe8 Ran pyupgrade on lms/djangoapps
Ran pyupgrade on lms/djangoapps/mailing
Ran pyupgrade on lms/djangoapps/mobile_api
Ran pyupgrade on lms/djangoapps/monitoring
2021-02-19 17:47:37 +05:00
Aarif
7d5f9b2016 replaced unittest assertions pytest assertions (#26553) 2021-02-19 16:03:53 +05:00
Aarif
944df92787 replaced unittest assertions pytest assertions (#26548) 2021-02-19 15:58:45 +05:00
Aarif
87fbbc7f3b replaced unittest assertions pytest assertions (#26547) 2021-02-19 12:36:28 +05:00
Aarif
a332aac1f6 replaced unittest assertions pytest assertions (#26541) 2021-02-19 12:27:11 +05:00
Aarif
a8b9733654 replaced unittest assertions pytest assertions (#26544) 2021-02-19 11:59:44 +05:00
Aarif
0112339b20 replaced unittest assertions pytest assertions (#26543) 2021-02-19 11:58:27 +05:00
Sarina Canelake
ac999ec1fc Merge pull request #25984 from naeem91/patch-1
Fix PY3 incompatible division
2021-02-18 14:57:38 -05:00
Christie Rice
6b0bc6389a MICROBA-918 Update allowlist check to handle more signals (#26606) 2021-02-18 10:48:53 -05:00
Aarif
d2a147bb47 replaced unittest assertions pytest assertions (#26542) 2021-02-18 19:14:41 +05:00
Aarif
f35ff6a1eb replaced unittest assertions pytest assertions (#26540) 2021-02-18 19:13:47 +05:00
Michael Terry
139a0f6ee1 Merge pull request #26290 from edx/mikix/effort-estimation
AA-614: Add initial effort estimation block transformer
2021-02-18 08:52:55 -05:00
Michael Terry
1b9119859e AA-614: Add initial effort estimation block transformer 2021-02-18 08:31:19 -05:00
Aarif
1ead9f684c replaced unittest assertions pytest assertions (#26546) 2021-02-18 18:01:41 +05:00
Aarif
906b6f7fed replaced unittest assertions pytest assertions (19) (#26545) 2021-02-18 18:00:30 +05:00
David Ormsbee
843668a011 Revert "feat: 403 logging for exchange_access_token (#26511)" (#26608)
This reverts commit 0517603b6d.

This was masking a LabXchange error by blowing up with:
"Stack trace builtins:AttributeError: 'NoneType' object has no attribute 'status_code'"
2021-02-17 17:08:44 -05:00
Felipe Montoya
6cb97b13ac Merge pull request #26455 from jramnai/tsd-course_search_annotations
[TSD] add annotations for courseware and dashboard search feature flag
2021-02-17 10:02:48 -05:00
Matt Tuchfarber
6efc6e1e6a Merge pull request #26586 from edx/tuchfarber/allow_db_args
feat: Allow cert allowlist mgmt cmd to use db args
2021-02-16 15:45:58 -05:00
Ali Akbar
8ae7ae81c5 Merge pull request #26486 from edx/aakbar/disable-xsslint
Disable xsslint
2021-02-17 01:25:45 +05:00
Matt Tuchfarber
0374c3f62b Update help text 2021-02-16 15:16:52 -05:00
Matt Tuchfarber
d380d85f5c feat: Allow cert allowlist mgmt cmd to use db args
The management command to generate certificates for users on a course's
allowlist (formerly whitelist) now allows for database arguments to
allow it to be called outside of a manual shell.
2021-02-16 14:49:26 -05:00
Carla Duarte
3a2b537cd5 Merge pull request #26582 from edx/ciduarte/AA-664
AA-664: add JwtAuthentication to course home api
2021-02-16 14:11:19 -05:00
Carla Duarte
dcb6bbc262 AA-664: add JwtAuthentication to course home api 2021-02-16 12:21:16 -05:00
Feanil Patel
7840c1f248 Merge pull request #26487 from edx/feanil/remove_django_ratelimit_backend
refactor Replace django-ratelimit-backend with django-ratelimit
2021-02-16 11:16:13 -05:00
Usman Khalid
62ed654b31 Convert LTIModule into LTIBlock. (#25713) 2021-02-16 09:09:13 -05:00
Ali-D-Akbar
c3bfe323de PROD-2195 2021-02-16 18:09:38 +05:00
Ali-D-Akbar
2e5b2704a2 PROD-2191 2021-02-16 18:06:18 +05:00
Ali-D-Akbar
86ce42abb7 PROD-2194 2021-02-16 17:40:47 +05:00
SaadYousaf
50e71479ee [TNL-7729] - Add check to discussion rest API to prevent users in blackout period. 2021-02-16 14:08:56 +05:00
Robert Raposa
0517603b6d feat: 403 logging for exchange_access_token (#26511)
The mobile app is getting unexpected 403s from
/oauth2/exchange_access_token/, but we have been unable
to pinpoint from where they are coming. This commit
introduces a temporary exception handler to provide stack info
for 403s on this endpoint to try to track down the source.

Requires the ENABLE_403_MONITORING setting to be set to
True to enable the logging.

ARCHBOM-1667
2021-02-12 15:34:55 -05:00
Felipe Montoya
f02d16ec3f Merge pull request #26428 from jramnai/tsd-login_attempts_annotations
[TSD] add annotations for login failure settings and feature flags
2021-02-12 14:36:56 -05:00
Felipe Montoya
b39f1a1727 Merge pull request #26492 from jramnai/tsd-language_selector
[TSD] add annotation for the header & footer language selector
2021-02-12 13:50:34 -05:00
Olivia Ruiz-Knott
5c95258115 Merge pull request #26461 from edx/ork/MICROBA-989_notify-credentials-takes-usernames
feat: allow notify_credentials to take a list of usernames
2021-02-12 10:45:15 -05:00
Felipe Montoya
467575443c Merge pull request #26266 from BbrSofiane/bbrsofiane/tsd-comprehensive_theming_settings
[TSD] Annotate comprehensive theming settings
2021-02-12 10:44:37 -05:00
Manjinder Singh
a5e3675ce2 docs: annotate comprehensive theming settings 2021-02-12 15:05:55 +00:00
Feanil Patel
6fb93463a8 refactor Replace django-ratelimit-backend with django-ratelimit
We use django-ratelimit to limit per IP login attempts, and then we use
django-ratelimit-backend to limit per username login attempts. This
change replaces the usage of django-ratelimit-backend with another
instance of django-ratelimit so that both limits can be managed by one
library.

This is the first step in being able to fully excise
django-ratelimit-backend from edx-platform. Note that we're still using
the `RateLimitMixin` in openedx/core/djangoapps/oauth_dispatch/dot_overrides/backends.py
because studio and the admin UI still relies on that for rate limiting.
Those login paths will have to be updated before we can remove the mixin
from our auth backend.
2021-02-12 09:52:13 -05:00
Carla Duarte
ab0fa47865 Merge pull request #26457 from edx/ciduarte/AA-511
AA-511: update dashboard certificate button styling
2021-02-12 09:48:39 -05:00
Jayram
67c5cca44b docs: add annotations for MAX_FAILED_LOGIN_ATTEMPTS_LOCKOUT_PERIOD_SECS settings
docs: added related settings description for login attempts
2021-02-12 20:16:43 +05:30
Bianca Severino
1d667e8b0f Add onboarding status view to instructor dashboard 2021-02-11 15:32:13 -05:00
Felipe Montoya
111fbbca8b Merge pull request #26469 from msaqib52/saqib/TSD-ENABLE_HTML_XBLOCK_STUDENT_VIEW_DATA
[TSD] add annotations for ENABLE_HTML_XBLOCK_STUDENT_VIEW_DATA feature flag
2021-02-11 14:24:48 -05:00
Feanil Patel
4cef913a85 Merge pull request #26489 from edx/feanil/flaky_anon_id_test
test: Don't add a delta to ensure we get rate limited.
2021-02-11 14:16:07 -05:00
David Ormsbee
691472e475 [feat]: Don't use Mathjax if an HTMLBlock has no math. (#26478)
Mobile apps load HTML (and other) XBlocks individually using the
render_xblock endpoint. This is an attmept to reduce the number
of requests and JS processing needed to do so by detecting when
we have math content in HTMLBlocks and only adding the Mathjax
resources when necessary.

This is controlled by the "courseware.optimized_render_xblock"
CourseWaffleFlag. For maximum safety, we currently only optimize
in this way when directly hitting HTMLBlocks, and not for
ProblemBlock or VerticalBlock.

This was made as part of edX's Hackathon XXV.
2021-02-11 13:31:17 -05:00
Jayram
b1a101902f docs: add annotations for SHOW_FOOTER_LANGUAGE_SELECTOR feature flag 2021-02-11 23:01:25 +05:30
Jayram
5e678ab6d6 docs: add annotations for SHOW_HEADER_LANGUAGE_SELECTOR feature flag 2021-02-11 22:59:22 +05:30
Feanil Patel
6f1691e5b6 test: Don't add a delta to ensure we get rate limited.
The rate limiting library computes the rate limit by chunking time since
the epoch into chunks of whatever your period is. It then adds some
consistent offset based on your key.  This means that at certain times,
you are closer to the end of your rate limit time period than others.
So moving 1 minute into the future would put you into the next time
chunk and your rate limit would be reset.

I updated the test to test rate limit at the same time as the initial
call to ensure that we don't end up on the other side of a time chunk
boundary by accident.  We were seeing times in CI where it
would occasionally fail because time chunking wasn't in our favor.
2021-02-11 11:32:49 -05:00
Aarif
01ac3c2ed3 replaced unittest assertions pytest assertions (#26308) 2021-02-11 17:41:41 +05:00
Bianca Severino
2e72791491 Create command to update expiration_date for old SoftwareSecurePhotoVerification entries (#26471) 2021-02-10 16:55:51 -05:00
alangsto
9104983369 update edx-proctoring version (#26472)
updated for quality
2021-02-10 13:41:17 -05:00
Jayram
5ac505d5d0 docs: add annotations for ENABLE_COURSEWARE_SEARCH_FOR_COURSE_STAFF feature flag 2021-02-10 19:35:38 +05:30
Saqib
e014535dd8 add toggle annotations for ENABLE_HTML_XBLOCK_STUDENT_VIEW_DATA feature flag 2021-02-10 17:59:34 +05:00