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)
Wed, Dec 4, 7:09 PM
Unknown Object (File)
Nov 18 2024, 6:27 PM
Unknown Object (File)
Nov 18 2024, 6:20 PM
Unknown Object (File)
Nov 18 2024, 6:19 PM
Unknown Object (File)
Nov 18 2024, 4:38 PM
Unknown Object (File)
Nov 10 2024, 11:41 AM
Unknown Object (File)
Nov 10 2024, 10:42 AM
Unknown Object (File)
Nov 10 2024, 4:45 AM
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