feat(dashboard): settings page shows GroupToTag and UntaggedSessionVisibility
This commit is contained in:
@@ -7,4 +7,6 @@ public sealed record EffectiveDashboardConfiguration(
|
||||
int RecentFaultLimit,
|
||||
int RecentSessionLimit,
|
||||
bool ShowTagValues,
|
||||
IReadOnlyDictionary<string, string> GroupToRole);
|
||||
IReadOnlyDictionary<string, string> GroupToRole,
|
||||
IReadOnlyDictionary<string, IReadOnlyList<string>> GroupToTag,
|
||||
UntaggedSessionVisibility UntaggedSessionVisibility);
|
||||
|
||||
@@ -62,7 +62,15 @@ public sealed class GatewayConfigurationProvider(IOptions<GatewayOptions> option
|
||||
RecentFaultLimit: value.Dashboard.RecentFaultLimit,
|
||||
RecentSessionLimit: value.Dashboard.RecentSessionLimit,
|
||||
ShowTagValues: value.Dashboard.ShowTagValues,
|
||||
GroupToRole: value.Dashboard.GroupToRole),
|
||||
GroupToRole: value.Dashboard.GroupToRole,
|
||||
// Rebuilt rather than passed through because the value type widens from string[]
|
||||
// to IReadOnlyList<string>; the comparer is carried over so the projected map
|
||||
// still matches LDAP group names in whatever case the directory returns them.
|
||||
GroupToTag: value.Dashboard.GroupToTag.ToDictionary(
|
||||
pair => pair.Key,
|
||||
pair => (IReadOnlyList<string>)pair.Value,
|
||||
StringComparer.OrdinalIgnoreCase),
|
||||
UntaggedSessionVisibility: value.Dashboard.UntaggedSessionVisibility),
|
||||
Protocol: new EffectiveProtocolConfiguration(
|
||||
value.Protocol.WorkerProtocolVersion,
|
||||
value.Protocol.MaxGrpcMessageBytes));
|
||||
|
||||
Reference in New Issue
Block a user