Adds validators for RawThreadInfo and nested types. The example thread info in tests is taken from the app but it's cut a bit so it's shorter.
Depends D7567
Paths
| Differential D7569 Authored by michal on Apr 21 2023, 8:12 AM.
Tags None Referenced Files
Details
Summary Adds validators for RawThreadInfo and nested types. The example thread info in tests is taken from the app but it's cut a bit so it's shorter. Depends D7567 Test Plan Run yarn jest
Diff Detail
Event TimelineHerald added subscribers: atul, ashoat. · View Herald TranscriptApr 21 2023, 8:12 AM2023-04-21 08:12:18 (UTC-7) michal added a child revision: D7571: [lib] Introduce raw entry info validators.Apr 21 2023, 8:15 AM2023-04-21 08:15:59 (UTC-7) Harbormaster completed remote builds in B18655: Diff 25546.Apr 21 2023, 8:29 AM2023-04-21 08:29:36 (UTC-7) michal added a parent revision: D7567: [lib] Introduce raw message info validators.Apr 25 2023, 6:21 AM2023-04-25 06:21:32 (UTC-7) Comment Actions Could we add a test where avatar is not defined (RawThreadInfo doesn't have this field at all, not just it is set to null or undefined).
This revision is now accepted and ready to land.Apr 25 2023, 3:25 PM2023-04-25 15:25:09 (UTC-7) Comment Actions
The existing thread example already doesn't have avatar defined.
michal added a parent revision: D7655: [lib] Add validator to the message spec.Apr 27 2023, 6:29 AM2023-04-27 06:29:48 (UTC-7)
Harbormaster completed remote builds in B19028: Diff 26059.May 4 2023, 3:28 AM2023-05-04 03:28:59 (UTC-7) Harbormaster completed remote builds in B19066: Diff 26100.May 5 2023, 4:28 AM2023-05-05 04:28:35 (UTC-7) Closed by commit rCOMMf0de5dc1e446: [lib] Introduce raw thread info validators (authored by Michal Gniadek <michal.gniadek@swmansion.com>). · Explain WhyMay 5 2023, 5:46 AM2023-05-05 05:46:31 (UTC-7) This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 26111 lib/types/avatar-types.js
lib/types/subscription-types.js
lib/types/thread-types.js
lib/types/validation.test.js
|