discourse/plugins/chat/db/post_migrate
Andrei Prigorshnev 62f423da15
DEV: Redesign chat mentions (#24752)
At the moment, when someone is mentioning a group, or using here or 
all mention, we create a chat_mention record per user. What we want 
instead is to have special kinds of mentions, so we can create only one 
chat_mention record in such cases. This PR implements that.

Note, that such mentions will still have N related notifications, one 
notification per a user. We don't expect we'll have performance 
problems on the notifications side, but if at some point we do, we 
should be able to solve them on the side of notifications 
(notifications are handled in jobs, also some little delays with 
the notifications are acceptable, so we can make sure notifications 
are properly queued, and that processing of every notification is 
fast enough to make delays small enough).

The preparation work for this PR was done in fbd24fa, where we make 
it possible for one mention to have several related notifications.

A pretty tricky part of this PR is schema and data migration, I've explained 
related details inline on the migration files.
2024-01-17 15:24:01 +04:00
..
20230116090324_drop_chat_drafts_over_max_length.rb SECURITY: Limit chat drafts length and preloaded count (#19987) 2023-01-25 13:50:10 +02:00
20230123025112_move_chat_uploads_to_upload_references_post.rb DEV: Use UploadReference instead of ChatUpload in chat (#19947) 2023-01-24 13:28:21 +10:00
20230227172543_make_chat_mention_notification_id_nullable.rb DEV: Always create chat mention records (#20470) 2023-03-07 19:07:11 +04:00
20230403012844_drop_chat_uploads.rb DEV: Drop chat_uploads table and model and remove old references (#20926) 2023-04-04 09:13:39 +10:00
20230411023340_update_thread_reply_counts.rb DEV: Chat thread reply counter cache (#21050) 2023-04-11 15:40:25 +10:00
20230710040640_backfill_chat_channel_and_thread_last_message_ids_post_migrate.rb DEV: Add last_message_id to channel and thread (#22488) 2023-07-13 10:28:11 +10:00
20231214180002_update_relationship_between_chat_mentions_and_notifications_post_migrate.rb DEV: Allow chat mentions to have several notifications (#24874) 2023-12-19 18:53:00 +04:00
20231227160004_set_type_and_target_id_on_chat_mentions_post_migrate.rb DEV: Redesign chat mentions (#24752) 2024-01-17 15:24:01 +04:00
20231227160005_make_type_on_chat_mentions_non_nullable.rb DEV: Redesign chat mentions (#24752) 2024-01-17 15:24:01 +04:00