Commit Graph

5 Commits

Author SHA1 Message Date
Bracken Mosbacker 784b160c48 add rubrics to course copy options
Test Plan
 * Copy a course that has rubrics in it
 * You should be able to select only the rubrics you want to copy

closes #8138

Change-Id: Ie885dacb3cdc42b9781529fffe71c5782241f5cb
Reviewed-on: https://gerrit.instructure.com/10060
Tested-by: Hudson <hudson@instructure.com>
Reviewed-by: Cody Cutrer <cody@instructure.com>
2012-04-16 16:25:28 -06:00
Bracken Mosbacker ee7ac22532 properly handle some more course/wiki properties on course copy
The course menu configuration and locale settings were being
lost on course copy. The locking/editing settings for wiki
pages was also being lost.

Test Plan:
 * Make a custom ordering of the course menu, set the locale to spanish, and set a wiki page option to hide the page from students
 * Copy that course into another one.
 * Those set properties should be copied into the new course

closes #8133 #8157 #8134

Change-Id: I4e2b7ef8b89ac2000bbf8e3e26745c37972dd97e
Reviewed-on: https://gerrit.instructure.com/10059
Reviewed-by: Cody Cutrer <cody@instructure.com>
Tested-by: Hudson <hudson@instructure.com>
2012-04-16 16:25:24 -06:00
Bracken Mosbacker 5a34ab8854 make a qti-only export type
There is not UI in this commit, it just makes ContentExports
capable of creating QTI-only exports.

A QTI-specific manifest file is created and the HTMLExporter
was adapted to find referenced attachments in html content
so that those files can be exported automatically.

Test Plan:
 * Run a QTI export form the console and check out the resultant content package

refs #7760

Change-Id: Idf7f6a40ea385684ef996fc3e92a07020bb42be2
Reviewed-on: https://gerrit.instructure.com/9940
Tested-by: Hudson <hudson@instructure.com>
Reviewed-by: Cody Cutrer <cody@instructure.com>
2012-04-16 14:43:47 -06:00
Bracken Mosbacker 961aad6d3b properly handle selective external migration imports
The selective imports mostly worked before, but if a
given section was completely unchecked the previous
code would import it anyway. This fixes that and makes all
the decision code in one place and easy to test.

Test Plan:
 * Import a content package and only choose certain items
 * Only the items you chose should be imported

closes #5528

Change-Id: Ia6c0c1f5f9a44497053733101140cc74d6239129
Reviewed-on: https://gerrit.instructure.com/9799
Tested-by: Hudson <hudson@instructure.com>
Reviewed-by: Cody Cutrer <cody@instructure.com>
2012-04-04 12:25:29 -06:00
Bracken Mosbacker a942ede9c6 convert course copy to use export/import functionality
This adds the ability for ContentMigration to copy courses
by exporting to a content package and then importing that
package. For attachments it just creates a new Attachment
object instead of exporting/importing them.

The course copy API did not change.

The endpoints used by the course copy UI did change and this
commit doesn't allow selective copying, it only has the
option to copy everything. Selective copying will come in
another commit.

There are also various bug fixes for export/import

Test Plan:
 * copy a course through the API
 * copy a course through the Content Imports path
 * copy a course through the Copy Cours button on the course settings page
 * export a course

refs #4645

Change-Id: Ie577329ab7caaea8dfb9359542224a1a2657e167
Reviewed-on: https://gerrit.instructure.com/9742
Tested-by: Hudson <hudson@instructure.com>
Reviewed-by: Cody Cutrer <cody@instructure.com>
Reviewed-by: Simon Williams <simon@instructure.com>
2012-04-02 17:29:01 -06:00