canvas-lms/lib/canvas/migration
Jeremy Stanley cabece352d log job ids in exports and imports
if something goes wrong, but not so wrong that the entire export
or import fails (so there is no captured exception), it's
essentially impossible to review logs of the migration. if we
store the job id, we can provide it to the log-downloader script.

test plan:
 1. a. perform a common cartridge export
    b. in the console, examine ContentExport.last and ensure
       settings[:job_id] is set
    c. look at log/delayed_job.log and verify the log lines
       for the recent export include that id
 2. a. perform a course copy
    b. in the console, examine ContentMigration.last and ensure
       migration_settings[:job_ids] contains a job id
 3. a. perform a common cartridge import, choosing to import everything
    b. same as 2(b)
 4. a. perform a common cartridge import, choosing to import selectively
    b. make some kind of selection and complete the import
    c. ensure migration_settings[:job_ids] contains two job ids
       (one for each stage of the migration)

flag = none
closes LS-2730

Change-Id: I5d4028f4384111a06fa10d6327dce99c487fb9d6
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/275929
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Nate Armstrong <narmstrong@instructure.com>
QA-Review: Nate Armstrong <narmstrong@instructure.com>
Product-Review: Jeremy Stanley <jeremy@instructure.com>
2021-10-15 16:11:28 +00:00
..
external_content RuboCop: Lint/AssignmentInCondition 2021-09-29 03:38:39 +00:00
helpers RuboCop: Lint/AssignmentInCondition 2021-09-29 03:38:39 +00:00
validators RuboCop: Layout lib 2021-09-22 20:01:52 +00:00
worker log job ids in exports and imports 2021-10-15 16:11:28 +00:00
archive.rb RuboCop: Layout lib 2021-09-22 20:01:52 +00:00
error.rb RuboCop: Layout lib 2021-09-22 20:01:52 +00:00
migrator.rb RuboCop: Lint/AssignmentInCondition 2021-09-29 03:38:39 +00:00
migrator_helper.rb RuboCop: Lint/AssignmentInCondition 2021-09-29 03:38:39 +00:00
package_identifier.rb RuboCop: Lint/AssignmentInCondition 2021-09-29 03:38:39 +00:00
worker.rb RuboCop: Layout lib 2021-09-22 20:01:52 +00:00
xml_helper.rb RuboCop: Lint/AssignmentInCondition 2021-09-29 03:38:39 +00:00