Page MenuHomePhabricator

[SQLite] Introduce getRelatedMessages
ClosedPublic

Authored by ashoat on Jul 14 2024, 6:08 PM.
Tags
None
Referenced Files
F2719665: D12737.diff
Mon, Sep 16, 1:32 PM
Unknown Object (File)
Sun, Sep 15, 10:07 AM
Unknown Object (File)
Sun, Sep 15, 10:06 AM
Unknown Object (File)
Sat, Sep 14, 11:07 PM
Unknown Object (File)
Tue, Sep 10, 11:58 AM
Unknown Object (File)
Tue, Sep 10, 6:18 AM
Unknown Object (File)
Tue, Aug 27, 10:17 AM
Unknown Object (File)
Mon, Aug 26, 2:02 PM
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
No Lint Coverage
Unit
No Test Coverage

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.