docbrown/spec/lib/data_update_scripts
Daniel Uber 02b1a5eb75
Revisit previous update script (#15373)
The data update script "nullify empty tag colors" failed to update
because of the way it was written - in two passes, updating the
background color for tags where the background color was empty, then
updating the foreground color for tags where the foreground color was
empty.

Because both attributes have a validation regex, neither pass updated
any tags (the problematic cases observed had empty string values in both
columns).

Perform in a single loop, over the union of the two sets (expected to
include only the same rows as before), an update for both columns at
once.

Additionally, use update_columns which bypasses _other_ validation
issues (the only one I could suspect is the alias_for check).

Nullify empty strings in alias_for (simplifies a few things, now it's
either valid or null).

When a tag is detected with a "danlging alias" repair it by setting
alias for nil.
2021-12-09 14:10:59 -06:00
..
add_connect_feature_flag_spec.rb Add feature flag for Connect (#14644) 2021-09-13 10:45:56 -04:00
add_data_updates_scripts_feature_flag_spec.rb Adds a feature flag for Data Update Scripts (#12641) 2021-02-10 18:22:27 +02:00
add_fastly_http_purge_feature_flag_spec.rb Fastly edge caching: use PURGE HTTP method instead of POST (#12627) 2021-02-17 13:34:37 -05:00
add_feature_flag_for_feed_experiment_spec.rb Configurable weighted feed strategy (#15240) 2021-11-29 10:46:56 -05:00
add_single_resource_role_to_tech_admins_spec.rb Fix erroring data update script (#12628) 2021-02-09 11:16:44 -08:00
add_work_profile_field_spec.rb Remove duplicated work display from header / profile work (#14210) 2021-07-30 12:28:40 +02:00
backfill_creator_role_for_first_super_admin_spec.rb Added the creator role for the first Forem instance admin (#14583) 2021-08-26 13:50:21 -04:00
backfill_forem_consumer_app_team_id_spec.rb Make Consumer Apps dictate aasa results (#14015) 2021-06-24 08:36:11 -06:00
backfill_section_column_for_navigation_links_spec.rb Static Sections for Site Navigation - Pt1 (#14213) 2021-07-14 11:01:56 -04:00
cleanup_articles_with_invalid_feed_source_url_spec.rb [deploy] Remove draft articles with duplicate feed source URL and cleanup invalid data: take 2 (#10239) 2020-09-08 11:53:41 -05:00
cleanup_orphan_git_hub_repositories_spec.rb Remove GitHub repositories when GitHub identity is removed (#11951) 2020-12-20 15:15:40 +01:00
drop_profile_fields_for_static_attributes_spec.rb Drop profile fields for static attributes (#14109) 2021-07-01 14:30:40 -04:00
insert_forem_connect_broadcast_message_spec.rb Forem passport (cont) (#14759) 2021-09-30 06:47:45 -06:00
make_local_navigation_links_relative_spec.rb Update NavigationLink handling (#12316) 2021-01-20 13:57:59 -05:00
make_tags_with_mods_supported_spec.rb Automatically mark tag supported when adding mod (#11151) 2020-10-30 09:46:10 -04:00
migrate_themes_spec.rb Theme data update script, remove theme choices from UI (#15225) 2021-11-08 08:38:43 -05:00
nullify_empty_tag_colors_spec.rb Nullify invalid tag colors (#15361) 2021-11-12 14:35:08 -06:00
nullify_invalid_tag_fields_spec.rb Revisit previous update script (#15373) 2021-12-09 14:10:59 -06:00
populate_explicit_follow_points_spec.rb Add implicit points to follows to improve feed relevancy (in all algorithms) (#11513) 2020-11-25 16:09:51 -05:00
profile_website_url_format_fixup_spec.rb [hotfix] website_url update script should handle parse errors (#14306) 2021-07-22 14:16:43 -05:00
profile_website_url_format_spec.rb [hotfix] website_url update script should handle parse errors (#14306) 2021-07-22 14:16:43 -05:00
remove_apple_auth_feature_flag_spec.rb Take Apple Authentication out of Beta (#12114) 2021-08-03 15:04:00 -06:00
remove_feeds_import_feature_flag_spec.rb Remove RssReader (#12169) 2021-01-08 11:45:15 -05:00
remove_notification_setting_migration_scripts_spec.rb Use new UserSetting and UserNotificationSettings and Ignore Related User Table Fields (#14121) 2021-07-08 09:31:34 -05:00
remove_passport_feature_flag_spec.rb Enable Forem (Passport) Auth (#15141) 2021-11-23 14:59:00 -06:00
remove_runtime_banner_feature_flag_spec.rb Remove :runtime_banner feature flag (#13662) 2021-05-28 15:10:15 -06:00
remove_site_config_scripts_spec.rb [Hotfix] Fix DataUpdateScripts::RemoveSiteConfigScripts script (#13824) 2021-05-21 16:34:21 +02:00
remove_stackbit_page_spec.rb Removing the stackbit integration (#15701) 2021-12-08 10:20:15 -05:00
remove_unused_data_update_scripts_spec.rb Cleanup unused DataUpdateScripts (#13640) 2021-05-04 09:19:24 -04:00
set_onboarding_profile_fields_for_existing_forems_spec.rb Upgrade rubocop* packages to the latest version and fix violations (#11972) 2020-12-21 18:29:43 +01:00
touch_articles_with_capitalized_paths_spec.rb Upgrade rubocop* packages to the latest version and fix violations (#11972) 2020-12-21 18:29:43 +01:00
update_article_main_image_path_spec.rb Bump rubocop from 1.17.0 to 1.18.0 (#14107) 2021-07-01 13:51:49 +02:00
update_articles_cached_entities_spec.rb ✂✂✂ Remove Connect (#14734) 2021-11-18 08:21:00 -06:00
update_each_articles_privileged_user_point_count_spec.rb Caching sum privileged reaction scores (#15299) 2021-11-08 12:50:08 -05:00
update_user_update_rate_limit_default_spec.rb Create settings model for rate limits (#13381) 2021-04-20 11:29:22 +07:00
work_profile_field_follow_up_spec.rb Remove duplicated work display from header / profile work (#14210) 2021-07-30 12:28:40 +02:00