Commit Graph

6 Commits

Author SHA1 Message Date
Landon Wilkins 7b669b4fd1 da licença part 16
add consistent license headers to all source files
(ruby, coffeescript, javascript)

except for vendor files

Change-Id: I155ca27aaa0c465a1d3cfa071c2030aa6b0d3c80
Reviewed-on: https://gerrit.instructure.com/110037
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 21:51:21 +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
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
Tyler Pickett ca744c9383 Bump inst-jobs version
Because of some changes in YAML serialization we're seeing sadness with
content migrations, this stems from the converter being passed as a
constant rather than a full object.

Refs: CNVS-34329

Test Plan:
- Job based things still work

Change-Id: I592045db8450678644ff441a4c74a359c93651cc
Reviewed-on: https://gerrit.instructure.com/99930
Reviewed-by: Cody Cutrer <cody@instructure.com>
QA-Review: Jeremy Putnam <jeremyp@instructure.com>
Product-Review: Tyler Pickett <tpickett@instructure.com>
Tested-by: Jenkins
2017-02-02 23:33:47 +00:00
Cameron Sutter fa3108c807 zip up course files
closes OFFW-49

test plan:
- Sign in as a user in a course that has Offline Web Downloads turned on
- navigate to the modules page
- Click on 'Download Course Content'
- go to the Rails Console
  - type: `Attachment.all.last.id`
  - take the ID it spits out
- request that file through the API
- ** if the URL attribute has epub_export/:id/ before files/:id/...
  then delete that part (expub_export/:id/) so that it reads
  something like localhost:3000/files/:id/download?download_frd=blahblah
- in a course without any course files, export the course content
  and you should get an empty zip file (you need to do all the stuff above)

Change-Id: I91fcbf35a1c482eab476dbcf4565f3499453253a
Reviewed-on: https://gerrit.instructure.com/97849
Tested-by: Jenkins
Reviewed-by: Mysti Sadler <mysti@instructure.com>
QA-Review: Nathan Rogowski <nathan@instructure.com>
Product-Review: Cameron Sutter <csutter@instructure.com>
2016-12-21 21:46:30 +00:00
Mysti Sadler e65ecd070e Setup job for web export
closes OFFW-36

test plan:
- you should be able to start a web zip export through
  the console
- this should cause module progression for all
  viewable items
- ensure epub exports still export

Change-Id: I901d491325fba3955af4544d1c1a2b87270cffff
Reviewed-on: https://gerrit.instructure.com/96752
Reviewed-by: Cameron Sutter <csutter@instructure.com>
Tested-by: Jenkins
QA-Review: Nathan Rogowski <nathan@instructure.com>
Product-Review: Jon Willesen <jonw+gerrit@instructure.com>
2016-12-14 20:10:47 +00:00