Introducing validator, unit tests, and consuming in rawThreadInfoValidator which fixes the validator test case which was failing.
This also expands validator so it'll support memberInfos both with and without permissions.
Depends on D12756
Paths
| Differential D12758 Authored by atul on Jul 15 2024, 12:56 PM.
Tags None Referenced Files
Subscribers None
Details Summary Introducing validator, unit tests, and consuming in rawThreadInfoValidator which fixes the validator test case which was failing. This also expands validator so it'll support memberInfos both with and without permissions. Depends on D12756 Test Plan Unit tests
Diff Detail
Event TimelineHarbormaster completed remote builds in B30339: Diff 42301.Jul 15 2024, 1:12 PM2024-07-15 13:12:42 (UTC-7) Comment Actions It looks like these validators are used on both the keyserver and the client. It's appropriate for use on the keyserver, which needs to continue supporting older clients. But it's inappropriate for use on the client, where we don't expect the keyserver to ever respond with the legacy format. Would love if we could separate these out into two kinds of validators, but it's probably too much work for @atul at this point. This revision is now accepted and ready to land.Jul 17 2024, 12:17 PM2024-07-17 12:17:52 (UTC-7) Comment Actions
We actually will use this validator on the client. Specifically in convertClientDBThreadInfoToRawThreadInfo where we validate the RawThreadInfo persisted on client. Have a diff that consumes it on client in local stack. EDIT: To clarify we will consume memberInfoSansPermissionsValidator on the client. Comment Actions Going to go ahead and try cherry-picking this onto master to fix the failing validator unit test and get rest of stack "more green." Harbormaster completed remote builds in B30429: Diff 42402.Jul 17 2024, 1:06 PM2024-07-17 13:06:51 (UTC-7) Closed by commit rCOMM5029a29dfb30: [lib] Introduce `memberInfoSansPermissionsValidator` and consume in… (authored by atul). · Explain WhyJul 17 2024, 1:37 PM2024-07-17 13:37:26 (UTC-7) This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 42301 lib/permissions/minimally-encoded-raw-thread-info-validators.js
lib/permissions/minimally-encoded-raw-thread-info-validators.test.js
|