From 20367b9421f67831795fbfbbaab45e25c9b57d23 Mon Sep 17 00:00:00 2001 From: "opensearch-trigger-bot[bot]" <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> Date: Fri, 18 Oct 2024 19:43:56 -0700 Subject: [PATCH] [BUG] Metrics fixes (#2217) (#2218) * updated release notes (#1997) * disable unfunctioning expand on metrics canvas --------- (cherry picked from commit 6edd8ef4d246afed7d7e1b00b94ef87817255a40) Signed-off-by: sumukhswamy Signed-off-by: Eric Signed-off-by: github-actions[bot] Co-authored-by: github-actions[bot] Co-authored-by: Sumukh Swamy --- .../visualization_container.test.tsx.snap | 42 ------------------- .../visualization_container.tsx | 36 ---------------- 2 files changed, 78 deletions(-) diff --git a/public/components/custom_panels/panel_modules/visualization_container/__tests__/__snapshots__/visualization_container.test.tsx.snap b/public/components/custom_panels/panel_modules/visualization_container/__tests__/__snapshots__/visualization_container.test.tsx.snap index b855f47d64..38d69afad3 100644 --- a/public/components/custom_panels/panel_modules/visualization_container/__tests__/__snapshots__/visualization_container.test.tsx.snap +++ b/public/components/custom_panels/panel_modules/visualization_container/__tests__/__snapshots__/visualization_container.test.tsx.snap @@ -94,48 +94,6 @@ exports[`Visualization Container Component renders add visualization container 1 - -
- - - - - - - -
-
diff --git a/public/components/custom_panels/panel_modules/visualization_container/visualization_container.tsx b/public/components/custom_panels/panel_modules/visualization_container/visualization_container.tsx index 136de2beef..238d0edbc6 100644 --- a/public/components/custom_panels/panel_modules/visualization_container/visualization_container.tsx +++ b/public/components/custom_panels/panel_modules/visualization_container/visualization_container.tsx @@ -6,10 +6,8 @@ import { EuiButton, EuiSmallButton, - EuiSmallButtonIcon, EuiCodeBlock, EuiContextMenuItem, - EuiContextMenuPanel, EuiFlexGroup, EuiFlexItem, EuiIcon, @@ -20,7 +18,6 @@ import { EuiModalHeader, EuiModalHeaderTitle, EuiPanel, - EuiPopover, EuiSpacer, EuiText, EuiToolTip, @@ -104,7 +101,6 @@ export const VisualizationContainer = ({ onEditClick, cloneVisualization, showFlyout, - removeVisualization, catalogVisualization, inlineEditor, actionMenuType, @@ -117,7 +113,6 @@ export const VisualizationContainer = ({ const [visualizationData, setVisualizationData] = useState([]); const [isLoading, setIsLoading] = useState(true); const [isError, setIsError] = useState({} as VizContainerError); - const onActionsMenuClick = () => setIsPopoverOpen((currPopoverOpen) => !currPopoverOpen); const closeActionsMenu = () => setIsPopoverOpen(false); const { http, pplService } = coreRefs; const { setToast } = useToast(); @@ -374,37 +369,6 @@ export const VisualizationContainer = ({ - - {editMode ? ( - { - removeVisualization(visualizationId); - }} - /> - ) : ( - - } - isOpen={isPopoverOpen} - closePopover={closeActionsMenu} - anchorPosition="downLeft" - panelPaddingSize="none" - > - - - )} - {inlineEditor}