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
F3400843: D7300.diff
Mon, Dec 2, 9:09 AM
Unknown Object (File)
Sun, Dec 1, 5:08 AM
Unknown Object (File)
Sat, Nov 30, 10:41 AM
Unknown Object (File)
Sat, Nov 30, 10:29 AM
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
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.