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
Unknown Object (File)
Thu, Aug 29, 8:51 AM
Unknown Object (File)
Tue, Aug 27, 7:48 AM
Unknown Object (File)
Mon, Aug 26, 12:36 PM
Unknown Object (File)
Mon, Aug 26, 12:36 PM
Unknown Object (File)
Mon, Aug 26, 12:36 PM
Unknown Object (File)
Mon, Aug 26, 12:36 PM
Unknown Object (File)
Fri, Aug 23, 8:04 AM
Unknown Object (File)
Wed, Aug 21, 11:14 AM
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