Commit Graph

1774 Commits

Author SHA1 Message Date
Robert Raposa
8ef8b35a54 docs: update toggle docs
A variety of updates were made to improve the toggle documentation:
* Added comments to help ensure that the waffle(), waffle_switches(),
  waffle_flags() anti-pattern won't be contagious (copied).
* Some minor toggle_description updates.
* Removed empty toggle_target_removal_date annotations for
  non-temporary toggles.
* Removed empty optional toggle_warnings annotations.
* Removed empty optional toggle_tickets annotations.
* Removed deprecated toggle_category, toggle_status,
  and toggle_expiration_date annotations.
* Fixed some indents, use cases, and implementations.

ARCHBOM-1721
2021-04-01 21:58:29 -04:00
Zainab Amir
8cc5f13daf Add rate limit to registration endpoint (#27060)
Currently the registration endpoint has no rate limit. Added a new ratelimit
variable to support the change, it's value is set to 60/7d.

VAN-302
2021-03-25 16:28:30 +05:00
sarina
51ccf48f1c fix: Add ‘ENABLE_HELP_LINK’ to Studio settings
Fixes an issue where the button that linked to edX documentation for
course teams in Studio that displayed beside the logged-in user's username/
drop-down menu is gone. Regression from PR #26106

Ref: TNL-8138
2021-03-23 16:16:21 -04:00
Shimul Chowdhury
e942f12adc Add missing context platform_name and contact_mailing_address. And pass
site configuration to email context.
2021-03-19 10:05:49 +06:00
Arslan Ashraf
8163d8c772 docs: add annotations for DISABLE_COURSE_CREATION feature flag (#26941) 2021-03-15 08:59:39 -04:00
Usman Khalid
78cd8be24d XMLModuleStore should use HiddenDescriptor instead of RawDescriptor.
In https://github.com/edx/edx-platform/pull/25955 `HiddenDescriptor`
(which was a subclass of `RawDescriptor` with a custom `student_view()`)
was converted to an XBlock. It is used as the `default_class` by the
`CachingDescriptorSystem` classes. However `RawDescriptor` is still
being used by `XMLModuleStore`. This has been replaced by
`HiddenDescriptor` as well.
2021-03-11 22:20:33 +05:00
Kyle McCormick
bcb48525ac refactor: clean up unused ERROR_ON_DEPRECATED_EDX_PLATFORM_IMPORTS (#26900)
The setting overrides should've been cleaned up in a previous
commit, but I missed them. This change is a no-op.
2021-03-08 15:01:12 -05:00
Kyle McCormick
2b5d916512 refactor!: deprecated import paths now always raise
Previously, deprecated [lms|cms|common]/djangoapps
import paths would only raise errors if the
ERROR_ON_DEPRECATED_EDX_PLATFORM_IMPORTS
flag, which defaulted to False (but is overriden
to True for Devstack and *.edx.org), was enabled.

This change removes that setting and always raises
on use those deprecated import paths.
2021-03-08 12:49:31 -05:00
Kyle McCormick
f54e3752fa fix: lower bundle cache timeout from 47hrs to 50mins (#26863)
S3 URLs served by Blockstore have a max TTL of
1hr, since the temporary credentials the Blockstore
uses to sign the URLs themselves have a TTL of
1hr. Thus, we must cache Blockstore bundles for
less than 1hr.

TNL-7771
2021-03-08 08:47:30 -05:00
Matthew Piatetsky
013f7bfe34 Merge pull request #26744 from edx/AA-461
[AA-461] Export highlights to s3 for use by braze
2021-03-05 06:46:57 -05:00
Matthew Piatetsky
8d1d7b2222 feat: Export highlights to s3 for use by braze
Things other than highlights may be exported in the future. The storage class is flexible so backends other than s3 may be used in the future.
AA-461
2021-03-04 15:57:30 -05:00
Matt Tuchfarber
0feeaaf817 Add credentials service username to common cms
We're now calling programs-related code from CMS so we need to have the
username for the credentials service available in CMS
2021-03-03 11:46:32 -05:00
Sarina Canelake
e15e372233 Merge pull request #26772 from edx/sarina/DEPR-142-TNL-7522
Remove the "role of users being enrolled" field from Instructor Dashboard
2021-03-03 08:57:16 -05:00
M. Zulqarnain
88471575ab refactor: pyupgrade in CMS (#26723) 2021-03-02 16:45:46 +05:00
sarina
173bbce500 feat!: Remove the "role of users being enrolled" field from Instructor Dashboard
See DEPR-142
2021-02-28 18:40:16 -05:00
Adeel Khan
d9ec42c425 Add throttling to validate token and reset password end points
VAN-312
2021-02-24 06:47:18 +05:00
Sarina Canelake
e3b0bffa50 Revert "Remove the "role of users being enrolled" field from Instructor Dashboard" 2021-02-23 09:03:31 -05:00
sarina
406176b9e6 feat!: Remove the "role of users being enrolled" field from Instructor Dashboard
See DEPR-142
2021-02-22 16:18:12 -05:00
Manjinder Singh
85242014b6 fix: changed setting to fix login through studio (#26636)
Login redirect was using wrong url, thus making it impossible to login from studio. This settings change should fix that.

Useful information to include:

Which edX user roles will this change impact? "Developer"
Supporting information
https://openedx.atlassian.net/browse/ARCHBOM-1687

Testing instructions
Bring up devstack studio and press sign in. If it redirects you correctly to lms login page, this works!
2021-02-19 14:33:43 -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
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
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
Régis Behmo
5a618bfdbb Annotate git export settings and toggles in CMS
We take the opportunity to resolve a few linting issues, without affecting the
feature behaviour.
2021-02-09 12:39:48 +01:00
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 Nai
16cc57dc7d docs: Add annotations for EDITABLE_SHORT_DESCRIPTION feature flag (#26401) 2021-02-08 07:56:48 -05:00
Robert Raposa
d7b2ff0be4 Merge pull request #26229 from edx/robrap/warn-against-lms-import-in-cms
warn against import from lms in cms
2021-02-04 12:28:36 -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
Sarina Canelake
5bf36dfa0c Merge pull request #26268 from edx/sarina/extend-draft-mongo-support
Extend expiration of DEPRECATE_OLD_COURSE_KEYS_IN_STUDIO toggle
2021-02-03 08:28:35 -05:00
Nimisha Asthagiri
aa7ab97f23 Merge pull request #26248 from jramnai/tsd-allow_course_reruns
[TSD] add annotations for ALLOW_COURSE_RERUNS feature flag
2021-02-02 21:09:32 -05:00
Nimisha Asthagiri
242c1a3ade Merge pull request #26245 from jramnai/tsd-disable_mobile_course_available
[TSD] add annotations for DISABLE_MOBILE_COURSE_AVAILABLE feature flag
2021-02-02 21:05:48 -05:00
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
usamasadiq
8556d670a2 Applied pylint-amnesty 2021-02-02 15:29:41 +05:00
sarina
766157dbf3 Extend expiration of DEPRECATE_OLD_COURSE_KEYS_IN_STUDIO toggle TNL-7932 2021-01-30 12:20:24 -05: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
jfavellar90
f7786e1abc Adding annotations for User Retirement settings 2021-01-29 09:47:05 -05:00
Jayram Nai
d54a13455a add annotations for ALLOW_COURSE_RERUNS feature flag 2021-01-29 18:37:54 +05:30
Jayram Nai
df2beaf267 add annotations for DISABLE_MOBILE_COURSE_AVAILABLE feature flag 2021-01-29 17:26:25 +05:30
Robert Raposa
4b5adc6a6a warn against import from lms in cms
Adds a warning against import any additional settings
from LMS in CMS due to its incompatibility with our 
future direction. For more details, see the warning.
2021-01-28 17:32:57 -05:00
Robert Raposa
2d7a8358ef Merge pull request #26172 from regisb/regisb/fix-cms-annotation
[BD-21] Fix `ERROR_ON_DEPRECATED_EDX_PLATFORM_IMPORTS` code annotation
2021-01-26 13:09:30 -05:00
Régis Behmo
5f8a2952e9 Fix ERROR_ON_DEPRECATED_EDX_PLATFORM_IMPORTS code annotation
This annotation was causing a linting failure, and a TypeError down the road in
the feature toggle report processing step by
edx-toggles/scripts/feature_toggle_report.py.
2021-01-26 14:25:49 +01:00
Saad Yousaf
78adfc6c6c [TNL-7803] - Add text to new Edge logo (#26097)
* edge logo

* Refactored code

* Refactored code

Co-authored-by: Asad <asadazam93@gmail.com>
2021-01-26 14:14:54 +05:00
Kyle McCormick
44d5060c60 Add setting for error'ing on deprecated imports
Deprecated edx-platform import paths
(for example, `student` instead of
`common.djangoapps.student`) currently raise
warnings when used. We want to fully remove
support for those paths.

As an easily reversible way to initially remove
support, we add a new setting to LMS and Studio
called `ERROR_ON_DEPRECATED_EDX_PLATFORM_IMPORTS`,
defaulting to False. We set it to True for devstack
and will set it to True in Stage and Production
soon. If critical errors occur, we can easily
flip the setting back to False.
2021-01-21 10:49:47 -05:00
David Ormsbee
098e047fce Merge pull request #25987 from edx/ormsbee/tnl-7636-xblock-access
Check sequence-level gating in render_xblock (TNL-7636)
2021-01-13 09:35:56 -05:00
David Ormsbee
5a149f0fe3 Enable timed/special exams and pre-reqs in devstack.
These are common and useful enough features that it makes sense to
enable it for developers by default.
2021-01-12 11:30:58 -05:00
Nizar
1e872d4e10 Adds support for enabling custom tinymce plugins in Studio's HTML editor (#25695) 2021-01-11 11:28:20 -05:00
Peter Pinch
285ec771bf fix: Remove CAS settings (#25330)
part of DEPR-6
2021-01-06 08:15:35 -05:00