From 5ad090f6bd8ace0cf41831c3b47b0ba203f44dd5 Mon Sep 17 00:00:00 2001 From: PhilippeOberti Date: Tue, 23 Apr 2024 12:57:03 -0500 Subject: [PATCH] [Security Solution][Alert details] - remove old flyout unnecessary z-index change --- .../public/timelines/components/side_panel/index.tsx | 10 ++-------- .../timelines/unified_components/query_tab.cy.ts | 5 ++++- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/x-pack/plugins/security_solution/public/timelines/components/side_panel/index.tsx b/x-pack/plugins/security_solution/public/timelines/components/side_panel/index.tsx index deb82934dc82346..f5d971f9eeeb6b6 100644 --- a/x-pack/plugins/security_solution/public/timelines/components/side_panel/index.tsx +++ b/x-pack/plugins/security_solution/public/timelines/components/side_panel/index.tsx @@ -12,7 +12,6 @@ import { EuiFlyout } from '@elastic/eui'; import type { EntityType } from '@kbn/timelines-plugin/common'; import { dataTableActions, dataTableSelectors } from '@kbn/securitysolution-data-table'; -import styled from 'styled-components'; import { getScopedActions, isInTableScope, isTimelineScope } from '../../../helpers'; import { timelineSelectors } from '../../store'; import { timelineDefaults } from '../../store/defaults'; @@ -36,11 +35,6 @@ interface DetailsPanelProps { isReadOnly?: boolean; } -// hack to to get around the fact that this flyout causes issue with timeline modal z-index -const StyleEuiFlyout = styled(EuiFlyout)` - z-index: 1002; -`; - /** * This panel is used in both the main timeline as well as the flyouts on the host, detection, cases, and network pages. * To prevent duplication the `isFlyoutView` prop is passed to determine the layout that should be used @@ -172,7 +166,7 @@ export const DetailsPanel = React.memo( } return isFlyoutView ? ( - {visiblePanel} - + ) : ( visiblePanel ); diff --git a/x-pack/test/security_solution_cypress/cypress/e2e/investigations/timelines/unified_components/query_tab.cy.ts b/x-pack/test/security_solution_cypress/cypress/e2e/investigations/timelines/unified_components/query_tab.cy.ts index 625beff4fe21a67..eabda4a0a9086c4 100644 --- a/x-pack/test/security_solution_cypress/cypress/e2e/investigations/timelines/unified_components/query_tab.cy.ts +++ b/x-pack/test/security_solution_cypress/cypress/e2e/investigations/timelines/unified_components/query_tab.cy.ts @@ -34,6 +34,7 @@ describe( kbnServerArgs: [ `--xpack.securitySolution.enableExperimental=${JSON.stringify([ 'unifiedComponentsInTimelineEnabled', + , ])}`, ], }, @@ -47,6 +48,7 @@ describe( createNewTimeline(); executeTimelineSearch('*'); }); + it('should be able to add/remove columns correctly', () => { cy.get(GET_UNIFIED_DATA_GRID_CELL_HEADER('agent.type')).should('not.exist'); addFieldToTable('agent.type'); @@ -55,7 +57,8 @@ describe( cy.get(GET_DISCOVER_DATA_GRID_CELL_HEADER('agent.type')).should('not.exist'); }); - context('flyout', () => { + // these tests are skipped until we implement the expandable flyout in the unified table for timeline + context.skip('flyout', () => { it('should be able to open/close details details/host/user flyout', () => { cy.log('Event Details Flyout'); openEventDetailsFlyout(0);