Commit Graph

251 Commits

Author SHA1 Message Date
Piotr Surowiec
bc1e9afe4b feat: allow overriding unit icons (#21433)
This:
1. Introduces a new override using the `pluggable_override` decorator.
It is now possible to specify a custom way of getting XBlock's icon
by defining `GET_UNIT_ICON_IMPL` in settings.
2. Introduces a way to add custom `XBLOCK_MIXINS` by defining
`XBLOCK_EXTRA_MIXINS` in settings. This allows, e.g. to add
new fields to XBlocks.
2021-04-07 09:42:12 -04:00
Awais Jibran
d4c557f765 Reference openedx/olxcleaner (#27256)
* Reference openedx/olxcleaner and remove pypi for olxcleaner
2021-04-06 20:40:25 +05:00
Awais Jibran
ad7f6019fe Integrate "olxcleaner" with course import (#27164)
* Integrating olxcleaner in course import

* Adding toggle removal date and addressing pylint issues.
2021-03-31 13:26:14 +05:00
Fred Smith
41b01c07eb fix: use github version of py2neo instead of PyPI
The version of Py2neo we depend on has been removed from PyPI.  This is
a stop-gap until we can upgrade it
2021-03-29 14:09:29 -04:00
Awais Qureshi
47f874f350 BOM-2130
Upgrade the django-rest framework.
2021-01-08 16:13:24 +05:00
usamasadiq
b5a4aeed79 Revert celery custom fork 2020-12-14 12:06:56 +05:00
Manjinder Singh
28e6a3e43d ARCHBOM-1536: Adding edx/event-routing-backed to requriments and eventtracking app to installed_apps (#25706)
* ARCHBOM-1536: Adding edx/event-routing-backed library in requirements

* Adding eventtracking app to INSTALLED_APPS
2020-12-07 09:05:30 -05:00
Awais Qureshi
4bf9bb53c8 Adding custom fork celery with better logging. 2020-11-20 18:02:23 +05:00
Robert Raposa
8eef18710d set code_owner for celery tasks
ARCHBOM-1260

Co-authored-by: Tim McCormack <tmccormack@edx.org>
2020-11-17 15:33:33 -05:00
Régis Behmo
43d1e43296 Add edx-toggles requirement (#25411)
This will be necessary to migrate waffle_utils classes to edx-toggles.
2020-10-22 18:59:35 -04:00
Feanil Patel
b73f755487 Revert "Feanil/edx search update (#25406)" (#25412)
This reverts commit 581b20056d.
2020-10-22 15:53:57 -04:00
Feanil Patel
581b20056d Feanil/edx search update (#25406)
OeX_ES-44:  Update edx-search elasticsearch.


* removes redundant doc_types from the lms/cms, replaces courseware
index with doc_types to two indices
* code polishing

* Use a new config variable for ES7 deployment. (#2226)

Co-authored-by: Golub-Sergey <1.golub.sergey.1@gmail.com>
Co-authored-by: Diana Huang <diana.k.huang@gmail.com>
2020-10-22 14:18:19 -04:00
Jeremy Bowman
d19368525b DEPR-43 Remove most of the shoppingcart app (#24692)
Removed most of the deprecated shoppingcart app, leaving just enough to allow us to cleanly remove the related database tables later. Also removed the relevant Django settings that weren't in use elsewhere.
2020-10-14 14:24:52 -04:00
Tim McCormack
5b331b2d4d Merge branch 'master' into timmc/misc-metric-attribute
# Conflicts:
#	cms/envs/common.py
#	lms/envs/common.py
2020-09-28 13:56:08 +00:00
Tim McCormack
f29e418264 Revert "Revert "ARCHBOM-1494: Refer to custom attributes, not metrics, especially with edx-django-utils (#25010)" (#25025)" (#25055)
This reverts commit 986a448d9e.
2020-09-28 13:53:57 +00:00
Tim McCormack
ae0741d637 Make dependency constraint note terse, and add description 2020-09-25 19:39:51 +00:00
Soban Javed
b7ca6d5619 Upgrade celery to 4.4.7
Replace django-celery with django-celery-results
Upgrade redis to latest
2020-09-22 16:20:45 +05:00
Ahtisham Shahid
986a448d9e Revert "ARCHBOM-1494: Refer to custom attributes, not metrics, especially with edx-django-utils (#25010)" (#25025)
This reverts commit ba9ee4e151.

Fixed Style lint issue
2020-09-21 13:48:00 +05:00
Tim McCormack
ba9ee4e151 ARCHBOM-1494: Refer to custom attributes, not metrics, especially with edx-django-utils (#25010)
This uses the new names introduced in edx-django-utils
3.8.0 (edx/edx-django-utils#59), which we're already using, as
well as updating a few other locations where we incorrectly refer
to New Relic custom metrics instead of custom attributes.

Includes a couple of unrelated lint fixes in a file I modified.
2020-09-18 13:33:50 +00:00
Muhammad Soban Javed
bc52a7adac Revert "Upgrade redis to latest version" 2020-09-08 23:41:12 +05:00
Muhammad Soban Javed
c9e4e65ddb Merge pull request #24855 from edx/imsobanjaved/BOM-1994
Upgrade redis to latest version
2020-09-08 19:01:54 +05:00
Régis Behmo
ba18d48ac3 Get rid of lepl deprecation warning by removing rfc6266 dependency (#24059)
The LEPL dependency was triggering a lot of deprecation warnings of the
form:

    venv/lib/python3.5/site-packages/lepl/matchers/support.py:497:
    DeprecationWarning: inspect.getargspec() is deprecated, use
    inspect.signature() instead
    argspec = getargspec(func)

It turns out that LEPL was only used by the rfc6266_parser package, which
itself was only used in one place to generate utf8-compliant
Content-Disposition headers.

This issue was noticed here:
https://github.com/SWW13/python-rfc6266-parser/issues/2
Unfortunately it is quite difficult to extract LEPL from the
rfc6266-parser package.

The rfc6266-parser package (https://pypi.org/project/rfc6266-parser/) is
itself a fork of the now-unmaintained rfc6266 package
(https://pypi.org/project/rfc6266/). Thus, it became high time to get
rid of this package. The FileResponse object can appropriately set the
Content-Disposition header, and thus replace the rfc6266 functionality,
since Django 2.0: https://code.djangoproject.com/ticket/16470

In our testing, the FileResponse object correctly set the
`filename*=utf-8''` value, following the RFC. The only difference is
that it does not provide "filename" fallback value, as expressed in the
RFC: https://tools.ietf.org/html/rfc6266#appendix-D

With rfc6266_parser:

    >> import rfc6266_parser
    >> rfc6266_parser.build_header("my_file_é.csv", filename_compat="video_urls.csv")
    b"attachment; filename=video_urls.csv; filename*=utf-8''my_file_%C3%A9.csv"

With FileResponse we have:

    >> from django.http import FileResponse
    >> import io
    >> response = FileResponse(io.StringIO(), as_attachment=True, filename="my_file_é.csv", content_type="text/csv")
    >> response.get("Content-Disposition")
    "attachment; filename*=utf-8''my_file_%C3%A9.csv"

We consider that this is a sufficiently minor difference, that will
impact very few browsers.
2020-08-31 09:30:27 -04:00
Soban Javed
bafb7757d1 Upgrade redis to latest version 2020-08-27 15:27:41 +05:00
Calen Pennington
0e55566d96 Attempt to fix devstack issues with an upgrade of django-ratelimit-backend 2020-07-16 13:56:41 -04:00
Luis Moreno
a96c218553 Use PyPi release of django-ratelimit 2020-07-07 19:19:55 -04:00
Tim McCormack
bba346cb7f Unpin PyJWT to unblock use of Apple auth backend (ARCHBOM-1281) (#24375)
...and pin django-ipware for the moment
2020-07-01 17:55:34 +00:00
M. Zulqarnain
061faba726 unpin sailthru-client and django-cookies samesite (#24358) 2020-06-30 20:26:58 +05:00
M. Zulqarnain
32643eada2 removed waffle constraint (#24333) 2020-06-26 13:38:45 +05:00
Eric Herrera
dcf9a3380a Remove mongoengine constraint to upgrade package avoiding raising StopIteration since after python 3.7 is produces an error. 2020-06-24 20:20:38 -05:00
Luis Moreno
66d9829443 Remove constraint from mako 2020-06-19 10:50:27 -04:00
Awais Qureshi
137fd0a96e Merge pull request #24126 from eduNEXT/eric/update-social-django-app-dep
[BD-6] Use Pypi release of social-app-django
2020-06-19 16:16:07 +05:00
M. Zulqarnain
db953d89a6 upgrade ora2 to install from PyPI (#24236) 2020-06-19 15:44:36 +05:00
Eric Herrera
249fcad94c Move social-app-django from github to base requirement, since PyPi version is now compatible with the platform. 2020-06-18 18:44:56 -05:00
Farhanah Sheets
6fedb15cc4 Revert "BOM-1703 : Ora2 Upgrade (#24221)"
This reverts commit f3161468a3.
2020-06-15 16:48:12 -04:00
M. Zulqarnain
f3161468a3 BOM-1703 : Ora2 Upgrade (#24221) 2020-06-15 18:44:07 +05:00
Awais Qureshi
03b5b4322f Revert "Updating the comment." 2020-06-11 17:16:57 +05:00
Awais Qureshi
ffe69a5b43 Updating the comment. 2020-06-10 17:57:45 +05:00
Awais Qureshi
4e84d435c1 BOM-1637
rename djang-babel to enmarker
upgrade the reqs
2020-06-09 21:52:54 +05:00
M. Zulqarnain
8c16a93cf6 install lti-consumer-xblock from pypi (#24167) 2020-06-09 02:26:14 +05:00
M. Zulqarnain
185fc3c8e0 update crowdsourcehinter to install from pypi (#24155) 2020-06-08 13:39:20 +05:00
Aarif
fe5a0cb68c Merge branch 'master' into openedx-chem-upgrade 2020-06-05 21:12:05 +05:00
Aarif
e90cf34471 ordered dependencies alphabetically as suggested 2020-06-05 19:18:24 +05:00
M. Zulqarnain
c382237c33 update django-appconf installation (#24151) 2020-06-05 19:09:58 +05:00
Aarif
dc2537c202 switch the dependencies to use openedx-chem from pypi
updated the constraints order
2020-06-05 18:50:41 +05:00
Eric Herrera
816f9e6e3a Move sorl-thumbnail dependencie from github.in to base.in since PyPi version is now compatible with DJango 2.2 and python 3.5. 2020-06-02 20:15:15 -05:00
Diana Huang
e3d85bcd74 Replace bridgekeeper fork with upstream
and make upgrade.
2020-05-29 12:01:34 -04:00
Jeremy Bowman
47d15ff1a8 Update tested versions of Python and Django (#24006)
Cleaned up a few more things about the testing configuration now that we've deployed Django 2.2 to production:

* Go back to a single version of django-oauth-toolkit, tox doesn't need to vary it anymore
* Go back to PyPI release of django-method-override
* Remove no longer needed dependency on python-oauth2 (we already removed the package it was used by)
* Update prepare_xdist_nodes.sh with new Django requirements file options
2020-05-19 12:19:20 -04:00
Robert Raposa
b98d200fdc Revert "Dark launch: Fix site shadowing and 1+N queries in third party auth config fetching (#23824)" (#23935)
This reverts commit 79420640d5.
2020-05-07 09:38:54 -04:00
Tim McCormack
79420640d5 Dark launch: Fix site shadowing and 1+N queries in third party auth config fetching (#23824)
This performs a dark launch compare of the existing implementation
(still in use) for fetching TPA provider configs and a new
implementation, recording metrics on exceptions and mismatches.

The new implementation should have two benefits, once we're switched
over:

- Fix 1+N queries on login page view where the site for each config
  was fetched in a loop (ARCHBOM-1139)
- Don't allow configs with the same key on different sites to
  interfere with each other (regression test added)

The new impl does not use TieredCache, but only the request cache,
which we may want to adjust later.
2020-05-06 13:54:32 +00:00
George Babey
5d62456250 Merge pull request #23671 from open-craft/jill/samesite-cookies
SE-2320 Adds django-cookies-sameseite middleware
2020-04-20 13:15:26 -04:00