Page MenuHomePhabricator

[native/web] introduce migration to update notifPermissionAlertInfo to alertStore in redux
ClosedPublic

Authored by ginsu on Tue, Apr 9, 12:18 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Apr 21, 1:03 AM
Unknown Object (File)
Wed, Apr 17, 8:30 AM
Unknown Object (File)
Tue, Apr 16, 7:49 AM
Unknown Object (File)
Mon, Apr 15, 1:57 PM
Unknown Object (File)
Mon, Apr 15, 11:03 AM
Unknown Object (File)
Sun, Apr 14, 5:48 PM
Unknown Object (File)
Sat, Apr 13, 4:44 PM
Unknown Object (File)
Sat, Apr 13, 2:25 PM
Subscribers

Details

Summary

This diff introduces a migration to update notifPermissionAlertInfo to alertStore in redux. After this migration all the alerts regarding rehydration warning no longer appear

Adding @kamil as an extra reviewer to make sure my changes to persistWhitelist make sense

Linear task: https://linear.app/comm/issue/ENG-7624/introduce-new-migration-to-update-notifpermissionalertinfo-to

Depends on D11600

Test Plan

The rehydration alerts no longer appear + confirmed that the notif permission alert works as expected

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

ginsu added reviewers: atul, inka.
ginsu added a reviewer: kamil.
ginsu edited the summary of this revision. (Show Details)
web/redux/persist.js
51 ↗(On Diff #38956)

@kamil wondering if this change here is okay/wondering if there are other things I need to do to change notifPermissionAlertInfo => alertStore. I don't see anymore rehydration errors on native + everything looks good when I open up the redux dev tools, but just wanted to double check with you and see what you think!

ginsu requested review of this revision.Tue, Apr 9, 12:35 PM

Not familiar with this project so letting others review, persistWhitelist looks good

web/redux/persist.js
51 ↗(On Diff #38956)

this seems fine

atul requested changes to this revision.Wed, Apr 10, 10:41 AM

Might be missing something, but don't we also need to update default states? For example in defaultWebState?

This revision now requires changes to proceed.Wed, Apr 10, 10:41 AM

{F1510339}

jk, you already handled this in stack

This revision is now accepted and ready to land.Wed, Apr 10, 10:43 AM
ginsu added a subscriber: kamil.

rebase before landing