Commit Graph

2311 Commits

Author SHA1 Message Date
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
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
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
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
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
Felipe Montoya
7b0867e89a docs: add annotations for the DISABLE_LOGIN_BUTTON feature flag 2021-01-29 10:49:38 -05:00
jfavellar90
f7786e1abc Adding annotations for User Retirement settings 2021-01-29 09:47:05 -05:00
Raul Gallegos
24f528cfa6 adds annotations for XBLOCK_SELECT_FUNCTION
improves the setting_description for XBLOCK_SELECT_FUNCTION

removes extra setting_description
2021-01-29 07:57:23 -05:00
adeelehsan
55d2a4f897 Logistration MFE renamed to authn
VAN-300
2021-01-29 11:37:54 +05:00
Jayram
a294dbc0ea add annotations for ALLOW_EMAIL_ADDRESS_CHANGE feature flag
removed optional annotations for ALLOW_EMAIL_ADDRESS_CHANGE feature flag
2021-01-29 07:02:02 +05:30
Luis Moreno
54baec8cd2 docs: Add annotations for MFE URL settings 2021-01-28 15:02:58 -04:00
Robert Raposa
6666ac3b85 Merge pull request #26163 from open-craft/raul/tsd-xblock_settings
[TSD] adds annotations for XBLOCK_SETTINGS
2021-01-27 17:36:26 -05:00
Robert Raposa
78c2389aa4 Merge pull request #26167 from jramnai/tsd-default_mobile_available
[TSD] add toggle annotations for DEFAULT_MOBILE_AVAILABLE
2021-01-27 16:47:41 -05:00
Matt Tuchfarber
606311bd69 Merge pull request #25777 from open-craft/shimulch/bb-3306
[BB-3306] Customizable Certificate Date Format
2021-01-27 16:01:29 -05:00
Alex Dusenbery
aed3d8cbfc Define a ALLOW_ADMIN_ENTERPRISE_COURSE_ENROLLMENT_DELETION feature flag, so that site admins are allowed to delete EnterpriseCourseEnrollment records. 2021-01-27 14:25:53 -05:00
Jayram
e64e658ae5 add toggle annotations for DEFAULT_MOBILE_AVAILABLE
added required annotations, detailed description and some nit

added extra space for the toggle_description
2021-01-27 09:48:49 +05:30
Raul Gallegos
91ad3db55a improves settings_description for XBLOCK_SETTINGS with reference 2021-01-26 12:21:47 -05:00
Raul Gallegos
e4c47d5478 adds annotations for XBLOCK_SETTINGS 2021-01-26 12:21:47 -05:00