Commit Graph

7 Commits

Author SHA1 Message Date
Cody Cutrer c65d57737a RuboCop: Layout lib
Change-Id: I0655d9a9d750f2debd6378b03d8ddc1403ebc31b
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/274158
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Simon Williams <simon@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
2021-09-22 20:01:52 +00:00
Cody Cutrer 06763dd519 add # frozen_string_literal: true for lib
Change-Id: I59b751cac52367a89e03f572477f0cf1d607b405
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/251155
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Simon Williams <simon@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
2020-10-27 20:49:50 +00:00
Landon Wilkins 5ba312a04d da licença part 32
add consistent license headers to all source files
(ruby, coffeescript, javascript)

except for vendor files

Change-Id: Ibb971e1256b9ebf4ed4b50efac991472abba82fc
Reviewed-on: https://gerrit.instructure.com/110058
Tested-by: Jenkins
Reviewed-by: Jon Jensen <jon@instructure.com>
Product-Review: Jon Jensen <jon@instructure.com>
QA-Review: Jon Jensen <jon@instructure.com>
2017-04-27 22:00:01 +00:00
Mysti Sadler 662e538b0d Stop creating context module progressions for non-enrolled users
fixes OFFW-111

Test plan
- Ensure the module status in the export package is still exporting
  correctly

Change-Id: I5abc614277641489f8e81d30a1063e6ab7563bb0
Reviewed-on: https://gerrit.instructure.com/103133
Tested-by: Jenkins
Reviewed-by: Jon Willesen <jonw+gerrit@instructure.com>
QA-Review: Nathan Rogowski <nathan@instructure.com>
Product-Review: Mysti Sadler <mysti@instructure.com>
2017-02-28 17:12:26 +00:00
Jon Willesen 7b764be7a2 fix offline export for admins
fixes OFFW-103

test plan:
* login as admin not enrolled in the course
* do an offline export for the course
* no errors

Change-Id: I71f342d3a3a8978429bc915ec0e8ac4d5f193cbc
Reviewed-on: https://gerrit.instructure.com/102236
Reviewed-by: Mysti Sadler <mysti@instructure.com>
QA-Review: Nathan Rogowski <nathan@instructure.com>
Product-Review: Jon Willesen <jonw+gerrit@instructure.com>
Tested-by: Jenkins
2017-02-16 18:49:41 +00:00
Mysti Sadler bd5238a23a Export current module progress to web_zip
fixes OFFW-85

Test plan
- Theoretically there shouldn't be any issues with caching
  and testing.  If something looks super weird, though...
  maybe.
- Have a course with some modules, module items,
  and module item completion requirements, at least a few of
  which are not "must view" so you can see the difference
  between real progress and the module progressor
- Have a student in the course who has not completed everything
  in the modules
- Create a web zip export
- Ensure the web zip export completion field matches what
  existed in Canvas BEFORE the export

Change-Id: Ib8ad7095a30ec5cade1697c6d8f6cb5b356f6074
Reviewed-on: https://gerrit.instructure.com/101837
Tested-by: Jenkins
Reviewed-by: Jon Willesen <jonw+gerrit@instructure.com>
QA-Review: Nathan Rogowski <nathan@instructure.com>
Product-Review: Mysti Sadler <mysti@instructure.com>
2017-02-15 21:46:37 +00:00
Jon Willesen 3f76da834a progress available must_view module requirements
Adds an algorithm for offline content that will progress through all
available 'must_view' module requirements.

closes OFFW-40

test plan:
* Setup a module with some "must view" requirements
* From the console, create a MustViewModuleProgressor and call
  make_progress
* Note that all available "must view" module requirements have been
  marked as completed, and "must view" items that should be unlocked
  as a result of those actions are also completed, through the whole
  completion chain.
* Progress should stop on any completion item that is not a "must view"
  completion requirement.
* Progress should be made exactly as if the student had viewed these
  items manually.

Change-Id: Id76fe7d4a84187f3450c564fbbb72f0b372c62c4
Reviewed-on: https://gerrit.instructure.com/96048
Reviewed-by: Mysti Sadler <mysti@instructure.com>
QA-Review: Nathan Rogowski <nathan@instructure.com>
Tested-by: Jenkins
Product-Review: Jon Willesen <jonw+gerrit@instructure.com>
2016-12-05 21:30:07 +00:00