mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
[Security Solution] Enable visualization in flyout advanced setting (#211319)
## Summary Enable advanced setting by default ✅ ESS  ✅ Serverless 
This commit is contained in:
parent
e3f166b70c
commit
afa67a9911
9 changed files with 44 additions and 25 deletions
|
@ -39603,7 +39603,6 @@
|
|||
"xpack.securitySolution.uiSettings.enableCcsWarningDescription": "<p>Active les avertissements de vérification des privilèges dans les règles relatives aux index CCS</p>",
|
||||
"xpack.securitySolution.uiSettings.enableNewsFeedDescription": "<p>Active le fil d'actualités</p>",
|
||||
"xpack.securitySolution.uiSettings.enableNewsFeedLabel": "Fil d'actualités",
|
||||
"xpack.securitySolution.uiSettings.enableVisualizationsInFlyoutDescription": "<em>[version d'évaluation technique]</em> Activez les visualisations (analyseur et visualiseur de session) dans le menu volant.",
|
||||
"xpack.securitySolution.uiSettings.enableVisualizationsInFlyoutLabel": "Activer les visualisations dans le menu volant",
|
||||
"xpack.securitySolution.uiSettings.excludeColdAndFrozenTiersInAnalyzer": "Exclure les niveaux froids de l'analyseur",
|
||||
"xpack.securitySolution.uiSettings.excludeColdAndFrozenTiersInAnalyzerDescription": "<p>Lorsque cette option est activée, les niveaux \"cold\" et \"frozen\" sont ignorés dans les requêtes de l'analyseur</p>",
|
||||
|
|
|
@ -39464,7 +39464,6 @@
|
|||
"xpack.securitySolution.uiSettings.enableCcsWarningDescription": "<p>CCSインデックスのルールで権限チェック警告を有効にします</p>",
|
||||
"xpack.securitySolution.uiSettings.enableNewsFeedDescription": "<p>ニュースフィードを有効にします</p>",
|
||||
"xpack.securitySolution.uiSettings.enableNewsFeedLabel": "ニュースフィード",
|
||||
"xpack.securitySolution.uiSettings.enableVisualizationsInFlyoutDescription": "<em>[テクニカルプレビュー]</em>フライアウトで視覚化(アナライザーとセッションビューアー)を有効にします。",
|
||||
"xpack.securitySolution.uiSettings.enableVisualizationsInFlyoutLabel": "フライアウトでビジュアライゼーションを有効化",
|
||||
"xpack.securitySolution.uiSettings.excludeColdAndFrozenTiersInAnalyzer": "アナライザーでコールドティアとフローズンティアを除外",
|
||||
"xpack.securitySolution.uiSettings.excludeColdAndFrozenTiersInAnalyzerDescription": "<p>有効にすると、アナライザークエリーでコールドティアとフローズンティアがスキップされます</p>",
|
||||
|
|
|
@ -38889,7 +38889,6 @@
|
|||
"xpack.securitySolution.uiSettings.enableCcsWarningDescription": "<p>在规则中为 CCS 索引启用权限检查警告</p>",
|
||||
"xpack.securitySolution.uiSettings.enableNewsFeedDescription": "<p>启用新闻源</p>",
|
||||
"xpack.securitySolution.uiSettings.enableNewsFeedLabel": "新闻源",
|
||||
"xpack.securitySolution.uiSettings.enableVisualizationsInFlyoutDescription": "<em>[技术预览]</em> 在浮出控件中启用可视化(分析器和会话查看器)。",
|
||||
"xpack.securitySolution.uiSettings.enableVisualizationsInFlyoutLabel": "在浮出控件中启用可视化",
|
||||
"xpack.securitySolution.uiSettings.excludeColdAndFrozenTiersInAnalyzer": "在分析器中排除冷层和冻结层",
|
||||
"xpack.securitySolution.uiSettings.excludeColdAndFrozenTiersInAnalyzerDescription": "<p>启用后,将在分析器查询中跳过冷层和冻结层</p>",
|
||||
|
|
|
@ -216,13 +216,12 @@ export const initUiSettings = (
|
|||
},
|
||||
[ENABLE_VISUALIZATIONS_IN_FLYOUT_SETTING]: {
|
||||
name: enableVisualizationsInFlyoutLabel,
|
||||
value: false,
|
||||
value: true,
|
||||
description: i18n.translate(
|
||||
'xpack.securitySolution.uiSettings.enableVisualizationsInFlyoutDescription',
|
||||
{
|
||||
defaultMessage:
|
||||
'<em>[technical preview]</em> Enable visualizations (analyzer and session viewer) in flyout.',
|
||||
values: { em: (chunks) => `<em>${chunks}</em>` },
|
||||
'Enable visualizations (analyzer and session viewer) in document details flyout.',
|
||||
}
|
||||
),
|
||||
type: 'boolean',
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { OVERLAY_CONTAINER } from '../../../screens/alerts';
|
||||
import {
|
||||
openAnalyzerForFirstAlertInTimeline,
|
||||
openSessionViewerFromAlertTable,
|
||||
|
@ -14,6 +13,12 @@ import { waitForAlertsToPopulate } from '../../../tasks/create_new_rule';
|
|||
import { login } from '../../../tasks/login';
|
||||
import { visitWithTimeRange } from '../../../tasks/navigation';
|
||||
import { ALERTS_URL } from '../../../urls/navigation';
|
||||
import { DOCUMENT_DETAILS_FLYOUT_VISUALIZE_TAB } from '../../../screens/expandable_flyout/alert_details_left_panel';
|
||||
import { DOCUMENT_DETAILS_FLYOUT_VISUALIZE_TAB_SESSION_VIEW_BUTTON } from '../../../screens/expandable_flyout/alert_details_left_panel_session_view_tab';
|
||||
import {
|
||||
DOCUMENT_DETAILS_FLYOUT_VISUALIZE_TAB_GRAPH_ANALYZER_BUTTON,
|
||||
DOCUMENT_DETAILS_FLYOUT_VISUALIZE_TAB_GRAPH_ANALYZER_CONTENT,
|
||||
} from '../../../screens/expandable_flyout/alert_details_left_panel_analyzer_graph_tab';
|
||||
|
||||
describe('Alerts Table Action column', { tags: ['@ess', '@serverless'] }, () => {
|
||||
before(() => {
|
||||
|
@ -36,11 +41,22 @@ describe('Alerts Table Action column', { tags: ['@ess', '@serverless'] }, () =>
|
|||
|
||||
it('should have session viewer button visible & open session viewer on click', () => {
|
||||
openSessionViewerFromAlertTable();
|
||||
cy.get(OVERLAY_CONTAINER).should('be.visible');
|
||||
cy.get(DOCUMENT_DETAILS_FLYOUT_VISUALIZE_TAB)
|
||||
.should('have.text', 'Visualize')
|
||||
.and('have.class', 'euiTab-isSelected');
|
||||
cy.get(DOCUMENT_DETAILS_FLYOUT_VISUALIZE_TAB_SESSION_VIEW_BUTTON)
|
||||
.should('have.text', 'Session View')
|
||||
.and('have.class', 'euiButtonGroupButton-isSelected');
|
||||
});
|
||||
|
||||
it('should have analyzer button visible & open analyzer on click', () => {
|
||||
openAnalyzerForFirstAlertInTimeline();
|
||||
cy.get(OVERLAY_CONTAINER).should('be.visible');
|
||||
cy.get(DOCUMENT_DETAILS_FLYOUT_VISUALIZE_TAB)
|
||||
.should('have.text', 'Visualize')
|
||||
.and('have.class', 'euiTab-isSelected');
|
||||
cy.get(DOCUMENT_DETAILS_FLYOUT_VISUALIZE_TAB_GRAPH_ANALYZER_BUTTON)
|
||||
.should('have.text', 'Analyzer Graph')
|
||||
.and('have.class', 'euiButtonGroupButton-isSelected');
|
||||
cy.get(DOCUMENT_DETAILS_FLYOUT_VISUALIZE_TAB_GRAPH_ANALYZER_CONTENT).should('exist');
|
||||
});
|
||||
});
|
||||
|
|
|
@ -22,8 +22,7 @@ import { getNewRule } from '../../../../objects/rule';
|
|||
import { ALERTS_URL } from '../../../../urls/navigation';
|
||||
import { waitForAlertsToPopulate } from '../../../../tasks/create_new_rule';
|
||||
|
||||
// TODO enable once the visualize tabs are back
|
||||
describe.skip(
|
||||
describe(
|
||||
'Alert details expandable flyout left panel analyzer graph',
|
||||
{ tags: ['@ess', '@skipInServerless'] },
|
||||
() => {
|
||||
|
|
|
@ -17,8 +17,7 @@ import { getNewRule } from '../../../../objects/rule';
|
|||
import { ALERTS_URL } from '../../../../urls/navigation';
|
||||
import { waitForAlertsToPopulate } from '../../../../tasks/create_new_rule';
|
||||
|
||||
// TODO enable once the visualize tabs are back
|
||||
describe.skip(
|
||||
describe(
|
||||
'Alert details expandable flyout left panel session view',
|
||||
{ tags: ['@ess', '@serverless'] },
|
||||
() => {
|
||||
|
|
|
@ -6,12 +6,7 @@
|
|||
*/
|
||||
|
||||
import { getNewRule } from '../../../objects/rule';
|
||||
import {
|
||||
ANALYZER_GRAPH_TAB_BUTTON,
|
||||
PROVIDER_BADGE,
|
||||
QUERY_TAB_BUTTON,
|
||||
TIMELINE_TITLE,
|
||||
} from '../../../screens/timeline';
|
||||
import { PROVIDER_BADGE, QUERY_TAB_BUTTON, TIMELINE_TITLE } from '../../../screens/timeline';
|
||||
import { closeTimeline } from '../../../tasks/timeline';
|
||||
import { investigateFirstAlertInTimeline } from '../../../tasks/alerts';
|
||||
import { createRule } from '../../../tasks/api_calls/rules';
|
||||
|
@ -22,7 +17,7 @@ import { ALERTS_URL } from '../../../urls/navigation';
|
|||
import { deleteAlertsAndRules } from '../../../tasks/api_calls/common';
|
||||
import { expandAlertAtIndexExpandableFlyout } from '../../../tasks/expandable_flyout/common';
|
||||
import {
|
||||
clickAnalyzerPreviewTitleToOpenTimeline,
|
||||
clickAnalyzerPreviewTitle,
|
||||
toggleOverviewTabAboutSection,
|
||||
toggleOverviewTabInvestigationSection,
|
||||
toggleOverviewTabVisualizationsSection,
|
||||
|
@ -33,6 +28,11 @@ import {
|
|||
selectTakeActionItem,
|
||||
} from '../../../tasks/expandable_flyout/alert_details_right_panel';
|
||||
import { DOCUMENT_DETAILS_FLYOUT_FOOTER_INVESTIGATE_IN_TIMELINE } from '../../../screens/expandable_flyout/alert_details_right_panel';
|
||||
import { DOCUMENT_DETAILS_FLYOUT_VISUALIZE_TAB } from '../../../screens/expandable_flyout/alert_details_left_panel';
|
||||
import {
|
||||
DOCUMENT_DETAILS_FLYOUT_VISUALIZE_TAB_GRAPH_ANALYZER_BUTTON,
|
||||
DOCUMENT_DETAILS_FLYOUT_VISUALIZE_TAB_GRAPH_ANALYZER_CONTENT,
|
||||
} from '../../../screens/expandable_flyout/alert_details_left_panel_analyzer_graph_tab';
|
||||
import {
|
||||
openTimelineFromPrevalenceTableCell,
|
||||
openPrevalenceTab,
|
||||
|
@ -43,6 +43,7 @@ import {
|
|||
openTimelineFromRelatedBySession,
|
||||
openTimelineFromRelatedSourceEvent,
|
||||
} from '../../../tasks/expandable_flyout/alert_details_left_panel_correlations_tab';
|
||||
import { openInsightsTab } from '../../../tasks/expandable_flyout/alert_details_left_panel';
|
||||
|
||||
describe(
|
||||
'Investigate in timeline',
|
||||
|
@ -83,18 +84,25 @@ describe(
|
|||
cy.get(QUERY_TAB_BUTTON).should('have.class', 'euiTab-isSelected');
|
||||
});
|
||||
|
||||
it('should open a new timeline from analyzer graph preview', () => {
|
||||
it('should navigate to analyzer graph tab', () => {
|
||||
toggleOverviewTabAboutSection();
|
||||
toggleOverviewTabInvestigationSection();
|
||||
toggleOverviewTabVisualizationsSection();
|
||||
clickAnalyzerPreviewTitleToOpenTimeline();
|
||||
clickAnalyzerPreviewTitle();
|
||||
|
||||
cy.get(TIMELINE_TITLE).should('have.text', 'Untitled timeline');
|
||||
cy.get(ANALYZER_GRAPH_TAB_BUTTON).should('have.class', 'euiTab-isSelected');
|
||||
cy.get(DOCUMENT_DETAILS_FLYOUT_VISUALIZE_TAB)
|
||||
.should('have.text', 'Visualize')
|
||||
.and('have.class', 'euiTab-isSelected');
|
||||
cy.get(DOCUMENT_DETAILS_FLYOUT_VISUALIZE_TAB_GRAPH_ANALYZER_BUTTON)
|
||||
.should('have.text', 'Analyzer Graph')
|
||||
.and('have.class', 'euiButtonGroupButton-isSelected');
|
||||
|
||||
cy.get(DOCUMENT_DETAILS_FLYOUT_VISUALIZE_TAB_GRAPH_ANALYZER_CONTENT).should('exist');
|
||||
});
|
||||
|
||||
it('should open a new timeline from the prevalence detail table', () => {
|
||||
expandDocumentDetailsExpandableFlyoutLeftSection();
|
||||
openInsightsTab();
|
||||
openPrevalenceTab();
|
||||
openTimelineFromPrevalenceTableCell();
|
||||
|
||||
|
@ -104,6 +112,7 @@ describe(
|
|||
|
||||
it('should open a new timeline from the correlations tab', () => {
|
||||
expandDocumentDetailsExpandableFlyoutLeftSection();
|
||||
openInsightsTab();
|
||||
openCorrelationsTab();
|
||||
openTimelineFromRelatedSourceEvent();
|
||||
|
||||
|
|
|
@ -130,6 +130,6 @@ export const navigateToResponseDetails = () => {
|
|||
/**
|
||||
* Click the Response button to open the response detail tab in the left section
|
||||
*/
|
||||
export const clickAnalyzerPreviewTitleToOpenTimeline = () => {
|
||||
export const clickAnalyzerPreviewTitle = () => {
|
||||
cy.get(DOCUMENT_DETAILS_FLYOUT_OVERVIEW_TAB_ANALYZER_PREVIEW_TITLE_LINK).click();
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue