Page MenuHomePhabricator

[native][web] Clear user specific data on identity actions
ClosedPublic

Authored by inka on Jan 29 2024, 3:34 AM.
Tags
None
Referenced Files
F3540621: D10860.id36425.diff
Thu, Dec 26, 5:33 AM
F3536281: D10860.diff
Wed, Dec 25, 6:07 PM
Unknown Object (File)
Mon, Dec 23, 5:28 PM
Unknown Object (File)
Mon, Dec 23, 5:28 PM
Unknown Object (File)
Mon, Dec 23, 5:28 PM
Unknown Object (File)
Mon, Dec 23, 5:28 PM
Unknown Object (File)
Mon, Dec 23, 5:28 PM
Unknown Object (File)
Mon, Dec 16, 2:44 PM
Subscribers

Details

Summary

issue: ENG-6424
Login will be handled once it's implemented. It's being tracked in ENG-6598. In this diff I want to handle logout, delete account and register identity actions
I will remove logic from specific reducers in next diffs
I had to change the dafault state on web - I need the navInfo to be correct. This is how we do it on native. I don't think it's the best, but at least the data is of correct shape, and again - this is how we do it on native, so I think we can use this for now

Test Plan

Tested that it is possible to log out and back in, and no errors show up. Tested that the data is cleared on logout success

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

inka requested review of this revision.Jan 29 2024, 3:53 AM

It might be better to for navInfo do the same thing we do for actualizedCalendarQuery - in specific reducer use defaultCalendarQuery(getConfig().platformDetails.platform).

It might be better to for navInfo do the same thing we do for actualizedCalendarQuery - in specific reducer use defaultCalendarQuery(getConfig().platformDetails.platform).

Makes sense

This revision is now accepted and ready to land.Jan 30 2024, 9:01 AM

Make reduceBaseNavInfo set the default date ranges