Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(migration)_: fix the pinned_messages migration when a message is deleted #6231

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

jrainville
Copy link
Member

Turns out if you had old pinned messages that were still associated with deleted user messages, then the original migration didn't work. This fixes it.

If someone already ran the migration successfully because they didn't have deleted pinned messages, then it just won't run again and everything is already fine. If someone was blocked because of the migration, then it will just run fine now.

Thanks to @alexjba for find the cause

…deleted

Turns out if you had old pinned messages that were still associated with deleted user messages, then the original migration didn't work.
This fixes it.

If someone already ran the migration successfully because they didn't have deleted pinned messages, then it just won't run again and everything is already fine.
If someone was blocked because of the migration, then it will just run fine now.
@status-im-auto
Copy link
Member

status-im-auto commented Dec 20, 2024

Jenkins Builds

Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 754e2cd #1 2024-12-20 15:42:14 ~4 min windows 📦zip
✔️ 754e2cd #1 2024-12-20 15:42:36 ~4 min linux 📦zip
✔️ 754e2cd #1 2024-12-20 15:43:08 ~5 min android 📦aar
✔️ 754e2cd #1 2024-12-20 15:43:33 ~5 min ios 📦zip
✔️ 754e2cd #1 2024-12-20 15:44:23 ~6 min tests-rpc 📄log
✔️ 754e2cd #1 2024-12-20 15:44:47 ~6 min macos 📦zip
✔️ 754e2cd #1 2024-12-20 15:51:45 ~13 min macos 📦zip
✔️ 754e2cd #1 2024-12-20 16:08:30 ~30 min tests 📄log

Copy link

codecov bot commented Dec 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 61.47%. Comparing base (810468a) to head (754e2cd).

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #6231      +/-   ##
===========================================
+ Coverage    61.44%   61.47%   +0.02%     
===========================================
  Files          834      834              
  Lines       109925   109925              
===========================================
+ Hits         67547    67572      +25     
+ Misses       34488    34469      -19     
+ Partials      7890     7884       -6     
Flag Coverage Δ
functional 21.56% <ø> (+0.09%) ⬆️
unit 60.05% <ø> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

see 40 files with indirect coverage changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants