Tweaks to outcome import / error model
References OUT-1997 References OUT-1534 Test Plan: - QA-CR Change-Id: Id6a204e7f3309510ae28a37f687edf364e6e263c Reviewed-on: https://gerrit.instructure.com/142341 Reviewed-by: Cody Cutrer <cody@instructure.com> Reviewed-by: Augusto Callejas <acallejas@instructure.com> Product-Review: Augusto Callejas <acallejas@instructure.com> QA-Review: Augusto Callejas <acallejas@instructure.com> Tested-by: Jenkins
This commit is contained in:
parent
359f2782ae
commit
e23e017022
|
@ -29,12 +29,14 @@ class OutcomeImport < ApplicationRecord
|
|||
|
||||
workflow do
|
||||
state :initializing
|
||||
state :created
|
||||
state :importing
|
||||
state :imported
|
||||
state :imported_with_messages
|
||||
state :aborted
|
||||
state :created do
|
||||
event :job_started, transitions_to: :importing
|
||||
end
|
||||
state :importing do
|
||||
event :job_completed, transitions_to: :succeeded
|
||||
event :job_failed, transitions_to: :failed
|
||||
end
|
||||
state :succeeded
|
||||
state :failed
|
||||
state :failed_with_messages
|
||||
end
|
||||
end
|
||||
|
|
|
@ -0,0 +1,25 @@
|
|||
#
|
||||
# Copyright (C) 2018 - present Instructure, Inc.
|
||||
#
|
||||
# This file is part of Canvas.
|
||||
#
|
||||
# Canvas is free software: you can redistribute it and/or modify it under
|
||||
# the terms of the GNU Affero General Public License as published by the Free
|
||||
# Software Foundation, version 3 of the License.
|
||||
#
|
||||
# Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
|
||||
# A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||
# details.
|
||||
#
|
||||
# You should have received a copy of the GNU Affero General Public License along
|
||||
# with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
|
||||
class AddRowToOutcomeImportError < ActiveRecord::Migration[5.0]
|
||||
tag :predeploy
|
||||
|
||||
def change
|
||||
add_column :outcome_import_errors, :row, :integer
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue