1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-01 00:08:27 +01:00
unleash.unleash/frontend/src/component/insights/hooks
Jaanus Sellin 6c8b1d8904
fix: when finding median time to production, ignore 0s (#7200)
We have an issue that if you open up Insights, the Time to Production
chart was showing nothing because it was taking the median across all
projects. You might have many new or empty projects where the median was
0 (no data).

For example, the median from [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1.7, 50.3, 140] was 0.

Now, we will remove the 0 values to have a more reasonable median.
2024-05-29 14:17:31 +03:00
..
useAllDatapoints.ts feat: fill metrics summary missing datapoints with 0 (#6820) 2024-04-10 14:38:45 +03:00
useFilledMetricsSummary.test.ts feat: fill metrics summary missing datapoints with 0 (#6820) 2024-04-10 14:38:45 +03:00
useFilledMetricsSummary.ts feat: fill metrics summary missing datapoints with 0 (#6820) 2024-04-10 14:38:45 +03:00
useFilteredFlagsSummary.test.ts fix: when finding median time to production, ignore 0s (#7200) 2024-05-29 14:17:31 +03:00
useFilteredFlagsSummary.ts fix: when finding median time to production, ignore 0s (#7200) 2024-05-29 14:17:31 +03:00
useFilteredTrends.test.ts Chore/rename dashboard files to insights (#6662) 2024-03-21 16:39:03 +02:00
useFilteredTrends.ts Chore/rename dashboard files to insights (#6662) 2024-03-21 16:39:03 +02:00
useGroupedProjectTrends.test.ts Chore/rename dashboard files to insights (#6662) 2024-03-21 16:39:03 +02:00
useGroupedProjectTrends.ts Chore/rename dashboard files to insights (#6662) 2024-03-21 16:39:03 +02:00
useInsightsData.ts feat: fill metrics summary missing datapoints with 0 (#6820) 2024-04-10 14:38:45 +03:00
usePlaceholderData.ts Chore/rename dashboard files to insights (#6662) 2024-03-21 16:39:03 +02:00
useProjectChartData.ts Chore/rename dashboard files to insights (#6662) 2024-03-21 16:39:03 +02:00
useProjectColor.ts Chore/rename dashboard files to insights (#6662) 2024-03-21 16:39:03 +02:00