Commit Graph

3531 Commits

Author SHA1 Message Date
zia.fazal@arbisoft.com
9420423e1a Added annotations for EMBARGO feature flag 2021-02-16 15:19:17 +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
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
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
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
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
Jayram
3127e5f7af docs: add annotations for ENABLE_DASHBOARD_SEARCH feature flag 2021-02-09 20:27:12 +05:30
Jayram
69e041b1eb docs: add annotations for ENABLE_COURSEWARE_SEARCH feature flag 2021-02-09 20:23:02 +05:30
Bianca Severino
54505b82c4 Merge pull request #26436 from edx/bseverino/proctoring-check-fix
[MST-645] Account for no enrollment in courseware rules
2021-02-08 13:39:40 -05:00
Bianca Severino
4fb36709a5 Account for no enrollment in courseware rules 2021-02-08 13:12:52 -05:00
Tim McCormack
b8a6e30bd9 fix: Add new proctoring key to Studio devstack & tests envs (copy from LMS) (#26430)
Turns out it's needed for the Proctoring Settings view.

Also reorder slightly for better clustering.

MST-644
2021-02-08 15:43:51 +00:00
Jayram
7d479a8148 docs: add annotations for MAX_FAILED_LOGIN_ATTEMPTS_ALLOWED settings 2021-02-08 19:19:27 +05:30
Jayram
6b4a69b789 docs: add annotations for ENABLE_MAX_FAILED_LOGIN_ATTEMPTS feature flag 2021-02-08 19:15:42 +05:30
JayRam Nai
17cde562da docs: Add annotations for ENABLE_FOOTER_MOBILE_APP_LINKS feature flag (#26389)
docs: update warning for ENABLE_FOOTER_MOBILE_APP_LINKS features toggle
2021-02-08 07:58:09 -05:00
JayRam Nai
f5ba226c71 docs: Add annotations for ENABLE_DJANGO_ADMIN_SITE feature flag (#26388) 2021-02-06 11:04:22 -05:00
JayRam Nai
c658a4719b docs: Adds annotations for HIDE_DASHBOARD_COURSES_UNTIL_ACTIVATED feature flag (#26403) 2021-02-06 10:48:10 -05:00
Felipe Montoya
081a334fb8 Merge pull request #26212 from eduNEXT/lmm/annotation_mfe_urls
[TSD] Add annotations for MFE URL settings
2021-02-05 17:51:05 -05:00
Felipe Montoya
aba34c506e Merge pull request #26406 from jramnai/tsd-enable_student_history_view
[TSD] docs: Add annotations for ENABLE_STUDENT_HISTORY_VIEW feature flag
2021-02-05 17:50:41 -05:00
Tim McCormack
38f29c30f8 feat: Use edx-proctoring 3.0.0 and set required ID generation key (#26408)
MST-637: edx-proctoring 3.0.0 now requires a new key for use in ID
generation, starting from same value as SECRET_KEY (pre-rotation, but
rotation never happened for devstack.)

Remote config changes already made for relevant environments.
2021-02-05 16:19:14 +00:00
Jayram Nai
df517c7c21 docs: Add annotations for ENABLE_STUDENT_HISTORY_VIEW feature flag 2021-02-05 18:54:36 +05:30
Gonzalo Romero
22eb29dabe [TSD]Adding toggle annotations for wiki settings (#26262)
Adding toggle annotations for WIKI settings

* adding annotations for WIKI_HANDLING_ACCOUNT
* adding annotations for WIKI_ANONYMOUS
* add toggle annotations for WIKI_ENABLED
* add toggle annotations for WIKI_USE_BOOTSTRAP_SELECT_WIDGET
2021-02-03 15:43:20 -05:00
anjalia28
df45be2e20 [TSD] add toggle annotations for FEATURES['ENABLE_DISCUSSION_SERVICE'] (#26205)
* add toggle annotations for FEATURES['ENABLE_DISCUSSION_SERVICE']
* added comments in cms/envs/common.py
2021-02-03 15:18:14 -05:00
Nimisha Asthagiri
2a8b57b01f Merge pull request #26350 from jramnai/tsd-redirect_user_to_homepage
[TSD] annotations for ALWAYS_REDIRECT_HOMEPAGE_TO_DASHBOARD_FOR_AUTHENTICATED_USER
2021-02-03 12:52:51 -05:00
Nimisha Asthagiri
3f8aa0bd7d Merge pull request #26352 from jramnai/tsd-courses_are_borwsable
[TSD] adds annotations for COURSES_ARE_BROWSABLE feature flag
2021-02-03 12:45:54 -05:00
Nimisha Asthagiri
01f2a73081 Merge pull request #26353 from jramnai/tsd-enable_account_deletion
[TSD] add annotations for ENABLE_ACCOUNT_DELETION feature flag
2021-02-03 12:45:25 -05:00
Nimisha Asthagiri
cdb254075c Merge pull request #26354 from jramnai/tsd-enable_bulk_enrollment_view
[TSD] add annotations for ENABLE_BULK_ENROLLMENT_VIEW feature flag
2021-02-03 12:45:06 -05:00
Robert Raposa
bb4cfca17b Merge pull request #26183 from open-craft/nizar/tsd-maintenance-warning
[TSD] Documents maintenance banner switch and setting and updates switch
2021-02-03 11:41:38 -05:00
Jayram
d312ab4ff5 add annotations for ENABLE_BULK_ENROLLMENT_VIEW feature flag 2021-02-03 21:44:42 +05:30
Jayram
ebbf09bf0e add annotations for ENABLE_ACCOUNT_DELETION feature flag 2021-02-03 21:29:04 +05:30
Jayram
8bbf966ae3 adds annotations for COURSES_ARE_BROWSABLE feature flag 2021-02-03 20:43:15 +05:30
Jayram
2a5cd14e68 add annotations for ALWAYS_REDIRECT_HOMEPAGE_TO_DASHBOARD_FOR_AUTHENTICATED_USER feature flag 2021-02-03 20:24:14 +05:30
Nimisha Asthagiri
60319c52d9 Merge pull request #26251 from eduNEXT/TSD_retirement_settings_annotations
[TSD] Adding annotations for User Retirement settings
2021-02-02 21:00:24 -05:00
Nimisha Asthagiri
95761866a2 Merge pull request #26261 from eduNEXT/TSD_edx_notes_settings_annotations
[TSD] Adding annotations for edx_notes_api settings
2021-02-02 20:51:43 -05:00
Nimisha Asthagiri
3b1fe1868b Merge pull request #26252 from edx/tsd/disable_login_button
[TSD] add annotations for the DISABLE_LOGIN_BUTTON feature flag
2021-02-02 20:50:19 -05:00
Nizar Mahmoud
4e16b92971 Documents maintenance banner setting and toggle and adds necessary unit tests 2021-02-02 23:04:53 +03:00
M. Zulqarnain
d9b9f21e22 pylint amnesty in LMS root (#26276) 2021-02-02 12:52:24 +05:00
Robert Raposa
eba1e282da Merge pull request #26175 from open-craft/nizar/tsd-block-structure-storage-caching
[TSD] Annotates block structures settings and waffle switches
2021-02-01 16:53:04 -05:00
Nizar Mahmoud
fa9746a714 Annotates block structures settings and waffle switches
This includes the following settings:

- BLOCK_STRUCTURES_SETTINGS : setting dictionary which stores the other different block structures related settings

- BLOCK_STRUCTURES_SETTINGS['PRUNING_ACTIVE'] : keeps only a specific number of versions of each block structure, and deletes the rest

- BLOCK_STRUCTURES_SETTINGS['COURSE_PUBLISH_TASK_DELAY'] : specifies the delay, in seconds, after a new edit of a course is published before updating the block structures cache

- BLOCK_STRUCTURES_SETTINGS['TASK_DEFAULT_RETRY_DELAY'] : Specifies the delay, in seconds, between retry attempts for block structure tasks

- BLOCK_STRUCTURES_SETTINGS['TASK_MAX_RETRIES'] : specifies the max number of retries per block structure task

- BLOCK_STRUCTURES_SETTINGS['STORAGE_CLASS'] : specifies the storage which block structures would be saved to when storage backed block structures are enabled

    Example: 'storages.backends.s3boto.S3BotoStorage'

- BLOCK_STRUCTURES_SETTINGS['STORAGE_KWARGS'] : specifies additional arguments needed when utilizing storage for storing storage backed block structures

    Example: { bucket: 'test-edxapp' }

- BLOCK_STRUCTURES_SETTINGS['DIRECTORY_PREFIX'] : specifies the path to which storage backed block structures are saved

    Example: '/courses/'

This also includes the following waffle switches:

- block_structure.storage_backing_for_cache : enables storage backed block structures, used to retrieve the block structures from storage instead of regenerating the structure, when not available in cache

    it is important to note that this is important for production because it reduces response times on block structure related apis

- block_structure.raise_error_when_not_found : raises an error if the block structure requested doesnt exist in store or is outdated

- block_structure.invalidate_cache_on_publish : invalidates the block structure cache when courses are published

For an example with additional context, see the following forum post:

https://discuss.openedx.org/t/help-please-very-slow-load-time-10-seconds-for-courseware-on-sections-with-several-subsections-and-xblocks/2998/16

This also includes information about the toggles that will likely be deprecated and removed:

https://github.com/edx/edx-platform/pull/26175#issuecomment-769080286
2021-02-01 22:55:14 +03:00
Robert Raposa
d564c6e7f7 Merge pull request #26177 from open-craft/fox/SE-3990-docathon-badgr
[TSD] [SE-3990] Add in standardized documentation for Badgr-related settings.
2021-02-01 14:41:01 -05:00
Bianca Severino
42e1ac0888 Merge pull request #26182 from edx/bseverino/proctoring-requirements-email
[MST-515] Automated proctoring requirements email
2021-02-01 10:19:56 -05:00
Bianca Severino
902ab02357 Send proctoring requirements email when enrolled in relevant course mode 2021-02-01 09:44:30 -05:00
jfavellar90
8a2ba99551 Adding annotations for edx_notes_api settings 2021-01-29 15:35:08 -05:00
Fox Danger Piacenti
a483a778f3 Add in standardized documentation for Badgr-related settings. 2021-01-29 12:45:01 -06:00
Gonzalo
fc3eee17c4 Adding FEATURES[‘ENABLE_EDXNOTES’] annotations
fix PEP8 W291 trailing whitespace

fix too long lines

adding specified django settings for edx-notes-api

change toggle_description

checking CI tests

Final corrections for ENABLE_EDXNOTES toggle
2021-01-29 13:05:00 -05:00
Robert Raposa
f6ef794e2a Merge pull request #26220 from jramnai/tsd-allow_email_address_change
[TSD] add annotations for ALLOW_EMAIL_ADDRESS_CHANGE feature flag
2021-01-29 12:20:01 -05:00