Refactor code handling Metadata table to avoid repeating code. Functions used before have been left as wrappers as suggested in comments on ENG-1979.
Details
Running the ios simulator. I feel like, since there is no functional change, and the changes are pretty simple, it should be enough to check if everything compiles, but if I should test
it more thoroughly please let me know.
Diff Detail
- Repository
- rCOMM Comm
- Branch
- inka/deviceID_rs
- Lint
No Lint Coverage - Unit
No Test Coverage
Event Timeline
At some point we agreed to use this -> https://www.notion.so/commapp/C-coding-standards-8c9f22b4b16a41c3a868eb5f537db1de
Make metadata functions private. I'm not really happy with making them private this way, but I was trying to follow the convention set by the migrate function.
Looking at signatures of other methods in DatabaseQueryExecutor I can see that they also do not take their parameters by reference. The reason is probably thread safety so we can ignore my previous comment that suggested passing arguments to setMetadata, getMetadata and clearMetadata by reference.