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.
Fix multiple_dropdowns_question affected by CNVS-19292
migration 20150506164227 should be skipped on large environments and the following command should be manually run instead. rails console DataFixup::FixCorruptAssessmentQuestionsFromCnvs19292.run( [ 'calculated_question', 'numerical_question', 'matching_question', 'multiple_dropdowns_question' ], Date.parse('2015/3/14').beginning_of_day, # Beginning of corruption Date.parse('2015/3/18').end_of_day # End of corruption ) Fixes CNVS-19365 - Increments AssessmentQuestion version numbers so quizzes will pull new data on next quiz take Test plan - Effected quizzes should be fixed Change-Id: Iafae6525ae2406a6a4b3ae88c6f61e451719dd2b Reviewed-on: https://gerrit.instructure.com/53536 Reviewed-by: Cody Cutrer <[email protected]> Tested-by: Jenkins Reviewed-by: Cameron Sutter <[email protected]> Product-Review: Brian Finney <[email protected]> QA-Review: Brian Finney <[email protected]>
- Loading branch information
Showing
3 changed files
with
29 additions
and
15 deletions.
There are no files selected for viewing
7 changes: 0 additions & 7 deletions
7
db/migrate/20150319164227_fix_corrupt_assessment_questions_from_cnvs19292.rb
This file was deleted.
Oops, something went wrong.
19 changes: 19 additions & 0 deletions
19
db/migrate/20150506164227_fix_corrupt_assessment_questions_from_cnvs19292.rb
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
class FixCorruptAssessmentQuestionsFromCnvs19292 < ActiveRecord::Migration | ||
tag :postdeploy | ||
|
||
def up | ||
DataFixup::FixCorruptAssessmentQuestionsFromCnvs19292.send_later_if_production_enqueue_args( | ||
:run, | ||
{ | ||
:priority => Delayed::LOW_PRIORITY, | ||
:max_attempts => 1 | ||
}, | ||
[ | ||
'calculated_question', | ||
'numerical_question', | ||
'matching_question', | ||
'multiple_dropdowns_question' | ||
] | ||
) | ||
end | ||
end |
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