Page MenuHomePhabricator

[keyserver, lib] Add message search endpoint
ClosedPublic

Authored by inka on Apr 27 2023, 6:15 AM.
Tags
None
Referenced Files
F3524350: D7651.diff
Mon, Dec 23, 12:21 PM
Unknown Object (File)
Sat, Dec 21, 4:33 AM
Unknown Object (File)
Fri, Dec 20, 2:05 AM
Unknown Object (File)
Fri, Dec 6, 10:59 PM
Unknown Object (File)
Sun, Dec 1, 6:30 AM
Unknown Object (File)
Mon, Nov 25, 8:47 PM
Unknown Object (File)
Mon, Nov 25, 8:47 PM
Unknown Object (File)
Nov 9 2024, 10:43 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.