Page MenuHomePhabricator

[lib] Remove support for `ServerThreadInfo` from `useKeyserverAdmin`
ClosedPublic

Authored by atul on Feb 6 2024, 12:21 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Mar 18, 3:40 PM
Unknown Object (File)
Mon, Mar 17, 6:29 AM
Unknown Object (File)
Sun, Mar 16, 9:11 AM
Unknown Object (File)
Thu, Mar 13, 1:32 AM
Unknown Object (File)
Mon, Mar 10, 5:03 PM
Unknown Object (File)
Feb 28 2025, 3:02 AM
Unknown Object (File)
Feb 20 2025, 4:37 AM
Unknown Object (File)
Feb 20 2025, 4:26 AM
Subscribers
None

Details

Summary

In D10107 I encountered a scenario where flow wasn't able to type check ServerLegacyRoleInfo as part of a ServerThreadInfo being constructed.

To be safe, I decided to look at all instances of ServerThreadInfo and fetchServerThreadInfos() in the codebase to double check for similar issues.

I didn't find any, but noticed that useKeyserverAdmin accepted ServerThreadInfo which seems strange. Looks like it was added when useKeyserverAdmin was getKeyserverAdmin. Regardless, it's no longer necessary so I removed it.


Depends on D10107

Test Plan

flow + seeing that the hook is only ever used by the CommunityPill react component which should never encounter a ServerThreadInfo.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable