1. 16 Jun, 2016 1 commit
    • update_in_cache on lms worker (#12689) · fdc6d915
      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
  2. 25 May, 2016 1 commit
  3. 20 May, 2016 1 commit
  4. 04 May, 2016 1 commit
  5. 02 May, 2016 1 commit
  6. 28 Apr, 2016 1 commit
  7. 08 Apr, 2016 1 commit
  8. 30 Mar, 2016 1 commit
  9. 22 Mar, 2016 1 commit
  10. 17 Mar, 2016 1 commit
  11. 04 Mar, 2016 1 commit
    • Migrate correctly from scratch also · 631bfc08
      Unfortunately, instrospection.get_table_description runs
      select * from course_overview_courseoverview, which of course
      does not exist while django is calculating initial migrations, causing
      this to fail.  Additionally, sqlite does not support information_schema,
      but does not do a select * from the table.
      
      Lift the main part of mysql's get_table_description up to the migration itself
      and just inspect it directly.  Continue to call the API for sqlite.
      Kevin Falcone committed
  12. 26 Feb, 2016 2 commits
  13. 18 Feb, 2016 1 commit
  14. 11 Feb, 2016 1 commit
  15. 10 Feb, 2016 1 commit
  16. 09 Feb, 2016 1 commit
  17. 06 Feb, 2016 1 commit
  18. 03 Feb, 2016 1 commit
  19. 11 Jan, 2016 2 commits
  20. 23 Dec, 2015 1 commit
  21. 22 Dec, 2015 1 commit
  22. 19 Dec, 2015 1 commit
    • Modify CourseOverviews to create course image thumbnails. · 88c7d583
      Course teams occasionally upload very large files as their course
      image. Before this commit, those images would be used directly in
      the student's dashboard, sometimes leading to MBs worth of image
      data on that page. With this commit, we now auto-generate small
      and large thumbnails of configurable size. The Student Dashboard
      and Course About pages will make use of this new functionality
      (CourseOverview.image_urls), but the behavior of
      CourseOverview.course_image_url will not change.
      
      Note that the thumbnails are still created in the contentstore,
      and sit alongside their originals.
      
      What's included:
      
      1. Multiple sizes, currently starting with "raw", "small", and
         "large". This falls back to the current behavior automatically in
         the case where thumbnails don't exist or this feature has been
         disabled in configuration.
      
      2. Django admin based configuration for image sizes and whether
         to enable the functionality at all. Note that to regenerate
         images, you'd need to wipe the CourseOverviewImageSet model
         rows -- it doesn't do that automatically. This is partly because
         it's a very rare operation, and partly because I'm not entirely
         sure what the longer term invalidation strategy should be in a
         world where we might potentially have multiple themes. The
         flexible configuration was intended to allow better customization
         and theming.
      
      3. The Course About pages also use the new thumbnail functionality,
         as an example of "large". This is in addition to the "small"
         used on the student dashboard.
      
      Things I'm punting on for now (followup PRs welcome!):
      
      1. Bringing the thumbnails to course discovery. A quick attempt
         to do so showed that it wasn't getting properly invalidated
         and updated when publishes happen (so the old image still showed
         up). It probably has something to do with when we do the
         re-indexing because it stores this data in elasticsearch, but
         I'm not going to chase it down right now.
      
      2. Center-cropping. While this is a nice-to-have feature, the
         behavior in this PR is no worse than what already exists in
         master in terms of image distortion (letting the browser handle
         it).
      
      3. Automated invalidation of the images when a new config is
         created.
      David Ormsbee committed
  23. 16 Dec, 2015 2 commits
  24. 14 Dec, 2015 2 commits
  25. 10 Dec, 2015 1 commit
    • Update CourseOverview for Course Catalog · 8289c321
      Added the following fields to CourseOverview:
          announcement
          catalog_visibility
          course_video_url
          effort
          short_description
      
      Now requires CourseOverview models for each course in the system:
          Introduced a CourseOverviewGeneratedHistory model to keep track of
          when the CourseOverview table was seeded. The seeding can be
          done preemptively by calling the generate_course_overview management
          command. Otherwise, it is lazily computed, when needed.
      Nimisha Asthagiri committed
  26. 04 Dec, 2015 1 commit
  27. 22 Nov, 2015 1 commit
  28. 16 Nov, 2015 1 commit
  29. 10 Nov, 2015 1 commit
  30. 07 Nov, 2015 1 commit
  31. 20 Oct, 2015 2 commits
    • Remove foreign key constraint on CourseOverviewTab -> CourseOverview · 4ac97257
      This will allow v1 code of CourseOverview to delete entries. While
      this is not a good thing in general (and future versions will ignore
      entries with higher versions than they support), this is necessary
      to prevent errors with the existing code in a rollback situation.
      Otherwise, old code trying to delete CourseOverview entries will
      fail with a foreign key constraint violation.
      David Ormsbee committed
    • CourseOverview will only delete old versions of saved data. · 3cd34800
      Previously, CourseOverview would delete data for any version
      that didn't match the current one. That could cause problems
      during deploys, when multiple versions of CourseOverview
      were active. They would overwrite each other, and that could
      cause problems if the old one overwrote the new one -- in
      our case, the new one created a new table with foreign key
      links that the old one was unaware of, and trying to delete
      it would have caused an error.
      David Ormsbee committed
  32. 19 Oct, 2015 1 commit
  33. 09 Oct, 2015 1 commit
  34. 28 Sep, 2015 2 commits