canvas-lms/lib/data_fixup
Ethan Vizitei d8aa101fab auditors migration handle missing courses
refs CNVS-48876
flag = none

TEST PLAN:
  1) run auditors repairing
  2) no course job errors out with failed FK check

Change-Id: I7bf569c810e48939fca4a54d7a93860d4129b183
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/240939
Reviewed-by: Jacob Burroughs <jburroughs@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
QA-Review: Ethan Vizitei <evizitei@instructure.com>
Product-Review: Ethan Vizitei <evizitei@instructure.com>
2020-06-23 17:43:59 +00:00
..
auditors auditors migration handle missing courses 2020-06-23 17:43:59 +00:00
lti Adds a CLI tool for updating LTI configurations 2017-07-18 21:14:44 +00:00
add_lti_id_to_users.rb add throttle to lti_id migrations 2019-01-24 17:11:50 +00:00
add_new_default_report.rb da licença part 28 2017-04-27 21:53:35 +00:00
add_post_policies_to_assignments.rb Don't murder database with post policies 2019-06-27 20:24:37 +00:00
add_role_overrides_for_new_permission.rb da licença part 28 2017-04-27 21:53:35 +00:00
add_tool_proxy_to_message_handler.rb rails 6: s/update_attributes/update/g 2020-01-09 20:56:35 +00:00
add_user_uuid_to_learning_outcome_results.rb Add user_uuid to LearningOutcomeResult 2020-03-02 18:02:09 +00:00
backfill_dev_key_account_bindings.rb Backfill dev key account bindings 2018-05-23 14:38:56 +00:00
backfill_dev_key_account_bindings_for_deleted_keys.rb Backfill bindings for deleted keys 2018-05-24 16:52:52 +00:00
backfill_moderation_graders.rb rails 5.2: bump rails 2018-08-13 15:18:04 +00:00
backfill_new_default_help_link.rb add covid resources help link as a default 2020-03-30 21:42:32 +00:00
backfill_nulls.rb only sleep on backfill nulls if updates are made 2019-07-24 19:42:21 +00:00
backfill_posted_at_on_submissions.rb don't run backfill posted_at migration in transaction 2019-01-31 20:25:57 +00:00
clear_feature_flags.rb da licença part 28 2017-04-27 21:53:35 +00:00
copy_big_blue_button_settings.rb add fallback BBB config to retrieve old recordings 2020-04-02 13:25:46 +00:00
copy_role_overrides.rb da licença part 28 2017-04-27 21:53:35 +00:00
create_lti_links_for_legacy_lti_tool_settings.rb rails 6: various fixes 2020-01-31 16:26:39 +00:00
delete_duplicate_notification_endpoints.rb add unique index to notification endpoints 2020-02-28 19:06:27 +00:00
delete_empty_adhoc_assignment_overrides.rb Clean up empty ADHOC assignment overrides 2018-03-09 21:25:18 +00:00
delete_empty_progressions.rb da licença part 28 2017-04-27 21:53:35 +00:00
delete_extra_placeholder_submissions.rb improve delete_extra_placeholder_submissions job load 2017-07-18 16:33:19 +00:00
delete_invalid_communication_channels.rb fix cc cleanup fixup for mixed case email addresses 2017-10-02 17:48:06 +00:00
delete_scores_for_assignment_groups.rb store scores for each assignment group 2017-09-22 14:46:27 +00:00
fix_assignment_peer_review_jobs.rb Add copyright message to remaining .rb files 2018-03-19 13:38:50 +00:00
fix_discussion_topic_materialized_views.rb Re-materialize views for out of sync discussion topics 2018-01-23 19:40:51 +00:00
fix_grader_visibility_data.rb don't enable double blind grader anonymity by default 2018-06-06 22:34:59 +00:00
fix_nan_group_weights.rb da licença part 28 2017-04-27 21:53:35 +00:00
fix_overwritten_file_module_items.rb da licença part 28 2017-04-27 21:53:35 +00:00
fix_planner_overrides_marked_complete_data.rb Change planner overrides controller to match planner items 2017-06-17 00:11:22 +00:00
fix_points_possible_sums_in_quizzes.rb fix floating point error in Quiz points_possible arithmetc 2017-05-31 22:09:44 +00:00
fix_reinserted_verifier_question_yaml.rb fix broken quiz yaml with misplaced escape slash 2018-12-21 13:14:53 +00:00
fix_select_final_grade_for_existing_accounts.rb fix select_final_grade datafixup 2018-08-14 21:47:28 +00:00
fixup_group_originality_reports.rb Fix last N+1 for adding originality_data to submission_history 2018-02-22 17:01:41 +00:00
fixup_plagiarism_subscriptions_after_shard_split.rb Add data fixups to help with live event cleanup post shard splits 2020-05-08 21:09:18 +00:00
import_instfs_attachments.rb canvas job to import references from inst-fs 2019-09-03 20:33:04 +00:00
init_account_index_for_course_audit_log.rb Cassandra migration jobs 2020-04-24 14:25:25 +00:00
init_new_grade_history_audit_log_indexes.rb fix more auditor fixup namespaces 2020-04-27 16:15:50 +00:00
initialize_submission_cached_due_date.rb change delayed job behavior when grading period is updated 2018-02-12 23:25:59 +00:00
make_late_policy_unique.rb rails 5.2: bump rails 2018-08-13 15:18:04 +00:00
migrate_messages_to_partitions.rb allow message migration job to run smaller batch sizes 2019-03-19 20:05:03 +00:00
move_feature_flags_to_settings.rb improve feature flag to settings datafixup migration performance 2019-10-01 12:24:30 +00:00
move_master_import_results.rb Add copyright message to remaining .rb files 2018-03-19 13:38:50 +00:00
move_sub_account_grading_periods_to_courses.rb limit lots more stuff to non_shadow root accounts 2019-05-20 22:49:36 +00:00
populate_account_report_date_times.rb da licença part 28 2017-04-27 21:53:35 +00:00
populate_context_on_wiki_pages.rb Add copyright message to remaining .rb files 2018-03-19 13:38:50 +00:00
populate_conversation_participant_private_hash.rb da licença part 28 2017-04-27 21:53:35 +00:00
populate_course_id_on_submissions.rb add course_id to submissions 2020-04-13 18:53:06 +00:00
populate_last_comment_at_on_submissions.rb add missing AND to data fixup 2018-04-05 14:34:40 +00:00
populate_media_tracks_web_vtt_content.rb convert SRT content to WBVTT 2019-04-11 20:12:45 +00:00
populate_points_for_all_scores.rb reduce batch size of PopulatePointsForAllScores jobs 2018-02-21 21:43:15 +00:00
populate_root_account_id_for_assignments.rb add sis_source_id to Assignments 2019-08-08 23:02:51 +00:00
populate_root_account_id_for_group_categories.rb re-run populate_root_account_on_group_category job 2018-02-13 20:49:30 +00:00
populate_root_account_id_on_models.rb Migration for root account id backfill 2020-06-06 02:17:03 +00:00
populate_root_account_id_on_user_observers.rb rails 6: s/update_attributes/update/g 2020-01-09 20:56:35 +00:00
populate_scores_and_metadata_for_assignment_groups_and_teacher_view.rb fix bad jobs paramater in populate scores datafix 2018-01-09 15:26:28 +00:00
populate_scores_course_score.rb store scores for each assignment group 2017-09-22 14:46:27 +00:00
populate_submission_anonymous_ids.rb populate submission anonymous_ids 2018-03-22 01:13:40 +00:00
reassociate_grading_period_groups.rb da licença part 28 2017-04-27 21:53:35 +00:00
rebuild_quiz_submissions_from_quiz_submission_events.rb Remove Quizzes::QuizSubmission#questions_as_object 2018-04-02 20:45:25 +00:00
rebuild_quiz_submissions_from_quiz_submission_versions.rb Remove Quizzes::QuizSubmission#questions_as_object 2018-04-02 20:45:25 +00:00
reclaim_instfs_attachments.rb add root_account_id to assessment_question_banks 2020-04-17 21:45:54 +00:00
reinsert_assessment_question_file_verifiers.rb datafix to re-add assessment question file verifiers 2018-10-26 19:11:38 +00:00
remove_invalid_assignment_overrides.rb datafix: clean up invalid assignment overrides 2018-06-15 19:28:30 +00:00
remove_orphaned_assignment_override_students.rb datafix: clean up invalid assignment overrides 2018-06-15 19:28:30 +00:00
resend_plagiarism_events_after_shard_split.rb Add data fixups to help with live event cleanup post shard splits 2020-05-08 21:09:18 +00:00
run_due_date_cacher_for_quiz_lti.rb cache quiz_lti on submissions 2019-06-27 14:28:42 +00:00
run_update_course_score_statistic.rb rewrite grades presenter course score statistic to be cached 2020-04-23 19:37:50 +00:00
set_account_setting_enable_turnitin.rb rails 6: various fixes 2020-01-31 16:26:39 +00:00
set_actl_context_type_for_course_level_tool_proxies.rb Distinguish course/account tool installs in ACTL 2019-11-05 18:28:45 +00:00
set_existing_binding_state.rb Update existing account bindings' workflow_state 2018-05-24 16:53:02 +00:00
set_lti_line_items_coupled.rb Delete assignments when deleting line items in API 2020-06-11 19:23:23 +00:00
set_posting_notification_frequency.rb fix default Submission(s) Posted notifications 2019-11-25 19:45:08 +00:00
split_up_user_preferences.rb reduce user preferences migration job size 2020-03-24 13:21:59 +00:00
turn_off_anonymous_grading_for_discussion_topics_and_quizzes.rb turn off anonymous grading for quizzes and discussion topics 2018-08-13 18:54:16 +00:00
update_anonymous_grading_settings.rb Switch old anonymous grading flag over, again 2018-06-21 17:33:38 +00:00
update_developer_key_access_token_counts.rb Add oidc_login_uri to ignored_columns 2019-03-12 20:04:38 +00:00
update_grading_standards_to_full_range.rb fix update grading standards datafix to be nicer to memory 2018-05-14 17:44:29 +00:00
validate_assignment_overrides.rb Ignore inactive enrollments in overrides list for show page 2017-12-28 19:31:09 +00:00