forked from instructure/canvas-lms
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Outcomes import job runner with status and errors
Fixes OUT-1997 Test Plan: - On an account with no outcomes, - In the rails console, run the following: Attachment.skip_3rd_party_submits(true) a = Attachment.new a.context = Account.first path = 'spec/lib/outcomes/fixtures/demo.csv' a.uploaded_data = File.open(path,'rb') a.display_name = 'qa-test-outcomes-import' a.save! i = OutcomeImport.create!( context: Account.first, workflow_state: :created, attachment: a ) i.run - You should see a bunch of sql commands. Now run: i.reload i.progress # should be 100 i.workflow_state # should be "succeeded" Change-Id: I90a2e7808fcf1baf662832e5955a41c3b36e3add Reviewed-on: https://gerrit.instructure.com/142220 Reviewed-by: Neil Gupta <[email protected]> Tested-by: Jenkins Product-Review: Neil Gupta <[email protected]> QA-Review: Neil Gupta <[email protected]>
- Loading branch information
1 parent
de135ca
commit 052c748
Showing
5 changed files
with
240 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.