-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SecuritySolution] Enabling and Removing alertsPreviewChartEmbeddable…
…sEnabled feature flag (#173884) ## Summary This PR is a part of #171287, the final goal is to remove `chartEmbeddablesEnabled` feature flag 1. Enabling and removing **alertsPreviewChartEmbeddablesEnabled** feature flag (It's unblocked by #136409 item 9) 2. Replacing **rules preview** histogram with Lens Embeddable. https://github.com/elastic/kibana/assets/6295984/c29aa600-c86b-4d32-933b-4d8f6f1fd04f ![Screenshot 2024-01-02 at 21 47 39](https://github.com/elastic/kibana/assets/6295984/300b1357-12fe-4601-b4c2-0c97cc5d5bba) ![Screenshot 2024-01-09 at 02 18 37](https://github.com/elastic/kibana/assets/6295984/832bbb04-477e-4c71-8589-4cec19da5c6e) ### Checklist Delete any items that are not applicable to this PR. - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios --------- Co-authored-by: kibanamachine <[email protected]>
- Loading branch information
1 parent
e9b6bc8
commit fe57319
Showing
27 changed files
with
577 additions
and
1,088 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
62 changes: 62 additions & 0 deletions
62
...security_solution/public/common/components/visualization_actions/__mocks__/use_actions.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0; you may not use this file except in compliance with the Elastic License | ||
* 2.0. | ||
*/ | ||
export const VISUALIZATION_CONTEXT_MENU_TRIGGER = 'VISUALIZATION_CONTEXT_MENU_TRIGGER'; | ||
export const DEFAULT_ACTIONS = [ | ||
'inspect', | ||
'addToNewCase', | ||
'addToExistingCase', | ||
'saveToLibrary', | ||
'openInLens', | ||
]; | ||
export const MOCK_ACTIONS = [ | ||
{ | ||
id: 'inspect', | ||
getDisplayName: () => 'Inspect', | ||
getIconType: () => 'inspect', | ||
type: 'actionButton', | ||
order: 4, | ||
isCompatible: () => true, | ||
execute: jest.fn(), | ||
}, | ||
{ | ||
id: 'addToNewCase', | ||
getDisplayName: () => 'Add to new case', | ||
getIconType: () => 'casesApp', | ||
type: 'actionButton', | ||
order: 3, | ||
isCompatible: () => true, | ||
execute: jest.fn(), | ||
}, | ||
{ | ||
id: 'addToExistingCase', | ||
getDisplayName: () => 'Add to existing case', | ||
getIconType: () => 'casesApp', | ||
type: 'actionButton', | ||
order: 2, | ||
isCompatible: () => true, | ||
execute: jest.fn(), | ||
}, | ||
{ | ||
id: 'saveToLibrary', | ||
getDisplayName: () => 'Added to library', | ||
getIconType: () => 'save', | ||
type: 'actionButton', | ||
order: 1, | ||
isCompatible: () => true, | ||
execute: jest.fn(), | ||
}, | ||
{ | ||
id: 'openInLens', | ||
getDisplayName: () => 'Open in Lens', | ||
getIconType: () => 'visArea', | ||
type: 'actionButton', | ||
order: 0, | ||
isCompatible: () => true, | ||
execute: jest.fn(), | ||
}, | ||
]; | ||
export const useActions = jest.fn().mockReturnValue(MOCK_ACTIONS); |
Oops, something went wrong.