1. 22 Sep, 2017 1 commit
  2. 07 Sep, 2017 1 commit
  3. 22 Aug, 2017 1 commit
  4. 15 Aug, 2017 1 commit
  5. 12 Jun, 2017 1 commit
  6. 05 May, 2017 2 commits
  7. 27 Apr, 2017 1 commit
  8. 24 Mar, 2017 1 commit
  9. 23 Feb, 2017 1 commit
    • Test Speedup: Isolate Modulestore Signals · 2051c909
      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
  10. 08 Dec, 2016 1 commit
  11. 03 Aug, 2016 1 commit
  12. 27 Jul, 2016 1 commit
  13. 22 Jul, 2016 1 commit
  14. 22 Jun, 2016 1 commit
  15. 15 Jun, 2016 1 commit
  16. 14 Jun, 2016 1 commit
  17. 11 Jun, 2016 1 commit
  18. 23 May, 2016 1 commit
  19. 21 Apr, 2016 1 commit
  20. 13 Apr, 2016 1 commit
  21. 06 Apr, 2016 1 commit
  22. 03 Feb, 2016 1 commit
  23. 22 Jan, 2016 1 commit
    • Disable audit certificates for new audit enrollments. · 96cc3895
      Two new certificate statuses are introduced, 'audit_passing' and
      'audit_notpassing'. These signal that the GeneratedCertificate is not
      to be displayed as a cert to the user, and that they either passed or
      did not. This allows us to retain existing grading logic, as well as
      maintaining correctness in analytics and reporting.
      
      Ineligible certificates are hidden by using the
      `eligible_certificates` manager on GeneratedCertificate. Some places
      in the coe (largely reporting, analytics, and management commands) use
      the default `objects` manager, since they need access to all
      certificates.
      
      ECOM-3040
      ECOM-3515
      Peter Fogg committed
  24. 20 Jan, 2016 1 commit
  25. 13 Jan, 2016 1 commit
    • Disable audit certificates for new audit enrollments. · 60860e3a
      An `eligible_for_certificate` field is added to the
      GeneratedCertificate model. This way we can retain existing grading
      logic, as well as maintaining correctness in analytics and reporting.
      
      Ineligible certificates are hidden by using the
      `eligible_certificates` manager on GeneratedCertificate. Some places
      in the coe (largely reporting, analytics, and management commands) use
      the default `objects` manager, since they need access to all
      certificates.
      
      This commit also updates the DB cache for acceptance tests.
      Peter Fogg committed
  26. 22 Dec, 2015 1 commit
  27. 08 Dec, 2015 1 commit
  28. 07 Dec, 2015 1 commit
  29. 25 Nov, 2015 2 commits
  30. 15 Oct, 2015 1 commit
  31. 10 Aug, 2015 1 commit
  32. 14 Jul, 2015 1 commit
  33. 01 Jul, 2015 1 commit
  34. 29 Jun, 2015 1 commit
  35. 22 Jun, 2015 1 commit
  36. 15 Jun, 2015 1 commit
    • certificates event tracking · 6afaa3cc
      some optimisations
      
      refactored code and added created event
      
      added test to make sure generate event is emitted
      
      changes based on feedback on 6/11
      
      added certificate web page and tests
      
      fixed quality violations
      Zia Fazal committed
  37. 08 Jun, 2015 1 commit
  38. 07 May, 2015 1 commit