-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CTI] Threat Intel Card on Overview page needs to accommodate Fleet TI integrations #115940
Merged
Merged
Changes from 9 commits
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
30777b7
Add support integrations
nkhristinin 25e8cf4
Fix types
nkhristinin 5beebc7
fix unit tests
nkhristinin 703068c
Fix tests and types
nkhristinin 81f6275
fix eslint
nkhristinin 9a99da3
fix file case
nkhristinin 2a987b6
add cy tests
nkhristinin 084564b
Revert test
nkhristinin 602e19d
Add tests
nkhristinin 5e30a63
Add support of installed integrations
nkhristinin 5521224
Fix types
nkhristinin fe6aa52
Add isntalled ingtegration case for cypress tests
nkhristinin 55b4d40
Fix cypress tests
nkhristinin 52a2d42
Fix comments
nkhristinin 6006c59
Fix capital naming
nkhristinin 7043195
Fix again capital naming
nkhristinin bbdbd01
Add dynamic dashboard for a new integrations packages
nkhristinin 639ed73
intermidiate changes, to keep it remote
nkhristinin 9cdd203
Big refactoring
nkhristinin 45c0c5e
Tests and refactoring
nkhristinin 55d0100
Remove unused constanrs
nkhristinin f2cbd0f
Fix e2e tests
nkhristinin d4eda79
PR comments fix
nkhristinin 6c710ef
fix ts
nkhristinin 3b93684
Fix translations
nkhristinin 53bb048
Merge branch 'main' into cti-card-ecs
kibanamachine 8c8fbc5
Merge branch 'main' into cti-card-ecs
kibanamachine a62193e
Remove stubs
nkhristinin 1d2bb14
Rename isSomeIntegrationsDisabled -> allIntegrationsInstalled
nkhristinin f563313
Add buildQuery tests
nkhristinin b30e143
Fix type
nkhristinin 2522dc8
Add tests for Enable Source button
nkhristinin b618acf
Remove copied file
nkhristinin b61b368
Move api call to api.ts
nkhristinin a3a2e7f
Rename fetchFleetIntegrations
nkhristinin 3c16a96
Remove __mocks__
nkhristinin 17ec4ce
Merge branch 'main' into cti-card-ecs
kibanamachine File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
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
28 changes: 28 additions & 0 deletions
28
x-pack/plugins/security_solution/public/overview/containers/overview_cti_links/api.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,28 @@ | ||
/* | ||
* 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. | ||
*/ | ||
import { KibanaServices } from '../../../common/lib/kibana'; | ||
import { EPM_API_ROUTES } from '../../../../../fleet/common'; | ||
|
||
export interface IntegrationResponse { | ||
id: string; | ||
status: string; | ||
savedObject?: { | ||
attributes?: { | ||
installed_kibana: Array<{ | ||
type: string; | ||
id: string; | ||
}>; | ||
}; | ||
}; | ||
} | ||
|
||
export const fetchIntegrations = () => | ||
nkhristinin marked this conversation as resolved.
Show resolved
Hide resolved
|
||
KibanaServices.get().http.fetch<{ | ||
response: IntegrationResponse[]; | ||
}>(EPM_API_ROUTES.LIST_PATTERN, { | ||
method: 'GET', | ||
}); |
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this could create a flash in the UI where the disabled module view shows up until the enabled module view is loaded. to prevent the flash we could consider returning null, or a loading view.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, thank you right. I fixed it by providing isInitialyLoaded state.
But I do in on
x-pack/plugins/security_solution/public/overview/pages/overview.tsx
We are also wait there for fleet packages API