- 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
-
- 06 Oct, 2016 1 commit
-
-
John Eskew committed
-
- 06 Sep, 2016 1 commit
-
-
TNL-5274
J. Cliff Dyer committed
-
- 03 Aug, 2016 1 commit
-
-
Calen Pennington committed
-
- 28 Jun, 2016 1 commit
-
-
* Renames discussion_module to discussion_xblock * Moves common/lib/xmodule/xmodule_discussion to openedx/core/lib/xblock_builtin/xblock_discussion
E. Kolpakov 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
-
- 25 May, 2016 1 commit
-
-
Nimisha Asthagiri committed
-
- 20 May, 2016 1 commit
-
-
Nimisha Asthagiri committed
-
- 04 May, 2016 1 commit
-
-
By default, disable all caching in tests, to preserve test independence. In order to enable caching, inherit from CacheSetupMixin, and specify which cache configuration is needed. [EV-32]
Calen Pennington committed
-
- 17 Mar, 2016 1 commit
-
-
This will leverage the nose attrib plugin to allow us to break tests apart on our build system to run in parallel on separate nodes.
Ben Patterson committed
-
- 10 Feb, 2016 1 commit
-
-
Julien Paillé committed
-
- 16 Dec, 2015 1 commit
-
-
wajeeha-khalid committed
-
- 10 Nov, 2015 1 commit
-
-
Please note that this is a squshed commit and the work of: Symbolist, macdiesel, nedbat, doctoryes, muzaffaryousaf and muhammad-ammar
Usman Khalid committed
-
- 19 Oct, 2015 1 commit
-
-
* Fix paver violations to stablize edx-lint update * Parens, Line2Long * Fix missing docstrings * Fix PEP8 issues * Address PR feedback (thanks @nedbat!)
Matt Drayer committed
-
- 28 Sep, 2015 3 commits
-
-
Ben Patterson committed
-
Preserve DRF v2 behavior of defaulting to None for missing keys in the grading policy dictionary.
Will Daly committed -
* Upgrade edx-submissions * Upgrade edx-ora2 * Upgrade edx-val * Upgrade edx-proctoring * Update all edx-platform code that depends on DRF, including: - auth_exchange - cors_csrf - embargo - enrollment - util - commerce - course_structure - discussion_api - mobile_api - notifier_api - teams - credit - profile_images - user_api - lib/api (OAuth2 and pagination)
Will Daly committed
-
- 25 Sep, 2015 2 commits
-
-
Preserve DRF v2 behavior of defaulting to None for missing keys in the grading policy dictionary.
Will Daly committed -
* Upgrade edx-submissions * Upgrade edx-ora2 * Upgrade edx-val * Upgrade edx-proctoring * Update all edx-platform code that depends on DRF, including: - auth_exchange - cors_csrf - embargo - enrollment - util - commerce - course_structure - discussion_api - mobile_api - notifier_api - teams - credit - profile_images - user_api - lib/api (OAuth2 and pagination)
Will Daly committed
-
- 17 Jul, 2015 1 commit
-
-
Adam committed
-
- 16 Jul, 2015 1 commit
-
-
Waheed Ahmed committed
-
- 13 Jul, 2015 1 commit
-
-
Ben McMorran committed
-
- 30 Jun, 2015 1 commit
-
-
Display warning message on course outline in Studio when course contains deprecated features/components TNL-2303
muhammad-ammar committed
-
- 19 Jun, 2015 1 commit
-
-
John Eskew committed
-
- 13 May, 2015 1 commit
-
-
* Handle grading errors
Daniel Friedman committed
-
- 12 May, 2015 1 commit
-
-
Daniel Friedman committed
-
- 27 Mar, 2015 1 commit
-
-
Clinton Blackburn committed
-
- 10 Mar, 2015 1 commit
-
-
Celery requires all tasks to be in a tasks module. Also, the task has been updated to use default values if the the course structure generator encounters a block without the graded or format fields.
Clinton Blackburn committed
-
- 03 Mar, 2015 1 commit
-
-
This should prevent errors due to relative imports. See http://docs.celeryproject.org/en/latest/userguide/tasks.html#automatic-naming-and-relative-imports for additional information.
Clinton Blackburn committed
-
- 27 Feb, 2015 1 commit
-
-
CourseLocator is not JSON-serializable. Passing course keys as Unicode instead when scheduling tasks to update course structure.
Clinton Blackburn committed
-
- 13 Feb, 2015 1 commit
-
-
- Added tests - Updated model field specification - Fixed issue of multiple event emission - Updated admin page - Added management command to manually generate course structures
Clinton Blackburn committed
-
- 11 Feb, 2015 2 commits
-
-
David Ormsbee committed
-
David Ormsbee committed
-