Page MenuHomePhabricator

[lib] Refactor thread reducer
ClosedPublic

Authored by inka on Jan 12 2024, 7:30 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Nov 8, 11:05 PM
Unknown Object (File)
Thu, Nov 7, 5:36 AM
Unknown Object (File)
Tue, Nov 5, 7:17 PM
Unknown Object (File)
Tue, Nov 5, 4:17 PM
Unknown Object (File)
Tue, Nov 5, 4:10 PM
Unknown Object (File)
Tue, Nov 5, 1:25 PM
Unknown Object (File)
Thu, Oct 31, 1:06 AM
Unknown Object (File)
Wed, Oct 30, 4:45 AM
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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

inka requested review of this revision.Jan 12 2024, 8:18 AM
lib/shared/thread-utils.js
1807 ↗(On Diff #35576)

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.