-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: public urls with computed measures and dependant measures are hi…
…dden (#6520) * Add requiredMeasures to explore fields * Do not send referenced measures for non-window measures * Fix windowed measures * Fix lint+tests * Refactor filter method * Change function name
- Loading branch information
1 parent
81dbf94
commit 0b87431
Showing
8 changed files
with
96 additions
and
168 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 1 addition & 4 deletions
5
web-common/src/features/dashboards/state-managers/selectors/dashboard-queries.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,14 @@ | ||
import { getIndependentMeasures } from "@rilldata/web-common/features/dashboards/state-managers/selectors/measures"; | ||
import type { V1MetricsViewSpec } from "@rilldata/web-common/runtime-client"; | ||
import { additionalMeasures } from "../../selectors"; | ||
import type { DimensionThresholdFilter } from "../../stores/metrics-explorer-entity"; | ||
|
||
export function getMeasuresForDimensionTable( | ||
activeMeasureName: string, | ||
dimensionThresholdFilters: DimensionThresholdFilter[], | ||
metricsView: V1MetricsViewSpec | undefined, | ||
visibleMeasureNames: string[], | ||
) { | ||
const allMeasures = new Set([ | ||
...visibleMeasureNames, | ||
...additionalMeasures(activeMeasureName, dimensionThresholdFilters), | ||
]); | ||
return getIndependentMeasures(metricsView ?? {}, [...allMeasures]); | ||
return [...allMeasures]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
0b87431
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉 Published on https://ui.rilldata.in as production
🚀 Deployed on https://679b95833583d26de75f5fff--rill-ui-dev.netlify.app