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)
Wed, Nov 6, 8:14 PM
Unknown Object (File)
Fri, Nov 1, 7:59 PM
Unknown Object (File)
Fri, Nov 1, 7:56 PM
Unknown Object (File)
Fri, Nov 1, 7:35 PM
Unknown Object (File)
Oct 14 2024, 5:42 PM
Unknown Object (File)
Oct 14 2024, 5:42 PM
Unknown Object (File)
Oct 14 2024, 5:42 PM
Unknown Object (File)
Oct 14 2024, 5:42 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