Page MenuHomePhabricator

Remove threadID to notifID mapping from redux and all related usages
ClosedPublic

Authored by marcin on Jan 11 2023, 5:24 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Nov 13, 12:16 AM
Unknown Object (File)
Sun, Nov 10, 12:54 AM
Unknown Object (File)
Sat, Nov 9, 7:15 PM
Unknown Object (File)
Fri, Nov 8, 2:30 PM
Unknown Object (File)
Mon, Nov 4, 7:26 PM
Unknown Object (File)
Mon, Oct 28, 7:34 PM
Unknown Object (File)
Sat, Oct 26, 8:45 PM
Unknown Object (File)
Thu, Oct 24, 2:40 PM
Subscribers

Details

Summary

This differential removes threadID to NotifID mapping from redux on native.

Test Plan

Test plan for previous differential + ensure flow does not complain.

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

rebase due to changes in previous commit

Woohoo!! Love seeing this

Do we also need to introduce a redux-persist migration to clear this data from the Redux store, eg. like this?

Woohoo!! Love seeing this

Do we also need to introduce a redux-persist migration to clear this data from the Redux store, eg. like this?

I think yes - I forgot to do so. That is why I was seeing message that threadIDsToNotifIDs were not rehydrated.

ashoat requested changes to this revision.Jan 13 2023, 6:28 AM

Requesting changes for redux-persist migration

This revision now requires changes to proceed.Jan 13 2023, 6:28 AM

Add redux migration to remove threadIDsToNotifIDs.

ashoat added inline comments.
native/redux/persist.js
553

We will need to remember to bump this when we put out a new release. @marcin, can you take the lead on making sure we do this? cc @atul

This revision is now accepted and ready to land.Jan 16 2023, 7:29 PM
native/redux/persist.js
553

Sure - I will contact @atul to make sure he shows me commits with release changes.

native/redux/persist.js
553

Just a quick clarifications - should we bump it before we land this? or only after we make a release? If the former I would use an explanation why not when landing.

native/redux/persist.js
553

Up to you. If you do not bump this then the migration will not run. When you bump this, the migration will run. Hoping you can use that information to make an informed decision yourself

Bump persist version