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
Unknown Object (File)
Tue, May 7, 6:02 PM
Unknown Object (File)
Apr 7 2024, 11:05 PM
Unknown Object (File)
Mar 11 2024, 3:39 AM
Unknown Object (File)
Mar 10 2024, 11:43 AM
Unknown Object (File)
Mar 9 2024, 10:22 AM
Unknown Object (File)
Mar 5 2024, 9:54 PM
Unknown Object (File)
Mar 5 2024, 7:14 PM
Unknown Object (File)
Mar 5 2024, 7:14 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