- 24 Feb, 2017 1 commit
-
-
Before this commit, we had to do a separate query for every course a user was enrolled in when determining whether a course was refundable (if you have a certificate, it isn't). Now the student dashboard will make a one-time query to grab all of a user's cert-issued courses. This is indexed, so it should be much faster than grabbing each one separately.
David Ormsbee 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
-
- 08 Dec, 2016 1 commit
-
-
Simon Chen committed
-
- 30 Nov, 2016 2 commits
-
-
Nimisha Asthagiri committed
-
Remove deprecated SingleSectionGrader. TNL-5987 Remove display_name and module_id from Scores objects Update CourseGradeFactory.__init__ to not be user-specific Update some callers to use CourseGrade class instead of "summary" dict Remove no longer needed course_grades.py module. Renamed django signal from GRADES_UPDATED to COURSE_GRADE_CHANGED
Nimisha Asthagiri committed
-
- 21 Oct, 2016 1 commit
-
-
Qubad786 committed
-
- 12 Oct, 2016 1 commit
-
-
Sanford Student committed
-
- 07 Oct, 2016 1 commit
-
-
Brandon DeRosier committed
-
- 06 Oct, 2016 1 commit
-
-
John Eskew committed
-
- 23 Sep, 2016 1 commit
-
-
It should help catch unicode encoding problems earlier. This also updates python-saml dependency to a version that includes a patch for unicode strings.
Matjaz Gregoric committed
-
- 04 Aug, 2016 1 commit
-
-
Sanford Student committed
-
- 03 Aug, 2016 2 commits
-
-
Calen Pennington committed
-
Ned Batchelder committed
-
- 27 Jul, 2016 1 commit
-
-
2. Add site configuration overrides to theming/helpers.py 3. Move microsite.get_value from theming/helpers to site_configuration/helpers 4. Move microsite_configuration.microsite.get_value usages to site_configuration.helpers.values
Saleem Latif committed
-
- 22 Jul, 2016 1 commit
-
- 13 Jul, 2016 2 commits
-
-
ECOM-4681
Ahsan Ulhaq committed -
Saleem Latif committed
-
- 24 Jun, 2016 2 commits
-
-
J. Cliff Dyer committed
-
Nimisha Asthagiri committed
-
- 23 Jun, 2016 1 commit
-
-
George Schneeloch committed
-
- 22 Jun, 2016 1 commit
-
-
Syed Hassan Raza committed
-
- 21 Jun, 2016 1 commit
-
-
ECOM-4199
Awais committed
-
- 15 Jun, 2016 1 commit
-
-
ECOM-4217
Awais committed
-
- 14 Jun, 2016 1 commit
-
-
Ben Patterson committed
-
- 11 Jun, 2016 1 commit
-
-
ECOM-4217
Awais committed
-
- 23 May, 2016 2 commits
-
-
Giovanni Di Milia committed
-
Simon Chen committed
-
- 18 May, 2016 2 commits
-
-
attiyaishaque committed
-
Add bokchoy test and changes in html
Awais Jibran committed
-
- 17 May, 2016 1 commit
-
-
Waheed Ahmed 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
-
- 02 May, 2016 3 commits
-
-
Introduces a utility class for gauging a user's progress towards program completion. Progress data is passed to the ProgramListFactory. ECOM-3200.
Renzo Lucioni committed -
ECOM-3437
Waheed Ahmed committed -
ECOM-3437
Waheed Ahmed committed
-
- 26 Apr, 2016 2 commits
-
-
Introduces a utility class for gauging a user's progress towards program completion. Progress data is passed to the ProgramListFactory. ECOM-3200.
Renzo Lucioni committed -
ECOM-3437
Waheed Ahmed committed
-
- 25 Apr, 2016 1 commit
-
-
ECOM-3437
Waheed Ahmed committed
-
- 21 Apr, 2016 1 commit
-
-
Giovanni Di Milia committed
-
- 20 Apr, 2016 1 commit
-
-
remove CertificateStatuses.regenerating
Adam Palay committed
-
- 14 Apr, 2016 1 commit
-
-
Adam Palay committed
-