From b71e08ad5904266daafec3b21aecc5791bb51aa3 Mon Sep 17 00:00:00 2001 From: Laura Benz <48948963+L-M-K-B@users.noreply.github.com> Date: Thu, 13 Oct 2022 12:12:50 +0200 Subject: [PATCH] Explore: Remove camel case from tracking labels (#56809) * refactor: remove camel case from tracking labels * refactor: remove camel case from tracking labels --- public/app/AppWrapper.tsx | 2 +- public/app/features/commandPalette/CommandPalette.tsx | 2 +- .../features/explore/AddToDashboard/AddToDashboardModal.tsx | 4 ++-- public/app/features/explore/ExploreToolbar.tsx | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/public/app/AppWrapper.tsx b/public/app/AppWrapper.tsx index 36f259796c6..b7924f787e3 100644 --- a/public/app/AppWrapper.tsx +++ b/public/app/AppWrapper.tsx @@ -105,7 +105,7 @@ export class AppWrapper extends React.Component { - reportInteraction('commandPalette_action_selected', { + reportInteraction('command_palette_action_selected', { actionId: action.id, actionName: action.name, }); diff --git a/public/app/features/commandPalette/CommandPalette.tsx b/public/app/features/commandPalette/CommandPalette.tsx index 8aa10de32b6..e87f0b6b1e3 100644 --- a/public/app/features/commandPalette/CommandPalette.tsx +++ b/public/app/features/commandPalette/CommandPalette.tsx @@ -55,7 +55,7 @@ export const CommandPalette = () => { useEffect(() => { if (showing) { - reportInteraction('commandPalette_opened'); + reportInteraction('command_palette_opened'); // Do dashboard search on demand getDashboardNavActions('go/dashboard').then((dashAct) => { diff --git a/public/app/features/explore/AddToDashboard/AddToDashboardModal.tsx b/public/app/features/explore/AddToDashboard/AddToDashboardModal.tsx index 34353afc939..b9fc2ec4447 100644 --- a/public/app/features/explore/AddToDashboard/AddToDashboardModal.tsx +++ b/public/app/features/explore/AddToDashboard/AddToDashboardModal.tsx @@ -97,7 +97,7 @@ export const AddToDashboardModal = ({ onClose, exploreId }: Props) => { setSubmissionError(undefined); const dashboardUid = data.saveTarget === SaveTarget.ExistingDashboard ? data.dashboardUid : undefined; - reportInteraction('e2d_submit', { + reportInteraction('e_2_d_submit', { newTab: openInNewTab, saveTarget: data.saveTarget, queries: exploreItem.queries.length, @@ -144,7 +144,7 @@ export const AddToDashboardModal = ({ onClose, exploreId }: Props) => { }; useEffect(() => { - reportInteraction('e2d_open'); + reportInteraction('e_2_d_open'); }, []); return ( diff --git a/public/app/features/explore/ExploreToolbar.tsx b/public/app/features/explore/ExploreToolbar.tsx index d7e15544ef6..e2a0b67a0c7 100644 --- a/public/app/features/explore/ExploreToolbar.tsx +++ b/public/app/features/explore/ExploreToolbar.tsx @@ -77,13 +77,13 @@ class UnConnectedExploreToolbar extends PureComponent { onOpenSplitView = () => { const { split } = this.props; split(); - reportInteraction('grafana_explore_splitView_opened'); + reportInteraction('grafana_explore_split_view_opened'); }; onCloseSplitView = () => { const { closeSplit, exploreId } = this.props; closeSplit(exploreId); - reportInteraction('grafana_explore_splitView_closed'); + reportInteraction('grafana_explore_split_view_closed'); }; renderRefreshPicker = (showSmallTimePicker: boolean) => {