Page MenuHomePhabricator

Extend TemporaryMessageStore interface with private auxiliary methods to manipulate paths
ClosedPublic

Authored by marcin on Jul 7 2022, 5:38 AM.
Tags
None
Referenced Files
F3560158: D4472.id14704.diff
Fri, Dec 27, 7:12 AM
F3560157: D4472.id14698.diff
Fri, Dec 27, 7:12 AM
F3560154: D4472.id14638.diff
Fri, Dec 27, 7:12 AM
F3560153: D4472.id14469.diff
Fri, Dec 27, 7:12 AM
F3560152: D4472.id14427.diff
Fri, Dec 27, 7:12 AM
F3560150: D4472.id14259.diff
Fri, Dec 27, 7:12 AM
F3560149: D4472.id14258.diff
Fri, Dec 27, 7:12 AM
F3560147: D4472.id14276.diff
Fri, Dec 27, 7:12 AM

Details

Summary

Adds and implements private methods to manipulate file names and create latest file to store messages

Test Plan

We can temporarily modify AppDelegate to invoke thos methods and check in the debugger that _getPath and getLockName return valid string and _updateCurrentStorage creates new file with expected name

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

marcin requested review of this revision.Jul 7 2022, 6:16 AM

Hey @marcinwasowicz, can you go through your entire diff stack and remove any reference to "Temporal", replacing it with "Temporary"?

Rename Temporal to Temporary

marcin retitled this revision from Extend TemporalMessageStore interface with private auxiliary methods to manipulate paths to Extend TemporaryMessageStore interface with private auxiliary methods to manipulate paths.

Hey @marcinwasowicz, can you go through your entire diff stack and remove any reference to "Temporal", replacing it with "Temporary"?

Temporal is renamed to Temporary in entire codebase of this stack as well as in differentials descriptions and titles.

tomek added inline comments.
native/ios/Comm/TemporaryMessageStorage/TemporaryMessageStorage.mm
42 ↗(On Diff #14276)

Maybe createNewStorage so that it is less confusing? The current name might indicate that we're renaming a storage.

This revision is now accepted and ready to land.Jul 8 2022, 3:08 AM
native/ios/Comm/TemporaryMessageStorage/TemporaryMessageStorage.mm
42 ↗(On Diff #14276)

Sure, I will do the refactor.

Rename new storage creation method and re-implement it to use fopen

This revision was landed with ongoing or failed builds.Jul 20 2022, 6:17 AM
This revision was automatically updated to reflect the committed changes.