- Jan 02, 2020
-
-
Calen Pennington authored
-
Manjinder Singh authored
* Added pytest-json-report plugin - modifying app-opts in setup.cfg - adding hook to all conftest.py files in repo - setting report to be saved to test_root/log/warnings.json - Writing custom logic to save json report to avoid overwrite if pytest called twice This was created to allow us to easily parse through test warnings in jenkins
-
edX cache uploader bot authored
-
Abdul Hannan authored
Rename start in schedule 3/5
-
hunytalk authored
-
Zainab Amir authored
-
Matthew Piatetsky authored
[REV-1061] Set discount on order based on discount that was on basket
-
Manjinder Singh authored
Fixing typo
-
- Jan 01, 2020
-
-
Zaman Afzal authored
-
- Dec 31, 2019
-
-
David Ormsbee authored
Fix test that assumes 2020 is in the future.
-
David Ormsbee authored
-
Syed Muhammad Dawoud Sheraz Ali authored
ORA update
-
Aarif authored
Added on_delete parameter to models
-
DawoudSheraz authored
-
- Dec 30, 2019
-
-
David Ormsbee authored
Query optimizations
-
Jeremy Bowman authored
-
David Ormsbee authored
In Django template rendering, context processors only run once. But when we do template rendering through edxmako (which we do for each and every web fragment/XBlock), we can end up having hundreds of invocations of templates and run context processors for each separately. This removes that work.
-
David Ormsbee authored
This adds request caching to the following places: * course expiration wrapper (displayed in Units) * offer banner generation (displayed in Units) * get_enrollment * user_by_anonymous_id * youtube_disabled_for_course On a sample course with edx-val enabled, this reduced the queries for a large sequence from 450 to 155.
-
edX cache uploader bot authored
-
Jeremy Bowman authored
In the script used to create the bok-choy database cache files, we've been passing in the parameters to omit timestamps that change for every run in some of the mysqldump commands but not all of them. Use them consistently so we can stop creating new redundant automated bok-choy DB cache PRs on almost every merge to edx-platform.
-
David Ormsbee authored
Safer CourseOverview.org filed matching
-
Feanil Patel authored
Lower the pylint threshold.
-
Feanil Patel authored
We fixed various deprecation warnings as part of BOM-1024
-
Feanil Patel authored
Fix all E303 pep8 errors.
-
Feanil Patel authored
-
Feanil Patel authored
-
Feanil Patel authored
Run `2to3 -f asserts . -w` on edx-platform.
-
Feanil Patel authored
-
Feanil Patel authored
Run `2to3 -f future . -w`
-
Manjinder Singh authored
-
Feanil Patel authored
This will remove imports from __future__ that are no longer needed. https://docs.python.org/3.5/library/2to3.html#2to3fixer-future
-
-
Awais Qureshi authored
BOM-1117
-
edX cache uploader bot authored
-
Feanil Patel authored
Python Requirements Update
-
Jeremy Bowman authored
Fix the issue that was preventing us from upgrading pytest. pytest does some manipulation of test packages that prevents `pkg_resources` from loading resources from them, but used to contain a workaround for the problem. That workaround was [removed](https://github.com/pytest-dev/pytest/issues/5392) in 4.6.0 as a performance enhancement when pytest switched from `pkg_resources` to `importlib-metadata` for its own entrypoint handling. This tripped up one of our test modules which defined classes that loaded templates from inside a test package. Moving these resources to the parent package fixes the problem. More and more, `pkg_resources` is being abandoned in favor of `importlib-metadata` and `importlib_resources` as they have a simpler design with much better performance. However, `importlib_resources` doesn't support loading files from any directory which isn't itself a Python package (and doesn't allow direct use of paths including directories within the package). Jinja2 chose a [different approach](https://github.com/pallets/jinja/pull/1082) that we may want to emulate in our resource handling. Also fixed usage of a removed `pytest.raises()` parameter and a bug in our configuration of the `common/lib` tests that became a problem after the upgrade.
-
Awais Qureshi authored
Specifying a namespace in django.conf.urls.include() without providing an app_name is deprecated. Adding the app_name attribute in the included module.
-
edX requirements bot authored
-
Awais Qureshi authored
BOM-1124
-
Zainab Amir authored
etree.tostring returns bytes instead of string which when converted back to XML, to be rendered as etree element, presents stray characters. PROD-1116
-