1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-09-28 17:55:15 +02:00

feat: display aggregation mode automatically (#10696)

This commit is contained in:
Mateusz Kwasniewski 2025-09-24 18:02:26 +02:00 committed by GitHub
parent e0cdf6addd
commit 58c0076f22
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -25,15 +25,7 @@ const getConfigDescription = (config: DisplayChartConfig): string => {
parts.push(`last ${config.timeRange}`);
if (config.aggregationMode === 'rps') {
parts.push('rate per second');
} else if (config.aggregationMode === 'count') {
parts.push('count');
} else if (config.aggregationMode === 'avg') {
parts.push('average');
} else if (config.aggregationMode === 'sum') {
parts.push('sum');
}
parts.push(config.aggregationMode);
const labelCount = Object.keys(config.labelSelectors).length;
if (labelCount > 0) {