Skip to content

Commit b3556e9

Browse files
committed
[ML] Revert uptime changes
1 parent f6f2f8d commit b3556e9

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

x-pack/plugins/synthetics/public/legacy_uptime/components/overview/query_bar/use_query_bar.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const SAMPLE_ES_FILTERS = `{"bool":{"should":[{"match_phrase":{"monitor.id":"Nod
2121
describe.skip('useQueryBar', () => {
2222
let DEFAULT_URL_PARAMS: UptimeUrlParams;
2323
let wrapper: any;
24-
let useUrlParamsSpy: jest.SpyInstance<[URL.AsyncLinkCardParams, URL.UpdateUrlParams]>;
24+
let useUrlParamsSpy: jest.SpyInstance<[URL.GetUrlParams, URL.UpdateUrlParams]>;
2525
let useGetUrlParamsSpy: jest.SpyInstance<UptimeUrlParams>;
2626
let updateUrlParamsMock: jest.Mock;
2727
let useUpdateKueryStringSpy: jest.SpyInstance;

x-pack/plugins/synthetics/public/legacy_uptime/hooks/use_url_params.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@ import { setSelectedFilters } from '../state/actions/selected_filters';
1515
import { getFiltersFromMap } from './use_selected_filters';
1616
import { getParsedParams } from '../lib/helper/parse_search';
1717

18-
export type AsyncLinkCardParams = () => UptimeUrlParams;
18+
export type GetUrlParams = () => UptimeUrlParams;
1919
export type UpdateUrlParams = (updatedParams: {
2020
[key: string]: string | number | boolean | undefined;
2121
}) => void;
2222

23-
export type UptimeUrlParamsHook = () => [AsyncLinkCardParams, UpdateUrlParams];
23+
export type UptimeUrlParamsHook = () => [GetUrlParams, UpdateUrlParams];
2424

25-
export const useGetUrlParams: AsyncLinkCardParams = () => {
25+
export const useGetUrlParams: GetUrlParams = () => {
2626
const { search } = useLocation();
2727

2828
return getSupportedUrlParams(getParsedParams(search));

0 commit comments

Comments
 (0)