- 30 May, 2017 1 commit
-
-
Andy Armstrong committed
-
- 20 Mar, 2017 1 commit
-
-
Nimisha Asthagiri 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
-
- 19 Oct, 2016 1 commit
-
-
Previously, retry() was never called, so the task was never retried despite defining several retry-related variables.
Eric Fischer committed
-
- 16 Jun, 2016 1 commit
-
-
This commit "undoes"a previous hotfix, and allows a cms course_publish signal to trigger a block_structure update_course_in_cache task, which is run on an lms worker queue. Changes: -exposes ALTERNATE_QUEUE_ENVS -adds routing layer in celery.py -moves prior dev_with_worker settings file to devstack_with_worker -moves course_block api functionality into openedx/core/djangoapps/content/block_structure
Eric Fischer committed
-
- 04 May, 2016 1 commit
-
-
Instead, use a class attribute to define test behavior. This allows for easier addition of new mixins over time.
Calen Pennington committed
-
- 11 Dec, 2015 1 commit
-
-
Sarina Canelake committed
-
- 03 Aug, 2015 1 commit
-
-
Ned Batchelder committed
-
- 11 May, 2015 1 commit
-
-
Syed Hassan Raza committed
-
- 10 Apr, 2015 1 commit
-
-
Indexing moved to celery task. Reorganised indexing to always allow for full course reindex. Indexing code no longer needs to be in common, because it is triggered by signal instead of being called.g
Davorin Sego committed
-
- 27 Mar, 2015 1 commit
-
-
Clinton Blackburn committed
-
- 10 Mar, 2015 1 commit
-
-
Jonathan Piacenti committed
-
- 09 Feb, 2015 3 commits
- 16 Dec, 2014 1 commit
-
-
Import asset metadata XML into modulestore. Optimize importing many items of asset metadata by avoiding multiple round-trips to MongoDB.
John Eskew committed
-
- 01 Dec, 2014 1 commit
-
-
Sarina Canelake committed
-
- 31 Oct, 2014 1 commit
-
-
TE-489
muhammad-ammar committed
-
- 30 Sep, 2014 1 commit
-
-
Calen Pennington committed
-
- 04 Sep, 2014 1 commit
-
-
Nimisha Asthagiri committed
-
- 29 Aug, 2014 1 commit
-
-
Calen Pennington committed
-
- 27 Aug, 2014 1 commit
-
-
Calen Pennington committed
-
- 08 Aug, 2014 2 commits
-
-
Remove post-publish step.
Nimisha Asthagiri committed -
Nimisha Asthagiri committed
-
- 24 Jul, 2014 1 commit
-
-
Nimisha Asthagiri committed
-
- 23 Jul, 2014 1 commit
-
-
STUD-327
cahrens committed
-
- 14 Jul, 2014 1 commit
-
-
Nimisha Asthagiri committed
-
- 10 Jul, 2014 1 commit
-
-
Nimisha Asthagiri committed
-
- 07 Jul, 2014 1 commit
-
-
LMS-2876
Don Mitchell committed
-
- 30 Jun, 2014 1 commit
-
-
Calen Pennington committed
-
- 26 Jun, 2014 1 commit
-
-
Refactor get_parent_locations STUD-1663
Nimisha Asthagiri committed
-
- 29 May, 2014 1 commit
-
-
[LMS-2757]
Calen Pennington committed
-
- 13 May, 2014 2 commits
-
-
Calen Pennington committed
-
Calen Pennington committed
-
- 12 May, 2014 1 commit
-
-
add target_location_namespace check
Adam Palay committed
-
- 07 May, 2014 1 commit
-
-
This commit adds all of cms. These keys are now objects with a limited interface, and the particular internal representation is managed by the data storage layer (the modulestore). For the LMS, there should be no outward-facing changes to the system. The keys are, for now, a change to internal representation only. For Studio, the new serialized form of the keys is used in urls, to allow for further migration in the future. Co-Author: Andy Armstrong <andya@edx.org> Co-Author: Christina Roberts <christina@edx.org> Co-Author: David Baumgold <db@edx.org> Co-Author: Diana Huang <dkh@edx.org> Co-Author: Don Mitchell <dmitchell@edx.org> Co-Author: Julia Hansbrough <julia@edx.org> Co-Author: Nimisha Asthagiri <nasthagiri@edx.org> Co-Author: Sarina Canelake <sarina@edx.org> [LMS-2370]
Calen Pennington committed
-
- 21 Mar, 2014 1 commit
-
-
STUD-1433
zubiar-arbi committed
-
- 20 Mar, 2014 1 commit
-
-
Jay Zoldak committed
-
- 05 Mar, 2014 1 commit
-
-
Also fixes STUD-1351
Diana Huang committed
-
- 12 Feb, 2014 1 commit
-
-
STUD-149
cahrens committed
-