Page MenuHomePhabricator

[keyserver] Determine which infos have invalid hashes based on specs
ClosedPublic

Authored by tomek on Aug 28 2023, 6:28 AM.
Tags
None
Referenced Files
F3634206: D8979.diff
Fri, Jan 3, 9:20 AM
Unknown Object (File)
Thu, Dec 26, 12:03 AM
Unknown Object (File)
Mon, Dec 23, 1:43 AM
Unknown Object (File)
Mon, Dec 23, 1:43 AM
Unknown Object (File)
Mon, Dec 23, 1:36 AM
Unknown Object (File)
Sun, Dec 22, 10:44 PM
Unknown Object (File)
Nov 24 2024, 11:24 AM
Unknown Object (File)
Nov 16 2024, 8:58 AM
Subscribers

Details

Summary

Check if a key is top level - it means that there are infos in the collection which aren't synchronized. Iterate over them and compute hashes for each item.
When a spec doesn't specify innerHashKey, return the values immediately - currently we do that only for currentUserInfo because there's exactly one current user.

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

Depends on D8977

Test Plan

Modify keyserver db and check if the store get fixed.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

tomek requested review of this revision.Aug 28 2023, 6:46 AM

So it means that innerHashKey is defined only for collections, and should be null / undefined for top-level, non-iterable infos

This revision is now accepted and ready to land.Aug 29 2023, 2:21 AM

So it means that innerHashKey is defined only for collections, and should be null / undefined for top-level, non-iterable infos

Yes, exactly.