canvas-lms/lib/data_fixup
Jacob Fugal e2f11f5542 don't try and eager load in a data fixup
fixes CNVS-21318

eager load will try and select all the columns of the joined table by
name. but due to race conditions, being in the middle of running
migrations, it's possible the process will know of a column that hasn't
been created yet. naming it in the select will break the query.

Change-Id: I71ddd01c77f8f6157e36a01103dff52b7b967284
test-plan: N/A
Reviewed-on: https://gerrit.instructure.com/63902
Reviewed-by: Cody Cutrer <cody@instructure.com>
Tested-by: Jenkins
Product-Review: Jacob Fugal <jacob@instructure.com>
QA-Review: Jacob Fugal <jacob@instructure.com>
2015-09-24 17:05:16 +00:00
..
add_lti_message_handler_id_to_lti_resource_placements.rb qualified names fixes for migrations 2015-09-17 22:03:28 +00:00
add_pseudonym_to_student_view_students.rb rails4: deprecate Relation#all in favor of Relation#to_a 2015-07-24 21:28:14 +00:00
add_role_id_to_base_enrollments.rb add role id to student view enrollments in data fixup 2014-11-13 19:51:32 +00:00
add_role_overrides_for_new_permission.rb fix add role overrides for new permission datafixup 2014-12-17 17:59:31 +00:00
assignment_override_title_change.rb fixed title creation of assignment overrides 2015-09-03 16:22:41 +00:00
attach_dissociated_discussion_topics.rb qualified names fixes for migrations 2015-09-17 22:03:28 +00:00
change_graded_survey_submissions_to_not_need_grading.rb fix submission deadlocks, fixes CNVS-15988 2014-10-23 23:09:52 +00:00
clear_any_new_styles_feature_flags.rb Make sure no one has the new styles feature enabled 2014-08-25 16:01:34 +00:00
convert_high_contrast_setting_to_feature_flag.rb Convert 'high-contrast' from user pref to feature flag 2014-04-17 19:47:38 +00:00
copy_role_overrides.rb rails4: deprecate Relation#all in favor of Relation#to_a 2015-07-24 21:28:14 +00:00
delete_empty_conversations.rb conversations: delete conversations with no messages 2013-12-13 15:44:32 +00:00
delete_facebook_channels.rb destroy facebook channels and services 2015-03-06 23:24:43 +00:00
deprecate_hide_from_students_on_wiki_pages.rb deprecate hide_from_students on wiki pages 2014-01-15 21:29:06 +00:00
detect_attachment_encoding.rb rails4: deprecate Relation#all in favor of Relation#to_a 2015-07-24 21:28:14 +00:00
escape_s3_filenames.rb arel-ify lib 2013-04-01 19:12:22 +00:00
exclude_deleted_entries_from_unread_count.rb don't try and eager load in a data fixup 2015-09-24 17:05:16 +00:00
filter_page_view_url_params.rb rails4: deprecate Relation#all in favor of Relation#to_a 2015-07-24 21:28:14 +00:00
fix_audit_log_uuid_indexes.rb don't autorequire a bunch of gems that are rarely used 2015-04-09 18:47:50 +00:00
fix_blank_course_section_names.rb fix data fixup helper method definition 2014-01-20 23:51:43 +00:00
fix_broken_file_links_in_assignments.rb don't autorequire a bunch of gems that are rarely used 2015-04-09 18:47:50 +00:00
fix_bulk_message_attachments.rb use preload/eager_load instead of includes 2015-09-08 20:32:05 +00:00
fix_content_tags_without_content.rb fix importing module items with missing content 2014-08-18 18:12:35 +00:00
fix_corrupt_assessment_questions_from_cnvs19292.rb quote table names in joins 2015-07-16 16:35:31 +00:00
fix_group_discussion_submissions.rb resolves group discussion entries not appearing in gradebook and speedgrader 2014-12-29 18:20:51 +00:00
fix_imported_question_media_comments.rb fix media comment link replacement in imported questions 2015-09-23 19:35:01 +00:00
fix_imported_wiki_front_pages.rb fix legacy wiki front page behavior 2013-09-03 19:27:02 +00:00
fix_imported_wiki_page_workflow.rb quote table names in joins 2015-07-16 16:35:31 +00:00
fix_incorrect_attachment_file_state.rb fix incorrect file state in Attachment#restore 2014-09-18 21:06:18 +00:00
fix_incorrect_published_states_on_quizzes_and_assignments.rb fix incorrect published states for quizzes and assignments 2014-06-20 17:28:39 +00:00
fix_invalid_course_ids_on_enrollments.rb don't try and eager load in a data fixup 2015-09-24 17:05:16 +00:00
fix_invalid_pseudonym_account_ids.rb use preload/eager_load instead of includes 2015-09-08 20:32:05 +00:00
fix_media_recording_submission_types.rb arel-ify lib 2013-04-01 19:12:22 +00:00
fix_orphaned_attachments.rb use qualified table names in EXISTS subqueries 2015-07-19 00:09:24 +00:00
fix_out_of_sync_outcome_alignments.rb quote table names in joins 2015-07-16 16:35:31 +00:00
fix_root_outcome_group_titles.rb rails4: use preload instead of includes for context associations 2015-07-08 13:03:29 +00:00
fix_ungraded_counts_include_quiz_essays.rb modify data fixup to work in batches of assignments at a time 2012-03-17 09:36:21 -06:00
fix_unresolved_links_in_quizzes.rb don't unresolve links in quiz data when shifting dates 2015-09-03 02:55:10 +00:00
initialize_submission_cached_due_date.rb useful find_each 2013-07-18 22:26:46 +00:00
link_missing_sis_observer_enrollments.rb don't send notifications for added observer enrollments in datafix 2014-11-25 21:20:23 +00:00
migrate_ignores.rb use RecordNotUnique, not UniqueConstraintViolation 2014-09-15 23:24:52 +00:00
move_account_membership_types_to_roles.rb rails4: deprecate Relation#all in favor of Relation#to_a 2015-07-24 21:28:14 +00:00
move_content_export_notifications_to_migration_category.rb avoid running unsharded query in migrations for new shards 2014-06-24 18:18:03 +00:00
move_scribd_docs_to_root_attachments.rb use preload/eager_load instead of includes 2015-09-08 20:32:05 +00:00
populate_account_auth_settings.rb fix sso settings population migration 2015-06-05 15:09:07 +00:00
populate_conversation_message_participant_user_ids.rb arel-ify lib 2013-04-01 19:12:22 +00:00
populate_conversation_message_properties.rb arel-ify lib 2013-04-01 19:12:22 +00:00
populate_conversation_participant_private_hash.rb make some module classes, so that they're easier to extend with a plugin 2015-04-09 16:57:37 +00:00
populate_conversation_participant_root_account_ids.rb make some module classes, so that they're easier to extend with a plugin 2015-04-09 16:57:37 +00:00
populate_conversation_root_account_ids.rb qualified names fixes for migrations 2015-09-17 22:03:28 +00:00
populate_group_category_on_discussion_topics.rb fix mysql migration 2014-05-20 16:33:48 +00:00
populate_lock_version_on_context_module_progressions.rb add lock_version to context module progressions 2014-04-08 23:03:27 +00:00
populate_overridden_due_at_for_due_date_cacher.rb remove shackles env munging in datafixups 2015-05-04 20:56:35 +00:00
populate_stream_item_associations.rb qualified names fixes for migrations 2015-09-17 22:03:28 +00:00
populate_stream_item_notification_category.rb rewrite activity stream summary for performance 2015-08-13 19:43:34 +00:00
populate_submission_versions.rb use qualified table names in EXISTS subqueries 2015-07-19 00:09:24 +00:00
reassociate_conversation_attachments.rb qualified names fixes for migrations 2015-09-17 22:03:28 +00:00
rebuild_quiz_submissions_from_quiz_submission_events.rb Fixes event rebuild tools, optimization for event_aggregator 2015-05-29 17:14:48 +00:00
rebuild_quiz_submissions_from_quiz_submission_versions.rb Adds 'grade changed' reporting to data fix logging 2015-05-21 16:55:25 +00:00
recalculate_course_account_associations.rb useful find_each 2013-07-18 22:26:46 +00:00
recompute_unread_conversations_count.rb Data fix migration to recompute unread conversations count. Fixes #8308 2012-05-15 14:52:38 -06:00
reevaluate_incomplete_progressions.rb track incomplete requirements in module progressions 2015-09-03 19:36:18 +00:00
regenerate_user_thumbnails.rb qualified names fixes for migrations 2015-09-17 22:03:28 +00:00
reintroduce_deleted_entries_to_unread_count.rb use preload/eager_load instead of includes 2015-09-08 20:32:05 +00:00
remove_bogus_enrollment_associated_user_ids.rb arel-ify lib 2013-04-01 19:12:22 +00:00
remove_duplicate_enrollments.rb fix old migration that used a dropped column 2015-01-20 17:28:59 +00:00
remove_duplicate_group_discussions.rb qualified names fixes for migrations 2015-09-17 22:03:28 +00:00
remove_duplicate_notification_policies.rb qualified names fixes for migrations 2015-09-17 22:03:28 +00:00
remove_extraneous_conversation_tags.rb qualified names fixes for migrations 2015-09-17 22:03:28 +00:00
remove_invalid_observers.rb don't allow a user to observe oneself 2015-03-19 20:46:07 +00:00
remove_multiple_root_folders.rb rails4: deprecate Relation#all in favor of Relation#to_a 2015-07-24 21:28:14 +00:00
remove_orphaned_context_module_progressions.rb use qualified table names in EXISTS subqueries 2015-07-19 00:09:24 +00:00
remove_orphaned_submission_versions.rb validations on Version and SubmissionVersion 2014-12-12 23:29:45 +00:00
resanitize_assignments_allowed_extensions.rb sanitize assignment.allowed_extensions from the api 2013-07-17 20:18:10 +00:00
reset_ungraded_counts.rb fix submission deadlocks, fixes CNVS-15988 2014-10-23 23:09:52 +00:00
sanitize_completion_requirements.rb fix module item XSS vulnerability, closes CNVS-10767 2014-01-27 23:25:43 +00:00
sanitize_eportfolios.rb don't autorequire a bunch of gems that are rarely used 2015-04-09 18:47:50 +00:00
set_account_lti_opaque_ids.rb lti: use asset_strings relative to tools in opaque identifiers 2013-11-19 23:50:32 +00:00
set_wiki_has_no_front_page.rb use qualified table names in EXISTS subqueries 2015-07-19 00:09:24 +00:00
sis_app_url_account_setting.rb Set sis_app url as canvas account setting 2015-08-19 21:51:03 +00:00
undelete_some_outcome_alignments.rb quote table names in joins 2015-07-16 16:35:31 +00:00
unify_active_assignment_workflow_states.rb finish removing course.publish_grades_immediately 2013-06-04 18:11:08 +00:00
use_asset_user_access_last_access.rb don't try to update the whole AssetUserAccesses table at one time 2012-03-17 09:20:34 -06:00