discourse/db/post_migrate
Ted Johansson ca9549b04f
DEV: Clear duplicate admin problem notices (#29358)
In #29272 we added a backwards-compatible way to prevent duplicate problem check trackers. However, there was a mistake in the PR that would instead create duplicate admin notices. As a result, a number of admins now have multiple copies of the same admin notice in their dashboard.

The root cause was fixed in #29329, preventing new duplicates.

This PR is here to clean up notices that were already created.

Admin notices are meant to be ephemeral. Instead of going through hoops to delete duplicates and update the remaining notices' unstructured field with the correct target, it is a lot less error-prone to delete all notices and let the problem check system re-create them.

The real-time checks run every time the dashboard is loaded, so they will appear to never have been deleted. Any notices related to scheduled checks will be added back on the next run. This will happen within at most one hour, and isn't time sensitive.
2024-10-23 13:02:02 +08:00
..
20240202052058_drop_badge_image_column.rb DEV: Remove logical OR assignment of constants (#29201) 2024-10-16 10:09:07 +08:00
20240212034010_drop_deprecated_columns.rb DEV: Remove logical OR assignment of constants (#29201) 2024-10-16 10:09:07 +08:00
20240506035024_clear_orphaned_draft_upload_references.rb DEV: Delete upload references on draft cleanup (#26877) 2024-05-06 14:08:10 +08:00
20240612073116_swap_field_type_with_field_type_enum_on_user_fields.rb DEV: Remove logical OR assignment of constants (#29201) 2024-10-16 10:09:07 +08:00
20240711123755_drop_compiled_js_from_translation_overrides.rb DEV: Remove logical OR assignment of constants (#29201) 2024-10-16 10:09:07 +08:00
20240714231516_drop_custom_type_from_flags.rb DEV: Remove logical OR assignment of constants (#29201) 2024-10-16 10:09:07 +08:00
20240717053710_drop_groups_smtp_ssl.rb DEV: Remove logical OR assignment of constants (#29201) 2024-10-16 10:09:07 +08:00
20240829140226_drop_old_notification_id_columns.rb DEV: Drop old notification id columns (#28550) 2024-10-15 11:58:57 +03:00
20240909121255_rebake_user_onebox.rb UX: Upgrade to fontawesome 6.6.0 (#28778) 2024-09-09 14:40:56 +01:00
20240910090759_make_password_columns_from_users_read_only.rb DEV: Break up PG query in MakePasswordColumnsFromUsersReadOnly (#29167) 2024-10-11 11:25:55 +08:00
20240912210450_delete_anonymous_users_from_directory_items.rb FIX: Remove anonymous users from users directory (#28892) 2024-09-13 15:12:57 +03:00
20241023041126_clear_duplicate_admin_notices.rb DEV: Clear duplicate admin problem notices (#29358) 2024-10-23 13:02:02 +08:00