Page MenuHomePhabricator

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

Authored by tomek on May 8 2024, 4:24 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Nov 10, 11:41 AM
Unknown Object (File)
Sun, Nov 10, 10:42 AM
Unknown Object (File)
Sun, Nov 10, 4:45 AM
Unknown Object (File)
Sat, Nov 9, 11:14 PM
Unknown Object (File)
Fri, Nov 8, 7:17 PM
Unknown Object (File)
Sat, Oct 26, 3:07 PM
Unknown Object (File)
Oct 10 2024, 10:39 PM
Unknown Object (File)
Oct 10 2024, 10:39 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.May 8 2024, 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.May 10 2024, 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