Commit Graph

56228 Commits

Author SHA1 Message Date
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
Régis Behmo
14cb7b6056 Add a make target to compile requirements (without upgrade)
I grew tired of modifying the Makefile to compile requirements without
upgrading them. Also, installing pip-tools should not be part of the
compile-requirements target, so a separate target was created.
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
Jansen Kantor
7d40793967 management command to create test users (#25449) 2020-10-29 14:55:52 -04:00
Jansen Kantor
1a1c04e28a upgrade ora to 2.11.3 (#25469)
* upgrade ora to 2.11.3
2020-10-29 14:53:51 -04:00
Feanil Patel
8cd544b8ec Put settings import back because it's used here. (#25481)
But change the order so that celery is loaded first.
2020-10-29 13:48:53 -04:00
Muhammad Ammar
3cee4b81ab Merge pull request #25452 from edx/mammar/add-logging-for-dsc
add log to get insights about why data sharing consent is not required
2020-10-29 22:46:32 +05:00
Aarif
1a31236404 updated config to use mysql 5.7 container (#25362) 2020-10-29 21:51:39 +05:00
muhammad-ammar
1374586719 upgrade edx-enterprise to 3.9.11 2020-10-29 21:38:23 +05: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
Jeremy Bowman
efc04e3399 Remove notifier_api app DEPR-111 (#25464)
Part of the notifier service deprecation (DEPR-106).

Also removed pdfminer from the package uninstall list, since we no longer install the package it conflicts with either.
2020-10-29 11:17:23 -04:00
Jeff LaJoie
f90035dc48 Merge pull request #25451 from edx/jlajoie/ENT-3116
ENT-3116: Bumps edx-enterprise to 3.9.10
2020-10-29 11:16:05 -04:00
Feanil Patel
2175d00b83 Update celery task discovery config. (#25479)
Update the celery startup code to more closely match the docs.  We believe some of these imports are causeing circulare
dependencies that are causing race conditions in task discovery.  Since all django apps should be loaded using the
django fixup in celery 4, we shouldn't need these other overrides.

https://github.com/celery/celery/blob/v4.4.7/celery/fixups/django.py
https://docs.celeryproject.org/en/v4.4.7/django/first-steps-with-django.html#using-celery-with-django
2020-10-29 10:52:16 -04:00
David Ormsbee
47b050ca12 Merge pull request #25386 from mitodl/umar/unpin-edx-sga
remove the constraint on edx-sga
2020-10-29 10:34:14 -04:00
Jeff LaJoie
b69eddd043 ENT-3116: Bumps edx-enterprise to 3.9.10 2020-10-29 10:08:39 -04:00
Hammad Ahmad Waqas
c50be5daa7 Merge pull request #25444 from edx/saleem-latif/ENT-3522-updates
ENT-3522: Upgraded edx-enterprise version to 3.9.9
2020-10-29 18:23:28 +05:00
Saleem Latif
364940b04f Upgraded edx-enterprise verision to 3.9.9 2020-10-29 17:57:08 +05: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
Feanil Patel
375173f1df Use the default autodiscovery instead of passing in the installed apps. (#25467)
Passing in the INSTALLED_APPS lambda seems to result in some tasks for certain apps
like instructor_task and bulk_email to not get discovered properly.
2020-10-28 15:13:24 -04:00
Diana Huang
eef62eb207 Merge pull request #25465 from edx/robrap/constrain-edx-search
add constraint for edx-search<2.0.0
2020-10-28 14:29:40 -04:00
Robert Raposa
07972455a7 add constraint for edx-search<2.0.0
constraining edx-search because 2.0.0 requires
ES7 upgrade work to be complete.
2020-10-28 13:20:02 -04:00
Robert Raposa
7afee25ce2 Merge pull request #25456 from edx/robrap/fix-update-assets
fix update assets
2020-10-28 10:30:44 -04:00
David Ormsbee
2d4a7d8649 Merge pull request #25461 from edx/ormsbee/batch-fail-tasks
Add ability to manually fail instructor tasks in batches.
2020-10-28 10:09:07 -04:00
David Ormsbee
0ffd3699fc Add ability to manually fail instructor tasks in batches.
When an InstructorTask is stuck in QUEUING (say if there was a
problem with celery), the support team needs to manually intervene
and mark the task as "FAILED" so that new tasks of that type can
be created for that course. This is usually done one at a time,
but sometimes a bug or outage might cause many tasks to fail at
once, making recovery extremely cumbersome. This commit adds the
ability to do this process in batches.
2020-10-28 09:39:50 -04:00
Robert Raposa
e265a754aa fix update assets
An xmodule file that is loaded during update_assets
without settings was referring to the FEATURES setting
without checking if it existed.
2020-10-28 09:38:51 -04:00
Simon Chen
1edec15dd5 MST-400 Always return the latest approved valid ID verification (#25453) 2020-10-28 09:27:38 -04:00
Ahtisham Shahid
b36af3930d Fixed Alert issue in lbirary editor (#25433) 2020-10-28 11:20:41 +05:00
Feanil Patel
0191f2f1bb Don't install instructor_task for common testing. (#25459)
* Import instructor tasks explicitly on workers.

Importing them via app config leads to an dependency chain nightmare as lots of other apps get pulled into the startup
and are not configured in situations like testing the common and lib unit tests.  This should register tasks to the celery
workers without messing with the startup dependency chains of the LMS, CMS and test setup.
2020-10-27 18:34:27 -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
Matt Tuchfarber
1caf0875df Merge pull request #25381 from edx/tuchfarber/add_exec_ed_course_mdoe
Add Executive Education course mode
2020-10-27 10:09:30 -04:00
Matt Tuchfarber
488f30496e Add Executive Education course mode 2020-10-27 09:38:20 -04:00
Robert Raposa
13e8608bdb Merge pull request #25440 from regisb/regisb/deprecate-defaulttrue-toggles
Deprecate COURSE_OUTLINE_PAGE_FLAG and UNIFIED_COURSE_TAB_FLAG
2020-10-27 09:05:33 -04: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
59a434303f Merge pull request #25441 from edx/kdmccormick/fix-unregistered-instructor-tasks
Use AppConfig in instuctor_task app to ensure tasks are discovered
2020-10-26 17:01:26 -04:00
Kyle McCormick
762b4fdf7f Use AppConfig in instuctor_task app to ensure tasks are discovered
This fixes an issue where instructor_task Celery tasks were not being
auto-discovered, thus leaving them unregistered and unable to be
completed by our Celery workers.

TNL-7652
2020-10-26 15:23:22 -04:00
Kellie Selinka
48b4dfb201 Merge pull request #25438 from edx/kselinka_bump_enterprise_fixed_tests
bump edx-enterprise version number
2020-10-26 14:18:53 -04:00
Kellie Selinka
c1e15d43e1 bump edx-enterprise version number 2020-10-26 13:33:43 -04: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
023d364d33 Merge pull request #25382 from edx/adeel/van_18_forgot_password_recovery_options
Adds forgot password functionality for secondary email.
2020-10-26 16:30:30 +05:00
Umar Asghar
1c0a550ce1 remove the constraint on edx-sga 2020-10-26 12:04:22 +05:00