Page MenuHomePhabricator

[native][web] Introduce a method fetching messages by ID to SQLiteAPI
ClosedPublic

Authored by tomek on Jul 15 2024, 4:13 AM.
Tags
None
Referenced Files
F3149453: D12745.id42390.diff
Mon, Nov 4, 2:04 PM
Unknown Object (File)
Sun, Nov 3, 5:27 AM
Unknown Object (File)
Thu, Oct 24, 12:52 AM
Unknown Object (File)
Wed, Oct 23, 9:54 PM
Unknown Object (File)
Wed, Oct 23, 10:23 AM
Unknown Object (File)
Tue, Oct 22, 9:30 AM
Unknown Object (File)
Tue, Oct 22, 6:05 AM
Unknown Object (File)
Fri, Oct 18, 10:29 PM
Subscribers

Details

Summary

This method will be used to handle manual retries.

https://linear.app/comm/issue/ENG-8675/add-option-to-manually-retry-a-message

Depends on D12744

Test Plan

Tested in combination with the rest of the stack. Sending messages requires calling this API so checking if messages are sent tests it.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Harbormaster returned this revision to the author for changes because remote builds failed.Jul 15 2024, 4:38 AM
Harbormaster failed remote builds in B30322: Diff 42283!
tomek requested review of this revision.Jul 16 2024, 5:14 AM
lib/types/sqlite-types.js
42–43 ↗(On Diff #42342)

Looks like there was a typo here and the s at the end was left out (it's included in other uses of this name)

kamil added inline comments.
lib/types/sqlite-types.js
48 ↗(On Diff #42390)

I prefer to return OutboundP2PMessage[] here but up to you

42–43 ↗(On Diff #42342)

Looks like there was a typo here and the s at the end was left out (it's included in other uses of this name)

Yeah, this is my oversight

web/types/worker-types.js
199 ↗(On Diff #42390)

TO avoid confusing with GetOutboundP2PMessagesRequestMessage above

This revision is now accepted and ready to land.Jul 18 2024, 6:23 AM
tomek marked 2 inline comments as done.

Update types and names

lib/types/sqlite-types.js
48 ↗(On Diff #42390)

OutboundP2PMessage[] syntax is recommended to be avoided by Flow. But we can use Array<OutboundP2PMessage>

42–43 ↗(On Diff #42342)

Will put up a separate diff fixing it

web/types/worker-types.js
199 ↗(On Diff #42390)

Makes sense!

lib/types/sqlite-types.js
42–43 ↗(On Diff #42342)

Fixed in D12804