Skip to content

Commit

Permalink
fix display of metrics after supporting labeled distributions (#3016)
Browse files Browse the repository at this point in the history
  • Loading branch information
edugfilho authored Dec 24, 2024
1 parent 1d8dd1e commit 79a1799
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/config/glean.js
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,7 @@ export const FENIX = {
// This function is called directly after the response has been received by
// the frontend. It will always run, even against cached data, as a way of
// resetting the necessary state.
const viewType = probeType;
let etc = {};

// filter out true/false aggregate results in boolean metrics. See: https://github.com/mozilla/glam/pull/1525#discussion_r694135079
Expand All @@ -367,12 +368,12 @@ export const FENIX = {
data = data.filter((di) => di.client_agg_type === '');
}

if (probeType === 'categorical') {
if (viewType === 'categorical') {
etc = extractBucketMetadata(data);
appStore.setField('activeBuckets', etc.initialBuckets);
}

return { data, probeType, ...etc };
return { data, viewType, ...etc };
},
transformProbeForGLAM(probe) {
const pr = { ...probe };
Expand Down

0 comments on commit 79a1799

Please sign in to comment.