- 06 Nov, 2017 1 commit
-
-
- Remove usage of django.urls.patterns - Change urls tuples to lists - Make all string view names callables - This is the second of several urls updates for LMS; a work in progress
bmedx committed
-
- 13 Sep, 2017 1 commit
-
-
LEARNER-2468
Clinton Blackburn committed
-
- 12 Jun, 2017 1 commit
-
-
Andy Armstrong committed
-
- 23 Feb, 2017 1 commit
-
-
There are a number of Django Signals that are on the modulestore's SignalHandler class, such as SignalHandler.course_published. These signals can trigger very expensive processes to occur, such as course overview or block structures generation. Most of the time, the test author doesn't care about these side-effects. This commit does a few things: * Converts the signals on SignalHandler to be instances of a new SwitchedSignal class, that allows signal sending to be disabled. * Creates a SignalIsolationMixin helper similar in spirit to the CacheIsolationMixin, and adds it to the ModuleStoreIsolationMixin (and thus to ModuleStoreTestCase and SharedModuleStoreTestCase). * Converts our various tests to use this new mechanism. In some cases, this means adjusting query counts downwards because they no longer have to account for publishing listener actions. Modulestore generated signals are now muted by default during test runs. Calls to send() them will result in no-ops. You can choose to enable specific signals for a given subclass of ModuleStoreTestCase or SharedModuleStoreTestCase by specifying an ENABLED_SIGNALS class attribute, like the following example: from xmodule.modulestore.tests.django_utils import ModuleStoreTestCase class MyPublishTestCase(ModuleStoreTestCase): ENABLED_SIGNALS = ['course_published', 'pre_publish'] You should take great care when disabling signals outside of a ModuleStoreTestCase or SharedModuleStoreTestCase, since they can leak out into other tests. Be sure to always clean up, and never disable signals outside of testing. Because signals are essentially process globals, it can have a lot of unpleasant side-effects if we start mucking around with them during live requests. Overall, this change has cut the total test execution time for edx-platform by a bit over a third, though we still spend a lot in pre-test setup during our test builds. [PERF-413]
David Ormsbee committed
-
- 18 Oct, 2016 3 commits
-
-
Amir Qayyum Khan committed
-
Amir Qayyum Khan committed
-
Amir Qayyum Khan committed
-
- 12 Oct, 2016 1 commit
-
-
Sanford Student committed
-
- 07 Oct, 2016 2 commits
-
-
Brandon DeRosier committed
-
Jesse Shapiro committed
-
- 03 Aug, 2016 1 commit
-
-
Calen Pennington committed
-
- 29 Jul, 2016 2 commits
-
-
Amir Qayyum Khan committed
-
Amir Qayyum Khan committed
-
- 06 Jun, 2016 1 commit
-
-
Calen Pennington committed
-
- 19 May, 2016 1 commit
-
-
Calen Pennington committed
-
- 02 May, 2016 1 commit
-
-
The JWT includes the user email and username, along with details pulled from the original access token (e.g. scope, expiration). ECOM-4221
Clinton Blackburn committed
-
- 26 Apr, 2016 1 commit
-
-
The JWT includes the user email and username, along with details pulled from the original access token (e.g. scope, expiration). ECOM-4221
Clinton Blackburn committed
-
- 25 Mar, 2016 1 commit
-
-
Amir Qayyum Khan committed
-
- 25 Feb, 2016 1 commit
-
-
REST APIs modified
Giovanni Di Milia committed
-
- 24 Feb, 2016 1 commit
-
-
Modified how the per object permissions are enforced in the CCX REST APIs
Giovanni Di Milia committed
-
- 27 Jan, 2016 1 commit
-
-
CCX REST APIs OAUTH2 authorization for CCX APIs - oauth2 authorization required for ccx list. - Course-instructor permission for ccx api endpoint - Protection for detail view too. Tests for CCX REST APIs and OAUTH2 authorization
Giovanni Di Milia committed
-