Page MenuHomePhabricator

[SQLite] Introduce getRelatedMessages
ClosedPublic

Authored by ashoat on Jul 14 2024, 6:08 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Aug 27, 10:17 AM
Unknown Object (File)
Mon, Aug 26, 2:02 PM
Unknown Object (File)
Mon, Aug 19, 6:05 PM
Unknown Object (File)
Thu, Aug 15, 12:25 PM
Unknown Object (File)
Thu, Aug 15, 12:25 PM
Unknown Object (File)
Aug 1 2024, 12:36 AM
Unknown Object (File)
Jul 30 2024, 5:04 AM
Unknown Object (File)
Jul 29 2024, 11:57 AM
Subscribers
None

Details

Summary

I'm modelling this stack after @kamil's recent one (see D12080) that introduced functions to SQLiteAPI. First I'm introducing the shared SQLite C++ code, and then I will introduce the layers on native and web that will interact with it. This diff also contains some web-specific customizations necessary on the SQLite C++ code.

This query will be used for:

  1. Querying for a sidebar source's latest edit at sidebar creation time (ENG-8788)
  2. Querying for a messages edits and reactions for search results (ENG-87890)
Test Plan
  1. In combination with later diffs, I tested a patch on both native and web that hit getRelatedMessages with a specific message ID and confirmed that it returned the message
  2. I tested a message ID that did not exist and confirmed I got undefined back

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Jul 15 2024, 2:52 AM
ashoat retitled this revision from [SQLite] Introduce getLatestMessageEdit to [SQLite] Introduce getRelatedMessages.
ashoat edited the summary of this revision. (Show Details)
ashoat edited the test plan for this revision. (Show Details)

Rework into getRelatedMessages, which can be reused for rendering search results

This revision was automatically updated to reflect the committed changes.