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
F3513058: D11936.id40154.diff
Sat, Dec 21, 10:02 PM
F3513057: D11936.id40151.diff
Sat, Dec 21, 10:02 PM
F3513056: D11936.id39925.diff
Sat, Dec 21, 10:01 PM
F3513047: D11936.id.diff
Sat, Dec 21, 10:01 PM
F3513043: D11936.diff
Sat, Dec 21, 10:01 PM
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
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
No Lint Coverage
Unit
No Test Coverage

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