Skip to content

Commit

Permalink
fix ts issues
Browse files Browse the repository at this point in the history
  • Loading branch information
torkelo committed Mar 30, 2022
1 parent ff21af4 commit 1120f9e
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 98 deletions.
103 changes: 15 additions & 88 deletions packages/grafana-e2e/cypress/fixtures/exemplars-query-response.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,50 +23,16 @@
"data": {
"values": [
[
1633619595000,
1633619610000,
1633619625000,
1633619640000,
1633619655000,
1633619670000,
1633619685000,
1633619700000,
1633619715000,
1633619730000,
1633619745000,
1633619760000,
1633619775000,
1633619790000,
1633619805000,
1633619820000,
1633619835000,
1633619850000,
1633619865000,
1633619880000,
1633619895000
1633619595000, 1633619610000, 1633619625000, 1633619640000, 1633619655000, 1633619670000, 1633619685000,
1633619700000, 1633619715000, 1633619730000, 1633619745000, 1633619760000, 1633619775000, 1633619790000,
1633619805000, 1633619820000, 1633619835000, 1633619850000, 1633619865000, 1633619880000, 1633619895000
],
[
0.07245212135073513,
0.07253198890830721,
0.07247862573797707,
0.07238248338231042,
0.07221687487740913,
0.07223291298743946,
0.07225427016727755,
0.024531677091864545,
0.02317081920915543,
0.07548902139580993,
0.0777721702857508,
0.07768649905047344,
0.07782257603228229,
0.07788810213200052,
0.07791835055437593,
0.07798387201529966,
0.07790826751849372,
0.07794858648610933,
0.07778729925797964,
0.07769657495236215,
0.077550401329267
0.07245212135073513, 0.07253198890830721, 0.07247862573797707, 0.07238248338231042, 0.07221687487740913,
0.07223291298743946, 0.07225427016727755, 0.024531677091864545, 0.02317081920915543,
0.07548902139580993, 0.0777721702857508, 0.07768649905047344, 0.07782257603228229, 0.07788810213200052,
0.07791835055437593, 0.07798387201529966, 0.07790826751849372, 0.07794858648610933, 0.07778729925797964,
0.07769657495236215, 0.077550401329267
]
]
}
Expand Down Expand Up @@ -113,54 +79,15 @@
"data": {
"values": [
[
1633619598000,
1633619622000,
1633619625000,
1633619646000,
1633619658000,
1633619682000,
1633619695000,
1633619712000,
1633619712000,
1633619724000,
1633619717000,
1633619742000,
1633619757000,
1633619771000,
1633619784000,
1633619801000,
1633619806000,
1633619833000,
1633619833000,
1633619845000,
1633619862000,
1633619877000,
1633619889000
1633619598000, 1633619622000, 1633619625000, 1633619646000, 1633619658000, 1633619682000, 1633619695000,
1633619712000, 1633619712000, 1633619724000, 1633619717000, 1633619742000, 1633619757000, 1633619771000,
1633619784000, 1633619801000, 1633619806000, 1633619833000, 1633619833000, 1633619845000, 1633619862000,
1633619877000, 1633619889000
],
[
0.0146153,
0.0118506,
0.0473847,
0.026997,
0.0164318,
0.0113532,
0.0105197,
0.162789,
0.0556026,
0.148856,
0.0433809,
0.0117758,
0.0114496,
0.0114099,
0.0421927,
0.0134148,
0.0152827,
0.6975967,
0.0394788,
0.0137441,
0.0110939,
0.0104496,
0.0101284
0.0146153, 0.0118506, 0.0473847, 0.026997, 0.0164318, 0.0113532, 0.0105197, 0.162789, 0.0556026,
0.148856, 0.0433809, 0.0117758, 0.0114496, 0.0114099, 0.0421927, 0.0134148, 0.0152827, 0.6975967,
0.0394788, 0.0137441, 0.0110939, 0.0104496, 0.0101284
],
[
"app:80",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export interface OwnProps {
dashboard: DashboardModel;
isFullscreen: boolean;
kioskMode: KioskMode;
hideTimePicker: boolean;
hideTimePicker?: boolean;
folderTitle?: string;
title: string;
onAddPanel: () => void;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Input, defaultIntervals, Field } from '@grafana/ui';
import { getTimeSrv } from '../../services/TimeSrv';

export interface Props {
refreshIntervals: string[];
refreshIntervals?: string[];
onRefreshIntervalChange: (interval: string[]) => void;
getIntervalsFunc?: typeof getValidIntervals;
validateIntervalsFunc?: typeof validateIntervals;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ interface Props {
onMaxTimeRangeChange: (maxTimeRange: string) => void;
onHideTimePickerChange: (hide: boolean) => void;
onLiveNowChange: (liveNow: boolean) => void;
refreshIntervals: string[];
timePickerHidden: boolean;
nowDelay: string;
maxTimeRange: string;
refreshIntervals?: string[];
timePickerHidden?: boolean;
nowDelay?: string;
maxTimeRange?: string;
timezone: TimeZone;
weekStart: string;
liveNow: boolean;
Expand Down Expand Up @@ -114,10 +114,7 @@ export class TimePickerSettings extends PureComponent<Props, State> {
defaultValue={this.props.nowDelay}
/>
</Field>
<Field
label="Max time range"
description="Limits users to the specified time interval."
>
<Field label="Max time range" description="Limits users to the specified time interval.">
<Input
invalid={!this.state.isMaxTimeRangeValid}
onChange={this.onMaxTimeRangeChange}
Expand Down

0 comments on commit 1120f9e

Please sign in to comment.