Page MenuHomePhabricator

[Tunnelbroker] add message to set Device Token with Platform
ClosedPublic

Authored by kamil on Jul 30 2024, 3:48 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Nov 21, 1:37 AM
Unknown Object (File)
Thu, Nov 21, 1:37 AM
Unknown Object (File)
Sun, Nov 10, 5:34 AM
Unknown Object (File)
Sat, Nov 9, 11:36 PM
Unknown Object (File)
Sat, Nov 9, 9:35 PM
Unknown Object (File)
Sat, Nov 9, 9:01 PM
Unknown Object (File)
Sat, Nov 9, 7:13 PM
Unknown Object (File)
Wed, Nov 6, 11:03 PM
Subscribers

Details

Summary

ENG-8903.

Adding a new message type, we can't modify the previous because of backward compatibility - this makes it easier to achieve what we want.

Depends on D12911

Test Plan

Tests

Diff Detail

Repository
rCOMM Comm
Branch
publish-platform-details
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

kamil held this revision as a draft.
kamil published this revision for review.Jul 30 2024, 5:36 AM
bartek added inline comments.
shared/tunnelbroker_messages/src/messages/message_to_tunnelbroker.rs
12–20

This is useful! I guess we might want to move this enum to comm-lib soon, as a part of https://linear.app/comm/issue/ENG-8904/stop-sending-device-type-in-device-key-upload

And use it instead of the proto enum for metadata

cc @marcin

34–38

Do we need this trait? Isn't Display and .to_string() enough?

39–46

There's dedicated FromStr trait for this: https://doc.rust-lang.org/std/str/trait.FromStr.html

address review

shared/tunnelbroker_messages/src/messages/message_to_tunnelbroker.rs
34–38

It is, this some leftover

39–46

right

This revision is now accepted and ready to land.Jul 31 2024, 3:45 AM