Page MenuHomePhabricator

[Tunnelbroker] send push notifs to windows devices
ClosedPublic

Authored by varun on Jul 30 2024, 12:02 AM.
Tags
None
Referenced Files
F2753284: D12935.diff
Wed, Sep 18, 5:15 PM
F2741520: D12935.diff
Wed, Sep 18, 12:45 AM
Unknown Object (File)
Tue, Sep 10, 11:55 PM
Unknown Object (File)
Sun, Sep 8, 2:06 PM
Unknown Object (File)
Sun, Sep 8, 2:06 PM
Unknown Object (File)
Sun, Sep 8, 2:06 PM
Unknown Object (File)
Sun, Sep 8, 6:51 AM
Unknown Object (File)
Sat, Sep 7, 11:06 AM
Subscribers

Details

Summary

Make it possible to send push notifs to windows devices through tunnelbroker

Depends on D12934

Test Plan

https://gist.github.com/vdhanan/3921680cde51e92a8c7787771b36d19a

successfully sent push notifs to my windows desktop app

Diff Detail

Repository
rCOMM Comm
Branch
windows (branched from master)
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

varun held this revision as a draft.
shared/tunnelbroker_messages/src/messages/notif.rs
40–41 ↗(On Diff #42928)

See https://linear.app/comm/issue/ENG-8901/fix-serde-parsing-incorrect-tunnelbroker-message-types
The same problem appears here and that's why Commtest CI fails

40–41 ↗(On Diff #42928)

should be TagAwareDeserialize, sorry

fix message serialization

finally got this working and tested end to end

varun published this revision for review.Aug 6 2024, 8:57 PM
varun retitled this revision from [WIP][Tunnelbroker] send push notifs to windows devices to [Tunnelbroker] send push notifs to windows devices.
varun edited the summary of this revision. (Show Details)
varun edited the test plan for this revision. (Show Details)

update revision

bartek added 1 blocking reviewer(s): kamil.

LGTM, letting @kamil take a look at the request format

services/tunnelbroker/src/notifs/wns/mod.rs
40

nit, to disambiguate WNS token and device token

kamil added inline comments.
services/tunnelbroker/src/notifs/wns/mod.rs
59–69

Could you create a specific error for status codes?

Similar to what I did in e.g. D12768. Most important are errors about invalid device token which you need for ENG-8913.

71–75

I don't think this is needed - we don't that for other push services, for keyserver it was implemented because notif ID was needed

This revision is now accepted and ready to land.Aug 7 2024, 12:42 AM
This revision was landed with ongoing or failed builds.Aug 7 2024, 2:41 PM
This revision was automatically updated to reflect the committed changes.