Page MenuHomePhabricator

[grpc_clients] Accept PlatformMetadata when creating client
ClosedPublic

Authored by bartek on Jun 3 2024, 5:42 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Nov 13, 7:57 PM
Unknown Object (File)
Wed, Nov 13, 7:56 PM
Unknown Object (File)
Wed, Nov 13, 12:50 PM
Unknown Object (File)
Tue, Nov 12, 4:44 PM
Unknown Object (File)
Tue, Nov 12, 3:56 PM
Unknown Object (File)
Oct 11 2024, 7:22 PM
Unknown Object (File)
Oct 11 2024, 7:22 PM
Unknown Object (File)
Oct 11 2024, 7:22 PM
Subscribers

Details

Summary
  • Updated grpc_clients::get_auth_client and get_unauthenticated_client to accept

PlatformMetadata argument instead of separate values for code version and platform.

  • Updated all callsites across repo

Depends on D12282

Test Plan
  • CI
  • Keyserver, native_rust_library, commtest compilation
  • Performed several identity actions on clients (native + web) - printed metadata values server-side

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

bartek held this revision as a draft.
bartek published this revision for review.Jun 3 2024, 6:47 AM
shared/grpc_clients/src/identity/unauthenticated/client.rs
21 ↗(On Diff #40851)

Why is new object instead of PLATFORM_METADATA constant?

shared/grpc_clients/src/identity/unauthenticated/client.rs
21 ↗(On Diff #40851)

This is a different crate. We cannot use a constant because this can be called by keyserver, native, or other services.

This revision is now accepted and ready to land.Jun 5 2024, 2:24 AM