From 0feaf481e5e475755f3015270c007dee7c26ebe6 Mon Sep 17 00:00:00 2001 From: Scott Cooper Date: Tue, 25 Nov 2025 09:29:25 -0800 Subject: [PATCH] fix(aci): Multiply release data values by 100 Currently all release data is 0-1 multiply by 100 to display as percentage. --- .../detectors/datasetConfig/utils/releasesSeries.tsx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/static/app/views/detectors/datasetConfig/utils/releasesSeries.tsx b/static/app/views/detectors/datasetConfig/utils/releasesSeries.tsx index 3c92829db22180..c442ac70933151 100644 --- a/static/app/views/detectors/datasetConfig/utils/releasesSeries.tsx +++ b/static/app/views/detectors/datasetConfig/utils/releasesSeries.tsx @@ -30,10 +30,12 @@ export function transformMetricsResponseToSeries( data: data.intervals.map((interval: string, index: number) => { return { name: new Date(interval).getTime(), - value: data.groups.reduce((acc: number, group) => { - const value = group.series?.[field]?.[index] ?? 0; - return acc + value; - }, 0), + // Releases metrics API returns rate values between 0-1, multiply by 100 for percentage display + value: + data.groups.reduce((acc: number, group) => { + const value = group.series?.[field]?.[index] ?? 0; + return acc + value; + }, 0) * 100, }; }), };