Page MenuHomePhabricator

Implement methods to store and retrieve current_user_id from database in CommCoreModule
ClosedPublic

Authored by marcin on Aug 10 2022, 5:47 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, May 19, 3:21 AM
Unknown Object (File)
Sat, May 18, 3:55 PM
Unknown Object (File)
Sat, May 18, 11:39 AM
Unknown Object (File)
Tue, Apr 30, 6:20 PM
Unknown Object (File)
Sat, Apr 27, 11:06 PM
Unknown Object (File)
Mon, Apr 22, 11:12 AM
Unknown Object (File)
Apr 18 2024, 2:08 PM
Unknown Object (File)
Apr 18 2024, 2:08 PM

Details

Summary

This differential via CommCoreModule to JavaScript methods to retrieve and set current user ID that are defined and implemented in DatabaseQueryExecutor and SQLiteQueryExecutor in the parent diff.

Test Plan

Test plan is exactly the same as for parent diff with the difference that we want to call correspinding methods of global.CommCoreModule object instead of SQLiteQueryExecutor directly. This way we can be sure they work in JavaScript as well.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Add link to commit description

This revision is now accepted and ready to land.Aug 11 2022, 5:59 AM

Use database thread in current user id getter and setter

Move jsi operations from database thread to main thread

Make functions asynchronous