Browse Source

fix(metrics-extraction): Elide meta information in timeseries in UI (#65560)

### Summary
There was an edgecase for topN (topEvents) timeseries where
'isMetricsExtractedData' is returned in the root of the group along with
order (it really should be in meta, but that's outside the scope of this
PR). This omits it so it doesn't appear in the legend

#### Screenshot
![Screenshot 2024-02-21 at 2 12 56
PM](https://github.com/getsentry/sentry/assets/6111995/7e2b9ceb-7842-4de9-81aa-a0f889f576c2)
Kev 1 year ago
parent
commit
de62998ea2
1 changed files with 3 additions and 1 deletions
  1. 3 1
      static/app/views/dashboards/widgetCard/widgetQueries.tsx

+ 3 - 1
static/app/views/dashboards/widgetCard/widgetQueries.tsx

@@ -79,7 +79,9 @@ export function flattenMultiSeriesDataWithGrouping(
 
   groupNames.forEach(groupName => {
     // Each group contains an order key which we should ignore
-    const aggregateNames = Object.keys(omit(result[groupName], 'order'));
+    const aggregateNames = Object.keys(
+      omit(result[groupName], ['order', 'isMetricsExtractedData'])
+    );
 
     aggregateNames.forEach(aggregate => {
       const seriesName = `${groupName} : ${aggregate}`;