Page MenuHomePhabricator

[lib] Introduce `rawThreadInfoValidator` and consume in `threads-state-sync-spec`
ClosedPublic

Authored by atul on Dec 6 2023, 2:42 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mar 5 2024, 4:07 PM
Unknown Object (File)
Mar 5 2024, 4:07 PM
Unknown Object (File)
Mar 5 2024, 4:07 PM
Unknown Object (File)
Mar 5 2024, 4:07 PM
Unknown Object (File)
Mar 5 2024, 4:07 PM
Unknown Object (File)
Mar 5 2024, 4:07 PM
Unknown Object (File)
Mar 5 2024, 4:06 PM
Unknown Object (File)
Mar 5 2024, 4:06 PM
Subscribers
None

Details

Summary

Introduce validator that can handle both LegacyRawThreadInfo and MinimallyEncodedRawThreadInfo because keyserver will be handling both.

Updated validator was required to update threads-state-sync-spec which will allow us to update rest of thread update/thread "ops" code.


Depends on D10210

Test Plan

Flow/CI/validator will fail during testing if not defined correctly.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

atul published this revision for review.Dec 6 2023, 2:43 PM
This revision is now accepted and ready to land.Dec 7 2023, 6:53 AM
lib/permissions/minimally-encoded-thread-permissions-validators.js
1 ↗(On Diff #34358)

Can you add a newline after the Flow declaration here

newline after @flow AND fix TUnion import

This revision is now accepted and ready to land.Dec 12 2023, 8:09 PM
This revision was landed with ongoing or failed builds.Dec 13 2023, 12:51 PM
This revision was automatically updated to reflect the committed changes.