Page MenuHomePhabricator

[lib] Refactor thread reducer
ClosedPublic

Authored by inka on Jan 12 2024, 7:30 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Dec 15, 1:58 AM
Unknown Object (File)
Tue, Nov 26, 1:59 PM
Unknown Object (File)
Tue, Nov 26, 1:17 PM
Unknown Object (File)
Tue, Nov 26, 8:26 AM
Unknown Object (File)
Nov 22 2024, 9:28 PM
Unknown Object (File)
Nov 22 2024, 9:12 PM
Unknown Object (File)
Nov 22 2024, 8:53 PM
Unknown Object (File)
Nov 22 2024, 5:05 PM
Subscribers

Details

Summary

issue: ENG-5814
We want to remove the thread related to the ks the user has logged in to / logged out of / had the cookie invalidated by.

Test Plan

Tested that when keyserverAuthActionTypes.success is dispatched the threads are deleted and replaced with the new ones
Checked that when a user logs out the threads are deleted.

Diff Detail

Repository
rCOMM Comm
Branch
inka/login_reducers
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

inka requested review of this revision.Jan 12 2024, 8:18 AM
lib/shared/thread-utils.js
1807

Should this be in lib/keyserver-conn/keyserver-call-utils.js?

Thanks for moving it! The name of the file is kind of weird given the use case here, but the family of functions there is very similar... I think it's good they're in the same file, and we might consider moving / renaming the file in a later diff

This revision is now accepted and ready to land.Jan 15 2024, 4:45 PM
inka planned changes to this revision.Jan 17 2024, 8:51 AM

We decided to have a single action for logging out of keyservers and identity.

This revision is now accepted and ready to land.Jan 18 2024, 1:41 AM
inka requested review of this revision.Jan 18 2024, 1:41 AM
This revision is now accepted and ready to land.Jan 21 2024, 9:43 PM

Merge identity delete account with keyserver delete account

Following D10609, make threadInfos in KeyserverAuthResult be RawThreadInfos

This revision was automatically updated to reflect the committed changes.