Page MenuHomePhabricator

[native] refactor CommCoreModule to allow cancellable tasks
ClosedPublic

Authored by kamil on Nov 9 2022, 3:12 AM.
Tags
None
Referenced Files
F3396451: D5579.id18258.diff
Sun, Dec 1, 12:23 PM
F3395850: D5579.id18650.diff
Sun, Dec 1, 8:09 AM
F3395763: D5579.diff
Sun, Dec 1, 7:29 AM
Unknown Object (File)
Fri, Nov 29, 12:36 AM
Unknown Object (File)
Fri, Nov 29, 12:25 AM
Unknown Object (File)
Thu, Nov 21, 3:18 PM
Unknown Object (File)
Sun, Nov 3, 11:25 PM
Unknown Object (File)
Oct 25 2024, 5:18 PM

Details

Summary

context: ENG-2139

refactor CommCoreModule methods that schedule tasks on the database thread to allow them to be canceled - all methods except clearSensitiveData that should not be canceled - is responsible for canceling others.

Test Plan
  1. Build app for both iOS and Android
  2. Check if previous integrations with the database work properly eg. by adding some drafts etc.
  3. Make sure that there is no operation executed on database thread or added to queue when sensitiveDataCleaner is called

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

kamil held this revision as a draft.

add setDeviceId to refactored tasks

kamil published this revision for review.Nov 10 2022, 7:42 AM
marcin added a reviewer: tomek.
This revision is now accepted and ready to land.Nov 14 2022, 10:27 AM
This revision now requires review to proceed.Nov 16 2022, 2:42 AM

(Removing myself as blocking since I don't think I have enough context to give this a proper review)

This revision is now accepted and ready to land.Nov 17 2022, 9:21 AM