Skip to content

Update migrations for emoji reactions#54

Open
kescherCode wants to merge 63 commits into
TheEssem:feature/emoji-reactionsfrom
CatCatNya:patch/reactions-normalization-unique-migration
Open

Update migrations for emoji reactions#54
kescherCode wants to merge 63 commits into
TheEssem:feature/emoji-reactionsfrom
CatCatNya:patch/reactions-normalization-unique-migration

Conversation

@kescherCode

@kescherCode kescherCode commented May 26, 2026

Copy link
Copy Markdown

The first commit in PR makes the normalization migration merge StatusReactions and their Notifications that are duplicates when normalizing (see glitch-soc#2462 (comment)). This is rather long-running:

Running post-deployment migrations...
== 20260520184138 NormalizeStatusReactionVariationSelectors: migrating ========
== 20260520184138 NormalizeStatusReactionVariationSelectors: migrated (735.1358s)

The second is an entirely new migration which simply migrates the timestamp fields to match the schema.rb change in e179f3b. (it barely takes any time to run at all)

Both changes run in production on CatCatNya~.

TheEssem and others added 30 commits May 20, 2026 09:33
Squashed, modified, and rebased from glitch-soc#2221.

Co-authored-by: fef <owo@fef.moe>
Co-authored-by: Jeremy Kescher <jeremy@kescher.at>
Co-authored-by: neatchee <neatchee@gmail.com>
Co-authored-by: Ivan Rodriguez <104603218+IRod22@users.noreply.github.com>
Co-authored-by: Plastikmensch <plastikmensch@users.noreply.github.com>
This was in a previous PR. Not quite sure how it didn't carry over.
Probably worth tackling later, but for now it's not worth worrying about; some other implementations (e.g. Misskey's) look to have the same behavior anyways.
Reaction icon made by t3rminus@calamity.world
This was done to announcement reactions in 1b0cb3b. Might as well do it here too.
This prevents things from breaking with embeds.
@kescherCode

kescherCode commented May 26, 2026

Copy link
Copy Markdown
Author

Shall I change the schema.rb to account for that migration? xD

@TheEssem

Copy link
Copy Markdown
Owner

Shall I change the schema.rb to account for that migration? xD

Most definitely.

@github-actions

github-actions Bot commented Jun 2, 2026

Copy link
Copy Markdown

This pull request has merge conflicts that must be resolved before it can be merged.

@TheEssem TheEssem force-pushed the feature/emoji-reactions branch from eca8ef6 to bb75aa1 Compare June 13, 2026 20:56
@TheEssem TheEssem force-pushed the feature/emoji-reactions branch from bb75aa1 to 6fbf975 Compare June 23, 2026 19:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants