Page MenuHomePhabricator

[keyserver] Merge `fetchAll` and `fetchByID` functions
ClosedPublic

Authored by tomek on Aug 25 2023, 2:58 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Mar 25, 7:18 AM
Unknown Object (File)
Sun, Mar 23, 8:34 AM
Unknown Object (File)
Mar 1 2025, 3:24 PM
Unknown Object (File)
Mar 1 2025, 3:24 PM
Unknown Object (File)
Mar 1 2025, 3:23 PM
Unknown Object (File)
Mar 1 2025, 3:01 PM
Unknown Object (File)
Jan 25 2025, 2:05 AM
Unknown Object (File)
Jan 25 2025, 2:05 AM
Subscribers

Details

Summary

Instead of having two functions: ane which fetches all the entries and one which filters by id, we can have a single one which handles both cases. Additional benefit is that for current-user spec, we don't need to introduce en exception in spec's interface (we don't need to fetch current user by id).

https://linear.app/comm/issue/ENG-4631/migrate-checkstate-from-session-utils-to-a-spec

Depends on D8927

Test Plan

Modify keyserver db and check if the state get fixed.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable