Commit Graph

56246 Commits

Author SHA1 Message Date
Robert Raposa
39a7c6498c remove internal references to edx_django_utils
Tests were referring to internal implementation
details of edx-django-utils. This comment removes
those references to free the library up to be
refactored.

ARCHBOM-1584
2020-11-02 16:46:11 -05:00
Binod Pant
6dcb0fdb81 enterprise 3.10.0 (#25489) 2020-10-30 13:50:37 -04:00
Jansen Kantor
f41f4f7efd downgrade ora to 2.10.3 (#25487) 2020-10-30 11:12:26 -04:00
Kyle McCormick
854502b560 Re-generate import_shims modules for cms/djangoapps
Command:
import_shims/generate_shims.sh cms/djangoapps import_shims/studio
2020-10-30 10:20:48 -04:00
Kyle McCormick
14708147af Re-generate import_shims modules for lms/djangoapps
Command:
import_shims/generate_shims.sh lms/djangoapps import_shims/lms
2020-10-30 10:20:48 -04:00
Kyle McCormick
675497be02 Move sys_path_hacks modules to import_shims 2020-10-30 10:20:48 -04:00
Kyle McCormick
630d30563a Silence DeprecatedEdxPlatformImportWarning by default 2020-10-30 10:20:48 -04:00
Kyle McCormick
090e10683c Rename sys_path_hacks/ to import_shims/
The old folder name is somewhat confusing, because the
folder contains shims to _compensate for the removal
of sys.path hacks_, but does not contain the sys.path
hacks themselves.

Furthermore, this import_shims/ system could also be
used for other import path changes, such as turning
the locally-installed packages in common/lib/
into regular, importable modules
(e.g. `from common.lib.xmodule import abc` instead of
`from xmodule import abc`). So, a name that is not
specific to the sys.path hacks may be better
in the medium-to-long term.

Along the same lines, we also rename SysPathHackWarning
to DeprecatedEdxPlatformImportWarning.
2020-10-30 10:20:48 -04:00
Tim McCormack
644963255c Move toggle annotation invocation to a Jenkins job (#25484)
There wasn't any reason for this to be in edx-platform in particular.

See https://github.com/edx/jenkins-job-dsl-internal/pull/444 -- we can
run `make requirements; pip install -e .` in a code-annotations
virtualenv and point it at each IDA in turn to generate reports for all of them.

ARCHBOM-1583
2020-10-30 13:35:45 +00:00
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
Robert Raposa
759cbe2910 Merge pull request #25286 from regisb/regisb/extract-waffle-utils
[BD-21] Move waffle_utils from edx-platform to edx-toggles
2020-10-30 08:50:04 -04:00
edX requirements bot
db50766181 Updating Python Requirements (#25486) 2020-10-30 14:33:27 +05: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
373ee5f320 Ensure compatibility with edx-toggles despite upcoming breaking changes
edx-toggles==2.0.0 is likely to suppress namespace objects for the
management of toggle objefcts. We explicitely prevent this by adding a
requirement constraint.
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
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
Régis Behmo
daef264ebb Use SettingDictToggle to document ENABLE_ORA_TEAM_SUBMISSIONS 2020-10-29 11:11:02 +01:00
Régis Behmo
87b5463d42 Use SettingDictToggle to document ENTRANCE_EXAMS 2020-10-29 11:11:02 +01:00
Régis Behmo
460f637fa7 Use SettingDictToggle to document MILESTONES_APP 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
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