Page MenuHomePhabricator

[keyserver, lib] Add message search endpoint
ClosedPublic

Authored by inka on Apr 27 2023, 6:15 AM.
Tags
None
Referenced Files
F3180761: D7651.id25816.diff
Fri, Nov 8, 5:16 AM
Unknown Object (File)
Sat, Nov 2, 2:31 PM
Unknown Object (File)
Fri, Nov 1, 5:33 AM
Unknown Object (File)
Mon, Oct 28, 1:44 AM
Unknown Object (File)
Thu, Oct 24, 8:35 AM
Unknown Object (File)
Tue, Oct 22, 5:33 PM
Unknown Object (File)
Mon, Oct 21, 2:07 AM
Unknown Object (File)
Sep 28 2024, 6:30 AM
Subscribers

Details

Summary

issue: https://linear.app/comm/issue/ENG-3170/create-a-keyserver-endpoint-for-the-message-search-within-specific
This endpoint allows searching messages. For now we can only search in one thread. It will have to be changed a bit in the future to be able to search in many threads, but we don't yet know how we will want that to work.

Test Plan

Tested with the next diff

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

inka requested review of this revision.Apr 27 2023, 6:33 AM
ashoat added inline comments.
lib/types/message-types.js
697

Personally I don't think we really need these aliases, we could just use SearchMessagesResponse throughout. I don't feel strongly though

This revision is now accepted and ready to land.Apr 27 2023, 12:43 PM

Remove SearchMessagesResult, rebase

Add endReached to response from message search endpoint

Fix - related messages were being counted to check if the end was reached.