- 05 Oct, 2017 2 commits
-
-
John Eskew committed
-
John Eskew committed
-
- 22 Sep, 2017 1 commit
-
-
Jeremy Bowman committed
-
- 11 Jul, 2017 1 commit
-
-
cahrens committed
-
- 10 Jul, 2017 1 commit
-
-
Sofiya Semenova committed
-
- 07 Jul, 2017 1 commit
-
-
Sofiya Semenova committed
-
- 06 Jul, 2017 1 commit
-
-
Albert St. Aubin committed
-
- 12 Jun, 2017 1 commit
-
-
Andy Armstrong committed
-
- 05 Jun, 2017 4 commits
-
-
cahrens committed
-
EDUCATOR-229
cahrens committed -
Albert St. Aubin committed
-
EDUCATOR-11
cahrens committed
-
- 27 Apr, 2017 1 commit
-
-
cahrens committed
-
- 07 Apr, 2017 1 commit
-
-
TNL-6815
cahrens committed
-
- 06 Apr, 2017 1 commit
-
-
attiyaishaque committed
-
- 09 Mar, 2017 1 commit
-
-
rabiaiftikhar 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
-
- 09 Nov, 2016 1 commit
-
-
attiyaishaque committed
-
- 03 Nov, 2016 1 commit
-
-
This specifically enables/disables the underlying comment service client used to make calls to the service. When disabled, this client will now throw an exception which can be propagated upwards so that callers can make the right decision about how to notify users of the error, or handle retry, etc etc.
Toby Lawrence committed
-
- 18 Oct, 2016 1 commit
-
-
Firstly, we're now explicitly instructing the comments service to not return thread responses/comments if the request isn't AJAX. So, if you load the URL for a single discussion thread in your browser, this would be a non-AJAX call and we'll avoid loading the responses for the entire thread behind-the-scenes. Big win here for large threads. Next, we removed a redundant "get threads" call which was also happening behind-the-scenes. This call was redundant as the front-end JS also grabs the thread list when a topic is chosen, so we were making an extranenous call for no benefit. Poof, gone! Finally, we added some caching of database queries that are required to drive a lot of the permissions/cohorts machinery around discussion. This will have a minimal effect but introduced a cleaner way to apply general memoization at the per-request level which will let us further cache things as we identify them as issues.
Toby Lawrence committed
-
- 03 Aug, 2016 2 commits
-
-
Calen Pennington committed
-
Ned Batchelder 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
-
- 15 Jun, 2016 1 commit
-
-
Brian Jacobel 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
-
- 02 May, 2016 3 commits
-
-
More accurately, this creates a 4th shard because the last shard is always the default.
Ben Patterson committed -
TEST_DATA_MIXED_MODULESTORE Remove these test mixed modulestores: TEST_DATA_MIXED_TOY_MODULESTORE TEST_DATA_MIXED_CLOSED_MODULESTORE TEST_DATA_MIXED_GRADED_MODULESTORE
John Eskew committed -
John Eskew committed
-
- 28 Apr, 2016 1 commit
-
-
More accurately, this creates a 4th shard because the last shard is always the default.
Ben Patterson committed
-
- 12 Apr, 2016 2 commits
-
-
TEST_DATA_MIXED_MODULESTORE Remove these test mixed modulestores: TEST_DATA_MIXED_TOY_MODULESTORE TEST_DATA_MIXED_CLOSED_MODULESTORE TEST_DATA_MIXED_GRADED_MODULESTORE
John Eskew committed -
John Eskew committed
-
- 05 Apr, 2016 2 commits
-
-
Prevents start date alone from being used to filter out categories in self-paced courses during construction of the category map. ECOM-4017.
Renzo Lucioni committed -
Prevents start date alone from being used to filter out categories in self-paced courses during construction of the category map. ECOM-4017.
Renzo Lucioni committed
-
- 29 Jan, 2016 1 commit
-
-
M. Rehan 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
-
- 06 Aug, 2015 1 commit
-
-
Adds a read-only mode to the discussion module which disables any controls for updating the discussion (votes, follows, replies, etc). This mode is enabled for users who are not a member of the team, and are also not moderators, admins, or community TAs.
Peter Fogg committed
-
- 04 Aug, 2015 1 commit
-
-
TNL-1908
Diana Huang committed
-
- 31 Jul, 2015 1 commit
-
-
Ben McMorran committed
-
- 30 Jul, 2015 1 commit
-
-
Ben McMorran committed
-
- 13 Jul, 2015 1 commit
-
-
Ben McMorran committed
-