Commit Graph

5629 Commits

Author SHA1 Message Date
Robert Raposa
0cc46ca5b0 Merge pull request #25332 from regisb/regisb/use-settingdict
[BD-21] Use edx-toggle's SettingDictToggle to document setting-based feature toggles
2020-10-30 08:59:38 -04:00
Régis Behmo
312f0cd749 Fix error in toggle state endpoint in the absence of module_name
When module_name is None, the call to edx-django-utils'
get_code_owner_from_module crashes. So we avoid making that call when
the module_name is None, which sometimes happens (for good reasons or
not, but it's valid behaviour).
2020-10-29 22:59:53 +01:00
Régis Behmo
a27499830c Add deprecation warning comments to waffle_utils code 2020-10-29 22:59:53 +01:00
Régis Behmo
98ffa347d5 Fix waffle_utils unit tests 2020-10-29 22:59:53 +01:00
Régis Behmo
e5500b34a0 Backport override features from edx-toggles to waffle_utils
Note that those features are destined to be deprecated, eventually.
2020-10-29 22:59:52 +01:00
Régis Behmo
db5feec4cf Move waffle_utils/testutils.py to edx-toggles 2020-10-29 22:59:52 +01:00
Régis Behmo
58043727d5 [BD-21] Migrate waffle flag classes to edx-toggles
The same API is preserved, internally, to avoid many changes across the
edx-platform codebase (for now).
2020-10-29 22:59:52 +01:00
Régis Behmo
474da0c5a5 Refactor WaffleFlag and WaffleFlagNamespace internal API
This simplifies the internals of the waffle flag classes in order to
better move them to edx-toggles later.
2020-10-29 22:59:52 +01:00
Régis Behmo
24cf0543f3 [BD-21] Migrate WaffleSwitch to edx-toggles
This makes this class reusable by other IDAs.
2020-10-29 22:59:52 +01:00
Albert (AJ) St. Aubin
72aa58406b [MICROBA-676] Changes to the notify_credentials task to filter on username 2020-10-29 15:11:09 -04:00
muhammad-ammar
b8a315933f add log to get insights about why data sharing consent is not required 2020-10-29 20:57:27 +05:00
Adeel Khan
d61936fdb6 Adds Logistration MFE url for forgot password email.
This patch would enable routing learner to logistration MFE
via forgot password url than on platform when
ENABLE_LOGISTRATION_MICROFRONTEND feature flag is set.

VAN-98
2020-10-29 16:25:20 +05:00
Régis Behmo
87b5463d42 Use SettingDictToggle to document ENTRANCE_EXAMS 2020-10-29 11:11:02 +01:00
Albert (AJ) St. Aubin
69a63380c2 Adding in a call to send Program award events to Credentials in
management command
2020-10-28 19:41:32 -04:00
Dillon Dumesnil
ff478fd12d Merge pull request #25470 from edx/ddumesnil/weekly-highlights-error-logging-aa-393
AA-393: Add additional logging to CourseNextSectionUpdate
2020-10-28 14:49:52 -07:00
Dillon Dumesnil
96e83de1e5 AA-393: Add additional logging to CourseNextSectionUpdate
We have some helpful exception messages, but then we swallow them
and only log a generic message. Now we will log both!
2020-10-28 17:12:33 -04:00
Muhammad Ammar
1d28f5d60f Merge pull request #25447 from edx/ammar/enterprise-customer-session-storage
update logic to store learner's enterprise customer info in request session
2020-10-27 19:35:37 +05:00
Michael Terry
94e075c440 Merge pull request #25439 from edx/mikix/verified-mode-mfe
AA-197: Provide cert upgrade info to learning MFE
2020-10-27 10:34:38 -04:00
muhammad-ammar
5adf9fdd8b store a learners enterprise customer info into request session only if
user is authenticated. This is needed to avoid storing `None` as
enterprise customer info in request session.
2020-10-27 19:12:01 +05:00
Michael Terry
a4bd5a7ec9 AA-197: Provide cert upgrade info to learning MFE
Specifically, pass the MFE the audit access expiration date and
let it know when the upgrade deadline has passed, by not passing
any verified mode information along.
2020-10-27 09:05:12 -04:00
Régis Behmo
13a70fcaa6 Deprecate COURSE_OUTLINE_PAGE_FLAG and UNIFIED_COURSE_TAB_FLAG
These flags are deprecated in favor or the DISABLE_* equivalent.
This allows us to get rid of the DefaultTrueWaffleNamespace class.
2020-10-27 10:20:41 +01:00
David Ormsbee
ab622d2bf8 Reduce noise in CourseOverview->Modulestore fallback (#25434)
This was originally intended as a placeholder to remind us to
optimize the data model for sequence metadata API calls (say
by adding those fields to the CourseOverview model itself).
Logging a quarter million messages a day is overkill for this
purpose, and we will be doing another pass at the performance of
this code in the coming weeks/months.
2020-10-26 10:27:14 -04:00
Adeel Khan
2bc746a0a0 Adds forgot password functionality for secondary email.
VAN-18
2020-10-24 22:00:12 +05:00
Albert (AJ) St. Aubin
8cef028429 Update the award_program_cert task to fix celery registration
[MICROBA-676]
2020-10-23 17:08:34 -04:00
Dillon Dumesnil
8bb88df35f Revert "AA-51: Adds in 'Up next' banner to course home" 2020-10-23 11:05:27 -07:00
Mike OConnell
0dc494360d Correcting error with undeclared local (#25422)
Previous rollback introduced this error while resolving merge
conflicts. Line declaring the local variable was accidentally
omitted.

ENT-3494
2020-10-23 12:48:59 -04:00
Fox Piacenti
c181ed57b1 Add ability to filter library blocks by type. Prevent changing types with unpublished changes. (#25368)
Adds the ability to filter v2 library blocks by block type. Also prevents switching the library type when there are unpublished changes/deletes, as this may cause consistency errors.
2020-10-23 10:50:28 -04:00
Mike OConnell
64ee4a8972 Rolling back previous changes (#25418)
Rolling back previous changes after unexpected behavior
when testing in stage.

ENT-3494
2020-10-23 07:09:09 -04:00
Zainab Amir
49ea5f5188 Update logistration MFE feature flag (#25356)
update logistration MFE feature flag to not be used in conjunction
with Accounts MFE toggle.

VAN-11
2020-10-23 12:11:56 +05:00
Mike OConnell
b4f7647b40 Moco/ent 3494 (#25408)
* Added logging statements around DSC

Added logging statements to help diagnose failures in presenting
Data Sharing Consent views to learners who have not consented to
data sharing, but their enterprise requires it

ENT-3494

* Yet more logging statements around DSC

Added more logging statements to help diagnose failures in presenting
Data Sharing Consent views to learners who have not consented to
data sharing, but their enterprise requires it. These new logs provide
further detail into the call to the enterprise API to check for consent.

This changelist slightly changes the logic to determine if a consent
check is needed. The changes involve breaking out the conditions of the
iterated checks on the learner details to allow for more granular logging.

ENT-3494
2020-10-22 21:33:16 -04:00
Saleem Latif
43d0a67fa1 Request for field to specify locale in Django enterprise accounts 2020-10-20 17:56:22 +05:00
Jeff Chaves
d25d4038fd ENT-3460: updating usage of EnterpriseCustomerBrandingConfiguration, edx-enterprise 3.8.42 (#25376)
* bumping enterprise version

* adding pillow constraint

* updating usage of EnterpriseCustomerBrandingConfiguration
2020-10-19 16:42:16 -04:00
Dillon Dumesnil
b6dbbb6f83 Merge pull request #25346 from edx/ddumesnil/add-cert-to-linkedin-aa-385
AA-385: Add in LinkedIn Add to Profile to courseware meta API
2020-10-19 07:31:26 -07:00
Kyle McCormick
538dbf696b Import CMS code using fully qualified module names
or, using proper the proper Python 3 relative imports
(e.g., 'from .views import x') which are standard and
unambiguous.
2020-10-19 09:34:31 -04:00
Calen Pennington
5b41d9fd7f Merge pull request #25364 from cpennington/wire-in-class-based-tasks
Work around celery changes to class-based-task registration
2020-10-16 13:38:31 -04:00
Calen Pennington
f30d492164 Work around celery changes to class-based-task registration 2020-10-16 13:02:41 -04:00
Dillon Dumesnil
084ab4c10d AA-385: Add in LinkedIn Add to Profile to courseware meta API
A major update to this function allows it to actually autofill the
certificate information again! I believe LinkedIn changed their API
and we never updated our end. This fixes that!
2020-10-16 10:07:38 -04:00
Asad
ffdb7c5053 Added user disable comment/history apis 2020-10-16 14:01:10 +05:00
Adeel Khan
8418b44084 Add new password reset endpoint for logistration MFE.
VAN-88
2020-10-16 01:34:27 +05:00
Alex Dusenbery
98719faca8 Revert "bumping enterprise version to 3.8.35 (#25342)"
This reverts commit 5bf54d696a.
2020-10-14 19:56:55 -04:00
Matthew Piatetsky
651a020fcc Merge pull request #25151 from edx/REV-1510
[REV-1510] Gate sequence if it is a timed exam and contains content type gated problems
2020-10-14 16:54:39 -04:00
Calen Pennington
8dd6282b5e Merge pull request #25351 from cpennington/fix-schedules-tasks
Register class-based tasks used by the schedules app
2020-10-14 15:52:26 -04:00
Calen Pennington
f98eed972c Register class-based tasks used by the schedules app 2020-10-14 15:30:07 -04:00
Jeff Chaves
5bf54d696a bumping enterprise version to 3.8.35 (#25342)
* bumping enterprise version

* fixing platform tests broken by branding config changes
2020-10-14 14:42:39 -04:00
David Ormsbee
7234f849a0 Merge pull request #25259 from open-craft/toxinu/pre-flight-cors
[SE-3111] Enforce CORS allow on xBlock handlers
2020-10-14 11:26:39 -04:00
Matthew Piatetsky
2153057142 Add XBlock service for content type gating
This is used in this commit to check if a timed exam contains any problems that have been gated by content type gating
REV-1510
2020-10-14 08:02:51 -04:00
Adeel Ehsan
ddb7460812 Merge pull request #25133 from edx/aehsan/van-71/added_domain_name_in_login_redirection
added host in redirection url
2020-10-13 19:11:12 +05:00
adeelehsan
1bbb59ebc7 added host in redirection url
In case of login micro frontend redirection lms
domain added in redirection url.

VAN-71
2020-10-13 18:20:23 +05:00
toxinu
2f328204ba Enforce CORS allow on xblock handler 2020-10-13 08:45:20 +09:00
Mike OConnell
fa435e697b Added logging statements around DSC (#25320)
Added logging statements to help diagnose failures in presenting
Data Sharing Consent views to learners who have not consented to
data sharing, but their enterprise requires it

ENT-3494
2020-10-12 10:42:43 -04:00