canvas-lms/lib
Chawn Neal 039f84dd6d datafix fill root_account_ids ConversationMessageParticipant
fixes VICE-3384
flag = none

Test Plan:
1) you can run the loop locally,
 and for one cmp.
2) watch how it sets the cmp.root_account_ids

ex:
ConversationMessageParticipant.where('id > 10')
 .limit(5).update_all(root_account_ids: nil)

Change-Id: Ibdb580e0a8f016126da8a60d93298f52def9455e
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/315024
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Omar Soto-Fortuño <omar.soto@instructure.com>
Migration-Review: Jacob Burroughs <jburroughs@instructure.com>
QA-Review: Caleb Guanzon <cguanzon@instructure.com>
Product-Review: Omar Soto-Fortuño <omar.soto@instructure.com>
2023-04-05 18:49:19 +00:00
..
address_book fix known_users function signature 2022-12-13 19:17:59 +00:00
api make group submissions quota exempt 2023-04-04 17:35:01 +00:00
app_center Remove unnecessary require statements 2023-01-04 21:38:21 +00:00
authentication_methods move inst_access to gem 2021-11-05 19:47:46 +00:00
base update i18n gem 2023-03-30 15:38:32 +00:00
basic_lti setting nq grade to nil not showing submissions 2023-02-08 17:00:17 +00:00
canvadocs Add send_usage_metrics to docviewer launch url 2022-12-16 20:52:53 +00:00
canvas send original id and domain in assignment_created 2023-04-03 21:59:40 +00:00
cc Add course setting for restrict quantitative data 2023-03-22 19:16:51 +00:00
cdc_migration_testing RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00
data_fixup datafix fill root_account_ids ConversationMessageParticipant 2023-04-05 18:49:19 +00:00
external_auth_observation external auth observation zeitwerk compatibility 2021-10-07 22:35:20 +00:00
feature_flags Remove unnecessary require statements 2023-01-04 21:38:21 +00:00
global_lookups make globalLookups a module to extend, not a stub 2021-10-26 14:58:27 +00:00
gradebook Apply score to ungraded with old and new gb filters 2022-03-11 20:05:29 +00:00
i18n/backend update i18n gem 2023-03-30 15:38:32 +00:00
latex RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00
lti Refactor necessary to expand acceptable aud values 2023-01-26 15:59:59 +00:00
messageable_user Use SHA256 for cache keys 2023-04-05 17:57:09 +00:00
microsoft_sync Refresh MS Sync user mappings after email changes 2022-07-18 19:53:35 +00:00
migration_helpers RuboCop: Style/HashSyntax 2021-11-25 14:02:35 +00:00
outcomes Integrate OSA helper with Learning Outcome Group Children 2023-04-04 15:59:07 +00:00
rake RuboCop: Style/SignalException 2021-11-19 22:24:25 +00:00
reporting Remove unnecessary require statements 2023-01-04 21:38:21 +00:00
schemas Add Lti Registration model 2023-03-22 13:41:35 +00:00
sentry_extensions Add "db." prefix for ActiveRecord Sentry traces 2022-03-25 12:44:49 +00:00
services Fix NoMethodError when notification service config missing 2023-04-03 18:14:24 +00:00
sis prevent restoring nested sub_account within deleted sub_account 2023-03-30 15:57:56 +00:00
support_helpers RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00
tasks Fix db:test:reset rake task 2023-03-03 21:49:26 +00:00
turnitin Show error if we can't fetch TII submission 2022-05-20 17:04:35 +00:00
user_content replacement attachments fetched in assignments index api 2022-12-13 19:24:32 +00:00
utils fix extra spaces in time strings 2022-04-05 19:10:26 +00:00
account_services.rb Remove Delicious from Canvas 2023-03-22 15:01:28 +00:00
address_book.rb RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00
anonymity.rb RuboCop: Style/RedundantSelf 2021-11-20 16:41:21 +00:00
api.rb handle shadow records in `api_find` 2023-03-21 22:07:27 +00:00
api_route_set.rb RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00
asset_signature.rb RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00
assignment_override_applicator.rb Use SHA256 for cache keys 2023-04-05 17:57:09 +00:00
assignment_util.rb RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00
authentication_methods.rb keep response formats consistent when nesting respond_to 2022-10-28 15:20:06 +00:00
basic_lti.rb Kill require_dependency 2023-01-09 19:51:01 +00:00
brand_account_chain_resolver.rb favor active sub-account for branding 2021-12-08 18:15:55 +00:00
brand_config_helpers.rb Don't include parents in chain for regular accounts 2022-04-14 16:56:51 +00:00
brand_config_regenerator.rb Fix recursive brand config regeneration for subaccounts 2022-06-09 17:14:47 +00:00
brandable_css.rb Remove unnecessary require statements 2023-01-04 21:38:21 +00:00
browser_support.rb Allow Chrome OS LTS 2023-02-22 16:57:41 +00:00
canvadocs.rb Kill require_dependency 2023-01-09 19:51:01 +00:00
canvas_logger.rb Remove unnecessary require statements 2023-01-04 21:38:21 +00:00
cc.rb Kill require_dependency 2023-01-09 19:51:01 +00:00
content_licenses.rb RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00
content_notices.rb RuboCop: Style/SymbolArray, Style/WordArray 2021-11-23 14:30:08 +00:00
content_zipper.rb Remove unnecessary require statements 2023-01-04 21:38:21 +00:00
conversation_batch_scrubber.rb RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00
conversation_helper.rb Data fix up for Conversation/ConversationParticipant 2023-02-17 19:17:24 +00:00
copy_authorized_links.rb RuboCop: Style/IfInsideElse, Style/SoleNestedConditional 2021-11-23 14:28:35 +00:00
course_link_validator.rb Fix joinining on nil in valid_route? 2021-12-16 19:50:55 +00:00
course_pace_due_dates_calculator.rb Use calendar event blackout dates in due date calculations 2022-08-10 18:58:39 +00:00
course_pace_hard_end_date_compressor.rb Use compressor in publish 2022-08-25 22:33:09 +00:00
course_paces_date_helpers.rb Use calendar event blackout dates in due date calculations 2022-08-10 18:58:39 +00:00
custom_validations.rb RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00
cuty_capt.rb Remove unnecessary require statements 2023-01-04 21:38:21 +00:00
dates_overridable.rb Remove points display for ungraded surveys 2022-02-16 16:47:44 +00:00
delayed_message_scrubber.rb RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00
differentiable_assignment.rb add granular permissions for managing course content 2022-04-11 20:53:27 +00:00
due_date_cacher.rb new quiz deleted enrollment restore workflow_state 2023-03-21 16:50:43 +00:00
dump_helper.rb Remove unnecessary require statements 2023-01-04 21:38:21 +00:00
duplicating_objects.rb RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00
effective_due_dates.rb deprioritize section overrides for nonactive enrollments 2022-12-22 18:20:06 +00:00
email_address_validator.rb RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00
enrollments_from_user_list.rb RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00
eportfolio_page.rb improve recent submission filtering in eportfolios 2023-01-10 22:55:55 +00:00
external_feed_aggregator.rb RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00
external_statuses.rb RuboCop: Style/MutableConstant 2021-11-16 16:19:54 +00:00
feature.rb Add "shadow" property to feature flags 2023-02-09 22:03:35 +00:00
feature_flags.rb Add "shadow" property to feature flags 2023-02-09 22:03:35 +00:00
file_authenticator.rb Use SHA256 for cache keys 2023-04-05 17:57:09 +00:00
file_in_context.rb Stop duplicating files on repeat cartridge imports 2022-02-03 15:07:56 +00:00
file_splitter.rb RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00
global_lookups.rb make globalLookups a module to extend, not a stub 2021-10-26 14:58:27 +00:00
google_docs_preview.rb RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00
grade_calculator.rb Remove unnecessary require statements 2023-01-04 21:38:21 +00:00
gradebook_exporter.rb fix gradebook exports for global ids 2022-12-16 21:12:07 +00:00
gradebook_grading_period_assignments.rb fix viewing grades for deactivated students 2022-02-16 17:56:03 +00:00
gradebook_importer.rb Remove unnecessary require statements 2023-01-04 21:38:21 +00:00
gradebook_settings_helpers.rb RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00
gradebook_user_ids.rb fix sorting by first name when filtering by group 2023-04-04 15:27:15 +00:00
grading_period_helper.rb RuboCop: Style/RedundantSort 2021-11-19 22:25:07 +00:00
has_content_tags.rb RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00
health_checks.rb add jobs cluster tag 2023-01-27 15:09:00 +00:00
host_url.rb Rails 6.1 basic spec functionality 2022-02-16 17:31:11 +00:00
i18n_time_zone.rb RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00
imported_html_converter.rb Convert audio and video RCE iframes to HTML tags for import/export 2022-04-18 16:17:53 +00:00
inst_fs.rb Don't use removed aws sdk calls 2023-01-19 16:20:27 +00:00
late_policy_applicator.rb add n_strand to late policy applicator jobs 2023-02-17 21:45:15 +00:00
latex.rb RuboCop: Layout lib 2021-09-22 20:01:52 +00:00
learning_outcome_context.rb RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00
locale_selection.rb RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00
locked_for.rb RuboCop: Layout lib 2021-09-22 20:01:52 +00:00
logging_filter.rb RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00
login_hooks.rb RuboCop: Layout lib 2021-09-22 20:01:52 +00:00
math_man.rb Use SHA256 for cache keys 2023-04-05 17:57:09 +00:00
message_dispatcher.rb Improve error logging for message batch dispatching 2022-06-23 15:10:18 +00:00
message_scrubber.rb RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00
messageable_user.rb RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00
missing_policy_applicator.rb fix apply_missing_deductions syntax for ruby 3.x 2022-12-13 20:52:23 +00:00
model_cache.rb RuboCop: Style/BlockDelimiters, Style/Lambda 2021-11-23 21:30:47 +00:00
moderation.rb add # frozen_string_literal: true for lib 2020-10-27 20:49:50 +00:00
must_view_module_progressor.rb RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00
mutable.rb RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00
net_ldap_extensions.rb wrap net_ldap_extensions in a zeitwerk compatible module 2021-10-07 18:50:58 +00:00
notification_message_creator.rb RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00
package_root.rb Remove unnecessary require statements 2023-01-04 21:38:21 +00:00
permissions.rb RuboCop: Layout lib 2021-09-22 20:01:52 +00:00
permissions_helper.rb Some rails 7 tests passing 2022-06-06 14:23:03 +00:00
plannable.rb RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00
planner_api_helper.rb RuboCop: Performance/RegexpMatch 2021-11-11 22:02:06 +00:00
planner_helper.rb RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00
progress_runner.rb RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00
pronouns.rb RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00
quiz_math_data_fixup.rb stop using deprecated URI.* methods 2022-12-14 15:18:20 +00:00
request_error.rb RuboCop: Style/RedundantSelf 2021-11-20 16:41:21 +00:00
rubric_context.rb RuboCop: Style/HashSyntax 2021-11-25 14:02:35 +00:00
scope_filter.rb RuboCop: Layout lib 2021-09-22 20:01:52 +00:00
score_statistics_generator.rb Improve score details and grade statistics 2022-07-20 13:24:01 +00:00
scrypt_provider.rb RuboCop: Layout lib 2021-09-22 20:01:52 +00:00
search_term_helper.rb Support basic unicode normalization in search helper 2022-02-16 22:19:10 +00:00
send_to_stream.rb Revert to state before "Add strand for create_stream_items" 2022-06-27 09:09:19 +00:00
sentry_proxy.rb Misc changes to kickstart ruby 3.0 testing 2022-12-13 14:27:41 +00:00
session_token.rb RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00
simple_stats.rb RuboCop: Performance/Sum 2021-11-16 17:10:38 +00:00
simple_tags.rb Reference directly ConversationParticipant.quoted_table_name 2022-05-16 14:46:36 +00:00
sis.rb do away with non-conventional "common" module 2021-10-07 21:55:24 +00:00
sorts_assignments.rb RuboCop: Style/HashSyntax 2021-11-25 14:02:35 +00:00
ssl_common.rb Remove unnecessary require statements 2023-01-04 21:38:21 +00:00
stats.rb RuboCop: Style/HashSyntax 2021-11-25 14:02:35 +00:00
sticky_sis_fields.rb RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00
submission_list.rb RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00
submission_search.rb RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00
submittable.rb Consider only relevant discussions when evaluating CMPs 2022-07-14 13:51:37 +00:00
submittables_grading_period_protection.rb RuboCop: Style/MultilineIfModifier 2021-11-23 14:30:24 +00:00
summary_message_consolidator.rb Fix some bulk update violations 2023-03-30 17:05:43 +00:00
syslog_wrapper.rb Restore `syslog` require 2023-01-04 22:23:35 +00:00
text_helper.rb Bump i18nliner again 2022-08-10 22:04:14 +00:00
time_zone_helper.rb RuboCop: Style/HashConversion 2021-11-17 15:17:51 +00:00
timed_cache.rb RuboCop: Style/MethodCallWithoutArgsParentheses 2021-11-18 23:07:30 +00:00
token_scopes.rb hide internal permissions from LTI Advantage Services section 2022-08-29 19:36:02 +00:00
token_scopes_helper.rb Fail a test on route changes used by dev keys 2022-07-12 20:24:05 +00:00
turnitin.rb Kill require_dependency 2023-01-09 19:51:01 +00:00
turnitin_id.rb add # frozen_string_literal: true for lib 2020-10-27 20:49:50 +00:00
unzip_attachment.rb Error when trying to create files/folders in deleted folder 2022-12-02 19:55:13 +00:00
user_content.rb Remove unnecessary require statements 2023-01-04 21:38:21 +00:00
user_list.rb fix as_json method signature for ruby 3.x 2022-12-12 20:58:00 +00:00
user_list_v2.rb fix as_json method signature for ruby 3.x 2022-12-12 20:58:00 +00:00
user_merge.rb don't move lti ids if past lti ids already exist 2023-02-13 15:51:35 +00:00
user_search.rb allow user search to find cross-shard numeric non-pk ids 2023-03-29 16:27:42 +00:00
uuid_helper.rb RuboCop: Style/MutableConstant 2021-11-16 16:19:54 +00:00
vericite.rb Remove unnecessary require statements 2023-01-04 21:38:21 +00:00
visibility_plucking_helper.rb RuboCop: Style/RedundantSelf 2021-11-20 16:41:21 +00:00
zip_extractor.rb Remove unnecessary require statements 2023-01-04 21:38:21 +00:00