Page MenuHomePhabricator

[grpc_clients] Accept PlatformMetadata when creating client
ClosedPublic

Authored by bartek on Jun 3 2024, 5:42 AM.
Tags
None
Referenced Files
F2897455: D12283.id40851.diff
Fri, Oct 4, 11:32 PM
F2897454: D12283.id41054.diff
Fri, Oct 4, 11:32 PM
Unknown Object (File)
Tue, Sep 10, 4:39 PM
Unknown Object (File)
Tue, Sep 10, 4:39 PM
Unknown Object (File)
Tue, Sep 10, 4:39 PM
Unknown Object (File)
Tue, Sep 10, 4:38 PM
Unknown Object (File)
Tue, Sep 10, 4:36 PM
Unknown Object (File)
Aug 10 2024, 7:02 AM
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
No Lint Coverage
Unit
No Test Coverage

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