Page MenuHomePhabricator

[native] Add message search store
ClosedPublic

Authored by inka on Jul 18 2024, 8:08 AM.
Tags
None
Referenced Files
F3358330: D12795.id42658.diff
Sun, Nov 24, 4:10 AM
F3358312: D12795.id42654.diff
Sun, Nov 24, 4:04 AM
F3358308: D12795.id42471.diff
Sun, Nov 24, 4:03 AM
F3358277: D12795.id42546.diff
Sun, Nov 24, 3:54 AM
F3358254: D12795.id42547.diff
Sun, Nov 24, 3:47 AM
Unknown Object (File)
Tue, Nov 19, 5:12 AM
Unknown Object (File)
Tue, Nov 19, 4:56 AM
Unknown Object (File)
Tue, Nov 12, 11:50 PM
Subscribers

Details

Summary

issue: ENG-8831

Test Plan

Tested with the next diff. Added an "add search message" operation on the js side and tested that updateMessageSearchIndex was run and no errors showed up in Metro nor in XCode console

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

inka requested review of this revision.Jul 18 2024, 8:24 AM
native/cpp/CommonCpp/NativeModules/PersistentStorageUtilities/DataStores/MessageSearchStore.cpp
9 ↗(On Diff #42471)

I will rename insert to update

native/cpp/CommonCpp/NativeModules/PersistentStorageUtilities/DataStores/MessageSearchStore.cpp
16 ↗(On Diff #42471)

I might be missing something but I am confused why this function doesn't do anything. If it is intended to always return empty array then it is a good practice to declare jsiSearchMessages as static to avoid recomputing this variable upon each call to this function.

You need to add this to Cmake - example in D11509

native/cpp/CommonCpp/NativeModules/PersistentStorageUtilities/DataStores/MessageSearchStore.cpp
16 ↗(On Diff #42471)

It will return - it's just not yet implemented

native/cpp/CommonCpp/NativeModules/PersistentStorageUtilities/DataStores/MessageSearchStore.h
5 ↗(On Diff #42471)

Is it needed?

This revision is now accepted and ready to land.Jul 19 2024, 5:15 AM
native/cpp/CommonCpp/DatabaseManagers/entities/MessageSearchResult.h
29 ↗(On Diff #42471)

Newline

native/cpp/CommonCpp/NativeModules/PersistentStorageUtilities/DataStores/MessageSearchStore.h
5 ↗(On Diff #42471)

Yes, in the cpp file

Don't forget to add to CMake!

Add CMake changes. Tested that android builds and no errors are thrown

This revision is now accepted and ready to land.Jul 23 2024, 1:22 AM
This revision was automatically updated to reflect the committed changes.