mirror of
https://github.com/Unleash/unleash.git
synced 2025-08-04 13:48:56 +02:00
feat: series query warning
This commit is contained in:
parent
45e5b217aa
commit
66ceab1fbf
@ -72,7 +72,9 @@ export const LabelsFilter: FC<LabelsFilterProps> = ({
|
|||||||
flexGrow: 1,
|
flexGrow: 1,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{Object.entries(availableLabels).map(([labelKey, values]) => {
|
{Object.entries(availableLabels)
|
||||||
|
.sort()
|
||||||
|
.map(([labelKey, values]) => {
|
||||||
const currentSelection = selectedLabels[labelKey] || [];
|
const currentSelection = selectedLabels[labelKey] || [];
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
@ -202,6 +202,19 @@ export const ImpactMetricsChart: FC<ImpactMetricsChartProps> = ({
|
|||||||
</Typography>
|
</Typography>
|
||||||
</Box>
|
</Box>
|
||||||
) : null}
|
) : null}
|
||||||
|
{isPreview && debug?.isTruncated ? (
|
||||||
|
<Box
|
||||||
|
sx={(theme) => ({
|
||||||
|
padding: theme.spacing(0, 2),
|
||||||
|
})}
|
||||||
|
>
|
||||||
|
<Alert severity='warning'>
|
||||||
|
Showing only {timeSeriesData.length} series due to
|
||||||
|
performance. Please change filters for more accurate
|
||||||
|
results.
|
||||||
|
</Alert>
|
||||||
|
</Box>
|
||||||
|
) : null}
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
@ -10,6 +10,7 @@ export type ImpactMetricsSeries = {
|
|||||||
data: TimeSeriesData;
|
data: TimeSeriesData;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// TODO: use OpenAPI types
|
||||||
export type ImpactMetricsResponse = {
|
export type ImpactMetricsResponse = {
|
||||||
start?: string;
|
start?: string;
|
||||||
end?: string;
|
end?: string;
|
||||||
@ -18,6 +19,7 @@ export type ImpactMetricsResponse = {
|
|||||||
labels?: ImpactMetricsLabels;
|
labels?: ImpactMetricsLabels;
|
||||||
debug?: {
|
debug?: {
|
||||||
query?: string;
|
query?: string;
|
||||||
|
isTruncated?: string;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user