canvas-lms/app/models
Cody Cutrer c506b1a7de cross-shard user merging
test plan:
 * merge a user in one shard into a user in another shard
 * email addresses should come over (try pairs of users with
   different combinations of duplicate e-mail addresses and
   workflow states)
 * being an admin should come over
 * enrollments and pseudonyms also should come over, but aren't
   visible in the UI yet
 * user_services (twitter, facebook, linkedin, etc. on the profile)
   should come over
 * conversations and perma-observerness does *not* work yet
 * three users, all from different shards, together, and confirm
   the above again (especially being an admin, since that's what's
   visible in the UI)

Change-Id: I2b2cac62a18663e22faf72ebaae8123f703146c6
Reviewed-on: https://gerrit.instructure.com/14182
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Brian Palmer <brianp@instructure.com>
2012-10-24 13:22:11 -06:00
..
discussion_topic use ids relative to the default shard for strands refs #6886 2012-04-02 09:47:09 -06:00
quiz_question Some quiz result display fixes and a scoring fix. Fixes #7894 2012-05-22 09:32:21 -06:00
abstract_course.rb make course terms sticky 2011-09-30 11:00:27 -06:00
access_token.rb store and query hashed access tokens 2012-10-18 13:03:53 -06:00
account.rb add discovery url ui to saml config page 2012-10-12 13:45:05 -06:00
account_authorization_config.rb catch all exceptions during LDAP bind 2012-10-19 10:27:40 -06:00
account_notification.rb fix account announcements across shards fixes #7396 2012-03-13 09:14:26 -06:00
account_report.rb adding account report api closes #9456 2012-07-13 15:34:48 -06:00
account_user.rb respect course/account locale settings in notifications. 2012-10-08 13:17:10 -06:00
alert.rb a few more things to skip for deleted root accounts refs #6891 2012-08-21 13:49:23 -06:00
alert_criterion.rb alerts, closes #4317 2011-08-24 10:19:44 -06:00
announcement.rb allow group members to create announcments 2012-07-20 14:41:49 -06:00
appointment_group.rb respect course/account locale settings in notifications. 2012-10-08 13:17:10 -06:00
appointment_group_context.rb multiple contexts per appointment group 2012-04-30 15:30:03 -06:00
appointment_group_sub_context.rb multiple contexts per appointment group 2012-04-30 15:30:03 -06:00
assessment_question.rb move infer_defaults to before_validation so validation passes 2012-10-17 09:58:10 -06:00
assessment_question_bank.rb don't repeat questions when picking from banks, fixes #4212 2011-10-19 09:42:29 -06:00
assessment_question_bank_user.rb Initial commit. 2011-01-31 18:57:29 -07:00
assessment_request.rb respect course/account locale settings in notifications. 2012-10-08 13:17:10 -06:00
asset_user_access.rb remove dead code around page views 2012-03-15 08:46:51 -06:00
assignment.rb VDD: Assignment#due_dates_for(user), et al. 2012-10-23 09:06:30 -06:00
assignment_group.rb allow access to gradebook2 with :manage_grades permissions. 2012-10-01 09:37:22 -06:00
assignment_override.rb VDD: Assignment#due_dates_for(user), et al. 2012-10-23 09:06:30 -06:00
assignment_override_student.rb VDD: assignment override data structures 2012-10-17 12:47:37 -06:00
assignment_reminder.rb respect course/account locale settings in notifications. 2012-10-08 13:17:10 -06:00
attachment.rb retry failed crocodoc uploads 2012-10-10 11:20:35 -06:00
attachment_association.rb check all models for protecting attributes refs #3847 2011-05-25 17:38:50 -06:00
authorization_code.rb check all models for protecting attributes refs #3847 2011-05-25 17:38:50 -06:00
big_blue_button_conference.rb use global_id for the BBB voiceBridge number 2012-08-16 09:22:22 -06:00
bookmark_service.rb i18n Bookmark Service 2011-06-16 07:16:10 -06:00
calendar_event.rb fix calendar event import date shifting; fixes #9514 2012-09-14 15:14:39 -06:00
cloned_item.rb make sure links in assessment questions are correctly translated, fixes #6012 2011-10-21 08:36:34 -06:00
collaboration.rb remove collaborations.yml dependency, refs #5796 2011-10-25 17:32:32 -06:00
collaborator.rb respect course/account locale settings in notifications. 2012-10-08 13:17:10 -06:00
collection.rb allow setting collections to private 2012-07-30 09:10:31 -06:00
collection_item.rb items and followers counts for collections 2012-06-18 11:04:58 -06:00
collection_item_data.rb improve cross-shard collection item and activity stream support 2012-06-07 14:31:45 -06:00
collection_item_upvote.rb improve cross-shard collection item and activity stream support 2012-06-07 14:31:45 -06:00
communication_channel.rb respect course/account locale settings in notifications. 2012-10-08 13:17:10 -06:00
content_export.rb respect course/account locale settings in notifications. 2012-10-08 13:17:10 -06:00
content_migration.rb copy attachments referenced in html content when copying course 2012-05-09 10:31:02 -06:00
content_participation.rb submission unread counts 2012-10-09 09:41:27 -06:00
content_participation_count.rb don't .send() with an interpolated string 2012-10-11 15:29:04 -06:00
content_tag.rb only touch context module once on reorder 2012-08-17 15:14:17 -06:00
context.rb remove unused twitter tables and no-op jobs 2012-10-02 13:11:13 -06:00
context_external_tool.rb copy/export custom properties on canvas lti extensions 2012-10-09 10:46:33 -06:00
context_module.rb correctly replace modules and files on content migrations 2012-09-14 12:42:52 -06:00
context_module_item.rb allow using an item in modules more than once 2012-06-21 10:12:22 -06:00
context_module_progression.rb minor context module code cleanup 2012-09-06 14:16:42 -06:00
context_module_sub_header.rb optimize AdheresToPolicy 2011-07-14 13:25:28 -06:00
conversation.rb send bulk private messages in background process, fixes #7277, #8548 2012-09-25 09:55:36 -06:00
conversation_batch.rb send bulk private messages in background process, fixes #7277, #8548 2012-09-25 09:55:36 -06:00
conversation_message.rb fix bulk private message attachment regression, fixes #11277 2012-10-17 09:35:35 -06:00
conversation_message_participant.rb ensure context tags are shared by 2+ participants, fixes #7231 2012-02-13 13:29:45 -07:00
conversation_participant.rb send bulk private messages in background process, fixes #7277, #8548 2012-09-25 09:55:36 -06:00
course.rb add api for listing visible navigation tabs 2012-10-23 10:13:20 -06:00
course_account_association.rb check all models for protecting attributes refs #3847 2011-05-25 17:38:50 -06:00
course_import.rb make course copy have lower priority 2012-01-24 15:45:26 -07:00
course_section.rb optionally show concluded enrollments in gradebook2 2012-10-09 10:09:22 -06:00
crocodoc_document.rb fix crocodoc edit permissions 2012-09-28 13:06:15 -06:00
delayed_message.rb spread weekly notifications over saturdays 2012-09-27 15:24:13 -06:00
delayed_notification.rb notifications: allow including extra data for messages 2012-04-18 17:08:13 -06:00
designer_enrollment.rb straighten out course designer permissions 2012-01-13 18:56:50 -07:00
developer_key.rb allow sub-domains to match the redirect_uri on the developer key 2012-08-17 16:48:34 -06:00
dim_dim_conference.rb wimba integration, fixes #2989 2011-02-25 14:35:14 -07:00
discussion_entry.rb Email replies to locked topics should be ignored. 2012-10-02 12:57:39 -06:00
discussion_entry_participant.rb discussion topics materialized view api, refs #7567 2012-03-22 12:49:49 -06:00
discussion_topic.rb Fix deleted admin enrollments enabling student to see discussion topics without a post. Fixes #11192 2012-10-23 14:58:02 -06:00
discussion_topic_participant.rb read/unread state + counts for discussions; closes #7173 2012-02-24 13:34:54 -07:00
document_service.rb Initial commit. 2011-01-31 18:57:29 -07:00
enrollment.rb don't include future enrollments in current enrollments list. 2012-10-11 10:45:59 -06:00
enrollment_dates_override.rb term start/term end, rather than whenever 2011-09-13 15:20:15 -06:00
enrollment_term.rb improve performance of terms page 2012-05-29 09:52:46 -06:00
eportfolio.rb account-level option to disable eportfolios, closes #5169 2011-08-24 17:38:06 -06:00
eportfolio_category.rb localize ePortfolios 2011-06-24 13:17:25 -06:00
eportfolio_entry.rb 1.9 - fix eportfolios 2012-05-17 23:10:51 -06:00
error_report.rb strip_invalid_utf8 for error reports and incoming messages 2012-08-28 15:06:45 -06:00
etherpad_collaboration.rb remove collaborations.yml dependency, refs #5796 2011-10-25 17:32:32 -06:00
external_feed.rb fix up announcement external feeds API 2012-08-30 12:39:17 -06:00
external_feed_entry.rb check all models for protecting attributes refs #3847 2011-05-25 17:38:50 -06:00
external_url.rb optimize AdheresToPolicy 2011-07-14 13:25:28 -06:00
favorite.rb added favorite courses option to main menu 2011-10-24 15:50:34 -06:00
folder.rb add data validation to new folder creation, fixes #10906 2012-10-02 15:54:37 -06:00
google_docs_collaboration.rb Initial commit. 2011-01-31 18:57:29 -07:00
gradebook_upload.rb prepare for foreign keys refs #6895 2012-05-10 09:46:05 -06:00
grading_standard.rb assign the lowest grade for a below-scale score; fixes #8643 2012-06-20 14:32:28 -06:00
group.rb fixed css class typo for tab in group model 2012-10-19 12:21:42 -06:00
group_category.rb fix multiple data validation bugs, fixes #7020 2012-09-21 10:57:37 -06:00
group_membership.rb respect course/account locale settings in notifications. 2012-10-08 13:17:10 -06:00
inbox_item.rb added states so we can retire messages w/o deleting them yet 2011-08-16 21:15:26 -06:00
learning_outcome.rb undelete course objects on course copy 2012-05-07 09:24:14 -06:00
learning_outcome_group.rb add data validation to learning outcome title 2012-10-16 11:01:18 -06:00
learning_outcome_result.rb avoid several extra cases of saving learning outcome results 2011-05-31 13:10:33 -06:00
mailer.rb allow for configuration of outgoing email name 2011-07-21 13:33:16 -06:00
media_object.rb Use html5 to show videos by default & show subtitles 2012-10-11 12:28:48 -06:00
media_track.rb Use html5 to show videos by default & show subtitles 2012-10-11 12:28:48 -06:00
message.rb api: translate absolute paths to full urls with the canvas host 2012-07-02 09:53:59 -06:00
notification.rb respect course/account locale settings in notifications. 2012-10-08 13:17:10 -06:00
notification_policy.rb exclude retired CCs in NotificationPolicy.for(User) 2012-09-18 16:18:31 -06:00
oauth_request.rb check all models for protecting attributes refs #3847 2011-05-25 17:38:50 -06:00
observer_enrollment.rb fix page error if observed is not an active student 2012-03-09 10:46:56 -07:00
open_object.rb Initial commit. 2011-01-31 18:57:29 -07:00
page_comment.rb localize PageComments 2011-06-17 08:28:33 -06:00
page_view.rb rename Shard#description to id 2012-09-21 10:48:02 -06:00
plugin_setting.rb fix caching of nil PluginSettings 2012-09-10 17:04:53 -06:00
pseudonym.rb respect course/account locale settings in notifications. 2012-10-08 13:17:10 -06:00
pseudonym_session.rb require a password login for certain sensitive actions closes #6401 2012-08-02 10:22:48 -06:00
quiz.rb fixes numerical answers in quiz_statistics_csv 2012-10-15 15:39:53 -06:00
quiz_group.rb correctly prepare quiz questions when copying course 2012-05-08 09:10:41 -06:00
quiz_question.rb correctly prepare quiz questions when copying course 2012-05-08 09:10:41 -06:00
quiz_submission.rb saved quiz attempts not auto-submitted at due time, fixes #7933 2012-05-14 09:20:05 -06:00
quiz_submission_snapshot.rb check all models for protecting attributes refs #3847 2011-05-25 17:38:50 -06:00
report_snapshot.rb filter bogus snapshot data 2012-06-20 13:43:17 -06:00
role_override.rb optionally return permissions in load_all_contexts, closes #9957 2012-09-04 16:07:58 -06:00
rubric.rb don't allow too-long rubric titles, fixes #8776 2012-09-14 10:22:40 -06:00
rubric_assessment.rb Show freeform rubric comments to students, fixes #4864 2012-02-27 16:40:46 -07:00
rubric_association.rb don't try to link account rubrics to assessments; fixes #8864 2012-06-13 13:01:51 -06:00
scribd_account.rb check all models for protecting attributes refs #3847 2011-05-25 17:38:50 -06:00
scribd_mime_type.rb check all models for protecting attributes refs #3847 2011-05-25 17:38:50 -06:00
session_persistence_token.rb make "stay logged in" use a one-time token 2011-11-22 10:15:13 -07:00
setting.rb don't error Setting.from_config on empty .yml file 2012-09-14 15:17:50 -06:00
sis_batch.rb crocodoc integration 2012-09-21 12:57:02 -06:00
stream_item.rb correctly schedule stream item cleanup job 2012-10-04 10:45:41 -06:00
stream_item_instance.rb improve cross-shard collection item and activity stream support 2012-06-07 14:31:45 -06:00
student_enrollment.rb Minor fixes to StudentEnrollment associations. 2012-05-04 16:46:43 -06:00
student_view_enrollment.rb student view; closes #6995 2012-04-03 14:11:07 -06:00
submission.rb Refactor "score out of points possible" for quizzes and curb unrestrained high precision quiz scores. 2012-10-16 10:15:13 -06:00
submission_comment.rb submission unread counts 2012-10-09 09:41:27 -06:00
submission_comment_participant.rb check all models for protecting attributes refs #3847 2011-05-25 17:38:50 -06:00
ta_enrollment.rb straighten out course designer permissions 2012-01-13 18:56:50 -07:00
tableless.rb check all models for protecting attributes refs #3847 2011-05-25 17:38:50 -06:00
teacher_enrollment.rb straighten out course designer permissions 2012-01-13 18:56:50 -07:00
thumbnail.rb thumbnails inherit their s3 bucket from their attachment 2012-05-22 15:43:13 -06:00
user.rb cross-shard user merging 2012-10-24 13:22:11 -06:00
user_account_association.rb check all models for protecting attributes refs #3847 2011-05-25 17:38:50 -06:00
user_follow.rb some auto follow/unfollow fixes for sharding 2012-06-22 12:45:57 -06:00
user_note.rb User notes from conversation messages; still needs UI 2011-07-31 16:09:03 -06:00
user_observer.rb user co-enrollment backend work, closes #8588 2012-05-23 12:21:00 -06:00
user_profile.rb include root_account in section_tabs cache key 2012-08-17 14:15:10 -06:00
user_profile_link.rb add data validation to user profile links 2012-09-24 15:38:26 -06:00
user_service.rb updated user_profile API endpoints 2012-07-25 16:26:38 -06:00
web_conference.rb only send conference invitations to active members fixes #5290 2012-04-26 14:19:50 -06:00
web_conference_participant.rb check all models for protecting attributes refs #3847 2011-05-25 17:38:50 -06:00
wiki.rb remove WikiNamespace fixes #9121 2012-07-30 09:15:04 -06:00
wiki_page.rb wiki pages api; fixes #8140 2012-08-10 15:44:14 -06:00
wiki_page_comment.rb optimize AdheresToPolicy 2011-07-14 13:25:28 -06:00
wimba_conference.rb expose sortable name to user, fixes #5317 2011-10-31 12:22:08 -06:00
zip_file_import.rb use ids relative to the default shard for strands refs #6886 2012-04-02 09:47:09 -06:00