Page MenuHomePhabricator

[native] Create a single base class for all the ops
ClosedPublic

Authored by tomek on May 6 2024, 6:29 AM.
Tags
None
Referenced Files
F3300597: D11902.diff
Sun, Nov 17, 8:09 PM
Unknown Object (File)
Sun, Nov 10, 6:28 PM
Unknown Object (File)
Sun, Nov 10, 6:22 PM
Unknown Object (File)
Sun, Nov 10, 11:41 AM
Unknown Object (File)
Sun, Nov 10, 11:41 AM
Unknown Object (File)
Sun, Nov 10, 8:38 AM
Unknown Object (File)
Fri, Nov 8, 7:17 PM
Unknown Object (File)
Thu, Nov 7, 8:57 AM
Subscribers

Details

Summary

All the base classes were providing the same functions. Also, it is convenient to be able to store all the ops in a single array - in order to process them in a single transaction.

https://linear.app/comm/issue/ENG-6004/wrap-all-store-operations-from-one-action-in-transaction

Test Plan

Opened the app, modified a draft, closed and reopened the app - the draft was correct.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

tomek requested review of this revision.May 6 2024, 6:49 AM
kamil accepted this revision.EditedMay 6 2024, 6:59 AM

I think in a couple of files you can add #include "DBOperationBase.h" to match our convention to always include header

This revision is now accepted and ready to land.May 6 2024, 6:59 AM