From 815b636b5c4ceae5209d29c19efef45367df8ba0 Mon Sep 17 00:00:00 2001 From: Liza K Date: Tue, 16 Feb 2021 19:55:25 +0200 Subject: [PATCH] code review --- src/plugins/data/public/autocomplete/collectors/types.ts | 8 ++++---- src/plugins/data/public/ui/filter_bar/filter_bar.tsx | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/plugins/data/public/autocomplete/collectors/types.ts b/src/plugins/data/public/autocomplete/collectors/types.ts index 582c7a5485e35..60eb9103dc44e 100644 --- a/src/plugins/data/public/autocomplete/collectors/types.ts +++ b/src/plugins/data/public/autocomplete/collectors/types.ts @@ -7,10 +7,10 @@ */ export enum AUTOCOMPLETE_EVENT_TYPE { - CALL = 'call', - REQUEST = 'req', - RESULT = 'res', - ERROR = 'err', + CALL = 'autocomplete:call', + REQUEST = 'autocomplete:req', + RESULT = 'autocomplete:res', + ERROR = 'autocomplete:err', } export interface AutocompleteUsageCollector { diff --git a/src/plugins/data/public/ui/filter_bar/filter_bar.tsx b/src/plugins/data/public/ui/filter_bar/filter_bar.tsx index 8e978e8bda145..9605eba9c1c28 100644 --- a/src/plugins/data/public/ui/filter_bar/filter_bar.tsx +++ b/src/plugins/data/public/ui/filter_bar/filter_bar.tsx @@ -133,7 +133,7 @@ function FilterBarUI(props: Props) { } function onUpdate(i: number, filter: Filter) { - reportUiCounter?.(METRIC_TYPE.CLICK, `filte:edited`); + reportUiCounter?.(METRIC_TYPE.CLICK, `filter:edited`); const filters = [...props.filters]; filters[i] = filter; onFiltersUpdated(filters);