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)
Sat, Dec 14, 3:51 AM
Unknown Object (File)
Sat, Dec 14, 3:50 AM
Unknown Object (File)
Sat, Dec 14, 3:50 AM
Unknown Object (File)
Sat, Dec 14, 3:50 AM
Unknown Object (File)
Sat, Dec 14, 3:50 AM
Unknown Object (File)
Sat, Dec 14, 3:50 AM
Unknown Object (File)
Sat, Dec 14, 3:50 AM
Unknown Object (File)
Sat, Dec 14, 3:50 AM
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 ↗(On Diff #20978)

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 ↗(On Diff #20978)

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

native/redux/persist.js
553 ↗(On Diff #20978)

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 ↗(On Diff #20978)

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