Page MenuHomePhabricator

[lib] Update `thread-ops-utils` to handle `avatar` field
ClosedPublic

Authored by atul on Apr 4 2023, 11:25 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Nov 8, 9:55 AM
Unknown Object (File)
Tue, Nov 5, 10:24 PM
Unknown Object (File)
Tue, Nov 5, 10:24 PM
Unknown Object (File)
Tue, Nov 5, 2:23 AM
Unknown Object (File)
Mon, Nov 4, 8:31 AM
Unknown Object (File)
Mon, Nov 4, 3:34 AM
Unknown Object (File)
Oct 28 2024, 2:26 PM
Unknown Object (File)
Oct 28 2024, 2:26 PM
Subscribers

Details

Summary

Update convertRawThreadInfoToClientDBThreadInfo and convertClientDBThreadInfoToRawThreadInfo to accomodate avatar field.

Test Plan
  1. Set breakpoints and logged output of both functions in my local environment.
  2. Made sure that we DON'T set avatar: null in RawThreadInfo if avatar is null on the SQLite side, we instead exclude it entirely.

Will also write some quick unit tests as a sanity check.

Diff Detail

Repository
rCOMM Comm
Branch
arcpatch-D7300 (branched from master)
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

lib/types/thread-types.js
305 ↗(On Diff #24619)

This was incorrect, ClientDB*Info types should only have (?)string/(?)number fields.

atul published this revision for review.Apr 4 2023, 11:26 AM
This revision is now accepted and ready to land.Apr 4 2023, 11:33 AM
This revision was landed with ongoing or failed builds.Apr 4 2023, 12:37 PM
This revision was automatically updated to reflect the committed changes.