1. 09 Nov, 2016 1 commit
  2. 07 Mar, 2016 1 commit
  3. 02 Dec, 2015 2 commits
    • CohortMembership Test Fixes · 88a38965
      There are 3 main changes in this commit:
      * CohortFactory now sets up memberships properly, so consuming tests do not
      need to explicitly touch CourseUserGroup.users to add() users.
      * test_get_cohort_sql_queries has been updated to 3 and 9 queries when using
      and not using the cache, respectively. This is needed due to each operation
      needing an extra queery to get the CourseUserGroup from the CohortMembership.
      * Adding remove_user_from_cohort(), the counterpart to add_user_to_cohort().
      This is also to keep tests from touching the users field directly, and keep
      CohortMembership data in sync.
      Eric Fischer committed
    • CohortMembership Transaction Fixes · 731d85f7
      An issue arose recently due to ATOMIC_REQUESTS being turned on by default. It
      turns out that CohortMemberships had been somewhat relying on the old default
      transaction handling in order to keep CohortMemberships and the underlying
      CourseUserGroup.users values in-sync.
      
      To fix this, I've made all updates to Cohortmemberships go through an
      outer_atomic(read_committed=True) block. This, is conjunction with the already
      present select_for_update(), will no longer allow 2 simultaneous requests to
      modify objects in memory without sharing them. Only one process will be
      touching a given CohortMembership at any given time, and all changes will be
      immediately comitted to the database, where the other process will see them.
      
      I've also included some changes to get_cohort(), add_user_to_cohort(), and
      remove_user_from_cohort() in order to properly make use of the new
      CohortMembership system.
      Eric Fischer committed
  4. 13 Jul, 2015 1 commit
  5. 06 Jun, 2015 1 commit
  6. 23 Mar, 2015 5 commits
  7. 15 Jan, 2015 2 commits
  8. 10 Dec, 2014 1 commit
  9. 05 Dec, 2014 1 commit
    • Add support for user partitioning based on cohort. · f24f01d2
      JIRA: TNL-710
      
      IMPORTANT: this commit converts the course_groups
      package to using migrations.  When deploying to an
      existing openedx instance, migration 0001 may fail
      with an error indicating that the CourseUserGroup
      table already exists.  If this happens, running
      the 0001 migration first, with the --fake option,
      is recommended.  After performing this step,
      remaining migrations should work as expected.
      jsa committed
  10. 30 Oct, 2014 1 commit
  11. 01 Oct, 2014 1 commit
  12. 11 Sep, 2014 1 commit
  13. 28 Aug, 2014 1 commit
  14. 28 Jul, 2014 1 commit
  15. 29 May, 2014 1 commit
  16. 22 May, 2014 1 commit
  17. 20 May, 2014 1 commit
  18. 07 May, 2014 1 commit
    • Make course ids and usage ids opaque to LMS and Studio [partial commit] · e2bfcf2a
      This commit updates common/djangoapps.
      
      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
  19. 09 Apr, 2014 1 commit
  20. 07 Apr, 2014 1 commit
  21. 03 Dec, 2013 1 commit
  22. 19 Jun, 2013 1 commit
  23. 06 Feb, 2013 1 commit
  24. 25 Jan, 2013 2 commits
  25. 24 Jan, 2013 5 commits