Commit Graph

9 Commits

Author SHA1 Message Date
Jeremy Stanley cb10625dcc export CC 1.3 assignment extension
test plan:
 - have an assignment in a course that has points possible
   and submission types
 - use the content exports API to export the course,
   supplying the currently undocumented parameter
   version=1.3
  a) examine the exported XML and verify that it follows
     the IMS standards
     http://www.imsglobal.org/cc/ccv1p3/AssignmentContentType.html
     http://www.imsglobal.org/cc/ccv1p3/CCv1p3Variantguidelines.pdf
  b) ensure the exported course re-imports correctly

fixes CNVS-13503

Change-Id: Iad8a54e94696962d362cfdb48fe03e06a90937ff
Reviewed-on: https://gerrit.instructure.com/36283
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: James Williams  <jamesw@instructure.com>
QA-Review: Clare Strong <clare@instructure.com>
Product-Review: Bracken Mosbacker <bracken@instructure.com>
2014-07-01 14:41:37 +00:00
Sterling Cobb 3f4fe6d295 Make course syllabus optional when copying courses
fixes #9185

This adds a new version of export files and ensures
older exports will work. We are now using a
canvas_export.txt resource to identify if this is a
canvas cartridge or a common cartridge.

Test Plan
1. Copy a course
2. When copying, unselect copy all and course syllabus
3. The syllabus shouldn't be copied over.

Change-Id: I37c9aa12aabe453ef4481c6f39b7b33c97b130bb
Reviewed-on: https://gerrit.instructure.com/14971
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
2012-11-08 09:29:50 -07:00
Bracken Mosbacker b34ced0bcb assignment freezing improvements and fixes
Adds an option to not allow already copied assignments from
being copied again

Assignment groups that contain a frozen assignment can not
be deleted

When an assignment is copied that didn't have the flag set
to be frozen, the copied flag isn't set. This allows the
assignment to be locked in the new course, but still edited

Test Plan:
 * In the plugin settings for assignment freezer check the option to not allow assignments to be copied twice
 * Create an assignment and flag it to be frozen
 * Copy the course, verify it is frozen
 * Try to copy the course again as a non-admin - The frozen assignments should not be copied
 * As a teacher try to delete an assignment group for a frozen assignment. The trash can should not appear
 * Copy an assignment that is flagged to be frozen
 * In the new course, you should be able to set the flag and still edit the assignment

closes #8736 #8549 #8537

Change-Id: Ia3f1be4d5c1b6112507338df7e5a49dd76a5ed7f
Reviewed-on: https://gerrit.instructure.com/10995
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Zach Pendleton <zachp@instructure.com>
2012-05-24 15:37:34 -06:00
Bracken Mosbacker f6d79b61ef when copying modules include all associated items
If you are doing a selective course copy and only select
modules, then anything those modules link to will also
be imported even if they're not selected.

Test Plan:
 * Create a course with one of everthing a module can link to.
 * Create a module that links to those items.
 * Do a selective course copy and only select the module to be copied
 * The module and the items it references should be copied

closes #8295

Change-Id: I4d597b50ec5d1490bbcdcf7f36d7d15671dca296
Reviewed-on: https://gerrit.instructure.com/10649
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
2012-05-10 15:56:45 -06:00
Bracken Mosbacker 65db1c051d copy attachments referenced in html content when copying course
This only gets files linked to in html content, files referenced
by context modules will come in a different commit

Test Plan:
 * Upload some files to a course
 * reference those files from various html content in the course like wiki pages, assignment descriptions, syllabus body, etc.
 * Copy the course, but do a selective copy and don't select any attachments to copy
 * When the copy is finished the new course should have the referenced files and the html content should appear correctly

closes #8410

Change-Id: If81979b850ef71d06a56b88561e2991fd864e66f
Reviewed-on: https://gerrit.instructure.com/10577
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
2012-05-09 10:31:02 -06:00
Bracken Mosbacker 37a65cec7c allow selective course exports
Test Plan:
  * There is no UI for this yet, so check the specs.

refs #4645

Change-Id: Ibe159d222ba9a05e2edc4ead5eeb3e48b77c3542
Reviewed-on: https://gerrit.instructure.com/9741
Tested-by: Hudson <hudson@instructure.com>
Reviewed-by: Simon Williams <simon@instructure.com>
2012-04-02 17:28:51 -06:00
Bracken Mosbacker 169e54d87b added blti links to cc importer
Also had to change the export/importing of blti links
from canvas

refs #4153

Change-Id: Iae2d6e9c677d310d7e824fa78885c8aca2c1af83
Reviewed-on: https://gerrit.instructure.com/5703
Tested-by: Hudson <hudson@instructure.com>
Reviewed-by: Cody Cutrer <cody@instructure.com>
2011-09-23 13:27:54 -06:00
Bracken Mosbacker b4f08ddf07 improve error handling for course exports
single-item failures don't stop the whole export
all errors are saved to the export object and also
written to the manifest file of the export

Change-Id: Ib92d33c2d205b1f5d09f8d60c5b87bf18abb56ed
Reviewed-on: https://gerrit.instructure.com/4588
Reviewed-by: Brian Palmer <brianp@instructure.com>
Tested-by: Hudson <hudson@instructure.com>
2011-07-07 10:28:48 -06:00
Bracken Mosbacker cfe4b5ffc8 moved common cartridge folder up a level
refs #3396

Change-Id: I34eca357286e50b0d3d82c15e27dfb4015da45a4
Reviewed-on: https://gerrit.instructure.com/3041
Tested-by: Hudson <hudson@instructure.com>
Reviewed-by: Brian Palmer <brianp@instructure.com>
2011-04-18 08:09:08 -06:00