1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-30 13:33:24 +01:00

Remove explicit client version attributes (#4767)

This commit is contained in:
Matt Bishop 2024-09-11 16:56:21 -04:00 committed by GitHub
parent df61edbce7
commit c8392804f9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -19,9 +19,6 @@ public class LaunchDarklyFeatureService : IFeatureService
private const string _contextKindServiceAccount = "service-account"; private const string _contextKindServiceAccount = "service-account";
private const string _contextAttributeClientVersion = "client-version"; private const string _contextAttributeClientVersion = "client-version";
private const string _contextAttributeClientVersionMajor = "client-version-major";
private const string _contextAttributeClientVersionMinor = "client-version-minor";
private const string _contextAttributeClientVersionBuild = "client-version-build";
private const string _contextAttributeDeviceType = "device-type"; private const string _contextAttributeDeviceType = "device-type";
private const string _contextAttributeOrganizations = "organizations"; private const string _contextAttributeOrganizations = "organizations";
@ -146,9 +143,6 @@ public class LaunchDarklyFeatureService : IFeatureService
if (_currentContext.ClientVersion != null) if (_currentContext.ClientVersion != null)
{ {
builder.Set(_contextAttributeClientVersion, _currentContext.ClientVersion.ToString()); builder.Set(_contextAttributeClientVersion, _currentContext.ClientVersion.ToString());
builder.Set(_contextAttributeClientVersionMajor, _currentContext.ClientVersion.Major);
builder.Set(_contextAttributeClientVersionMinor, _currentContext.ClientVersion.Minor);
builder.Set(_contextAttributeClientVersionBuild, _currentContext.ClientVersion.Build);
} }
if (_currentContext.DeviceType.HasValue) if (_currentContext.DeviceType.HasValue)