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)
Tue, Jul 2, 4:54 AM
Unknown Object (File)
Sun, Jun 23, 5:49 PM
Unknown Object (File)
Sat, Jun 22, 10:05 PM
Unknown Object (File)
Sat, Jun 22, 8:06 PM
Unknown Object (File)
Sat, Jun 22, 8:05 PM
Unknown Object (File)
Sat, Jun 22, 3:47 PM
Unknown Object (File)
Sat, Jun 22, 9:57 AM
Unknown Object (File)
Fri, Jun 21, 6:02 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.Wed, Jun 5, 2:24 AM