Page MenuHomePhabricator

[lib][web][native] Make all the props of StoreOperations optional
ClosedPublic

Authored by tomek on Wed, May 8, 4:24 AM.
Tags
None
Referenced Files
F1793733: D11936.id40155.diff
Sun, May 19, 2:37 PM
F1786991: D11936.id39926.diff
Sat, May 18, 6:40 PM
Unknown Object (File)
Sat, May 18, 2:12 PM
Unknown Object (File)
Sat, May 18, 9:24 AM
Unknown Object (File)
Sat, May 18, 4:35 AM
Unknown Object (File)
Thu, May 16, 10:07 AM
Unknown Object (File)
Sun, May 12, 1:30 AM
Unknown Object (File)
Sat, May 11, 10:08 PM
Subscribers

Details

Summary

Before this diff we had to create objects with all the fields present even when most of them were empty arrays. This diff makes creating the ops object more convenient.

Depends on D11933

Test Plan

Tested if processing the ops still works on web and native by checking if drafts get persisted.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

tomek requested review of this revision.Wed, May 8, 4:41 AM

Wondering if updating convertOpsToClientDBOps to handle nullable param wouldn't be even more readable but up to you

This revision is now accepted and ready to land.Fri, May 10, 6:15 AM

Wondering if updating convertOpsToClientDBOps to handle nullable param wouldn't be even more readable but up to you

Good idea - I'll check it.

Modify convertOpsToClientDBOps