https://linear.app/comm/issue/ENG-4377/refactor-cookie-field-in-web-redux
Removing the cookie field from redux. Adding a migration. Undoing a hack in cookieSelector.
Details
Details
ran yarn flow-all. Since cookie was not being used since the previous diff, this should be enough
EDIT:
tested that the cookie was migrated on native:
- checked out master, opened the app, logged the cookie
- closed the app
- checked out this diff, opened the app, logged the cookie
On master, rehyderated keys included cookie. On this diff, rehydrated keys don't include 'cookie', but include the keyserverStore. Checked that cookie that was logged on master is equal to the keyserverStore.keyserverInfos['256'].cookie on this diff
Diff Detail
Diff Detail
- Repository
- rCOMM Comm
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
Can you amend the test plan with checking if the cookie was migrated correctly?
native/redux/persist.js | ||
---|---|---|
651–658 ↗ | (On Diff #28789) | You need to bump the state version (if you aren't doing it in the next diffs) |
web/redux/persist.js | ||
97–104 ↗ | (On Diff #28789) | Is the migration on web needed? (and if yes, you also need to bump the stateVersion) |
Comment Actions
Address review - remove web migration, since cookie is not persisted; bump native state version