Skip to content
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

[Security Solution] Alerts details #83963

Merged
merged 74 commits into from
Dec 12, 2020
Merged
Show file tree
Hide file tree
Changes from 58 commits
Commits
Show all changes
74 commits
Select commit Hold shift + click to select a range
a75a9b8
init alert details tab
angorayc Nov 20, 2020
54d1032
styles
angorayc Nov 23, 2020
e329b91
readMore button
angorayc Nov 24, 2020
c9fcf96
readmore btn
angorayc Nov 26, 2020
c65a78c
field mappings
angorayc Nov 26, 2020
88faf98
add unit tests
angorayc Nov 26, 2020
6ecc525
Merge branch 'master' of github.com:elastic/kibana into alerts-details
angorayc Nov 26, 2020
441aef9
unit test
angorayc Nov 26, 2020
bb67c96
fix unit test
angorayc Nov 26, 2020
edf3efb
Merge branch 'master' of github.com:elastic/kibana into alerts-details
angorayc Nov 30, 2020
5ad64e9
functional test
angorayc Nov 30, 2020
c323f64
isolate lineClamp component
angorayc Dec 1, 2020
b9144ab
review
angorayc Dec 1, 2020
d9a094c
unit test
angorayc Dec 1, 2020
19ceb82
fix rule name in events table
angorayc Dec 2, 2020
a64bf78
Merge branch 'master' into alerts-details
kibanamachine Dec 2, 2020
9474cc6
Merge remote-tracking branch 'upstream/master' into alerts-details
angorayc Dec 8, 2020
f5447a1
originalvalue
angorayc Dec 8, 2020
db91dd0
unit test
angorayc Dec 8, 2020
b4bfd3d
add close event details button
angorayc Dec 8, 2020
2582064
rollback cypress configs
angorayc Dec 8, 2020
c94cd98
cypress
angorayc Dec 8, 2020
952f9a2
close events details
angorayc Dec 8, 2020
f5b4772
remove Ip
angorayc Dec 8, 2020
bfc39a1
review
angorayc Dec 8, 2020
605f5d2
Merge branch 'master' into alerts-details
kibanamachine Dec 8, 2020
9bbcfba
review
angorayc Dec 8, 2020
66a3662
review
angorayc Dec 8, 2020
cd6180e
review
angorayc Dec 9, 2020
a24635a
review
angorayc Dec 9, 2020
2a74c40
review
angorayc Dec 9, 2020
190251d
review
angorayc Dec 9, 2020
cd57475
fix i18n check
angorayc Dec 9, 2020
76a4cfc
fix import
angorayc Dec 9, 2020
5c889b8
fix eslint
angorayc Dec 9, 2020
f19829a
Merge branch 'master' into alerts-details
kibanamachine Dec 9, 2020
eff198b
use connect
angorayc Dec 9, 2020
4c573dc
Merge branch 'alerts-details' of github.com:angorayc/kibana into aler…
angorayc Dec 9, 2020
63d1558
close flyout when expanded event doesn't exist in the list
angorayc Dec 9, 2020
a8773e3
Update x-pack/plugins/security_solution/public/timelines/components/t…
angorayc Dec 9, 2020
067e18f
fix types
angorayc Dec 10, 2020
a0cfb51
unit test
angorayc Dec 10, 2020
00f9300
fix rule status badge
angorayc Dec 10, 2020
ee041d3
Merge remote-tracking branch 'upstream/master' into alerts-details
angorayc Dec 10, 2020
3112dbb
isolate host name renderer
angorayc Dec 10, 2020
7a9a767
fixup
angorayc Dec 10, 2020
0d34364
cypress
angorayc Dec 10, 2020
8e5fb1a
cypress
angorayc Dec 10, 2020
f72c67e
defaultModel
angorayc Dec 10, 2020
3b574dc
review comments
angorayc Dec 10, 2020
1e25d9e
unit test
angorayc Dec 10, 2020
cbf4936
Merge branch 'master' of github.com:elastic/kibana into alerts-details
angorayc Dec 10, 2020
69850a3
replace findIndex with some
angorayc Dec 10, 2020
08d6d8c
review
angorayc Dec 10, 2020
5a36ca9
remove defaultModel from toggle event action
angorayc Dec 10, 2020
f4bbbe5
review
angorayc Dec 10, 2020
f8bd1a4
cleanup defaultModel
angorayc Dec 10, 2020
10371bc
unit test
angorayc Dec 10, 2020
99b3026
rollback handleClearSelection
angorayc Dec 10, 2020
389592f
Merge branch 'master' into alerts-details
kibanamachine Dec 11, 2020
e49a362
fixup
angorayc Dec 11, 2020
46f944f
Merge branch 'alerts-details' of github.com:angorayc/kibana into aler…
angorayc Dec 11, 2020
56a7e52
fix i18n
angorayc Dec 11, 2020
da31fe2
cleanup defaultmodel
patrykkopycinski Dec 11, 2020
0c2c0d1
Merge branch 'master' into alerts-details
kibanamachine Dec 11, 2020
26191ac
cleanup
patrykkopycinski Dec 11, 2020
64a9371
summary value
angorayc Dec 11, 2020
eed7b8b
fix showing timeline details
patrykkopycinski Dec 11, 2020
02ac297
layout
angorayc Dec 11, 2020
0a9e904
fix timeline memoization
patrykkopycinski Dec 11, 2020
77c5235
Merge branch 'master' into alerts-details
kibanamachine Dec 11, 2020
b5d1ff1
fix long query
patrykkopycinski Dec 12, 2020
b7d3843
styling
angorayc Dec 12, 2020
f167fae
Merge branch 'alerts-details' of github.com:angorayc/kibana into aler…
angorayc Dec 12, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { Inspect, Maybe } from '../../../common';
import { TimelineRequestOptionsPaginated } from '../..';

export interface TimelineEventsDetailsItem {
category?: string;
field: string;
values?: Maybe<string[]>;
// eslint-disable-next-line @typescript-eslint/no-explicit-any
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,9 @@
* you may not use this file except in compliance with the Elastic License.
*/

import { ALERT_ID } from '../screens/alerts';
import { PROVIDER_BADGE } from '../screens/timeline';

import {
expandFirstAlert,
investigateFirstAlertInTimeline,
waitForAlertsPanelToBeLoaded,
} from '../tasks/alerts';
import { investigateFirstAlertInTimeline, waitForAlertsPanelToBeLoaded } from '../tasks/alerts';
import { esArchiverLoad, esArchiverUnload } from '../tasks/es_archiver';
import { loginAndWaitForPage } from '../tasks/login';

Expand All @@ -29,13 +24,13 @@ describe('Alerts timeline', () => {

it('Investigate alert in default timeline', () => {
waitForAlertsPanelToBeLoaded();
expandFirstAlert();
cy.get(ALERT_ID)
investigateFirstAlertInTimeline();
cy.get(PROVIDER_BADGE)
.first()
.invoke('text')
.then((eventId) => {
investigateFirstAlertInTimeline();
cy.get(PROVIDER_BADGE).filter(':visible').should('have.text', `_id: "${eventId}"`);
cy.get(PROVIDER_BADGE).filter(':visible').should('have.text', eventId);
});
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,15 @@ export const CaseComponent = React.memo<CaseProps>(
[dispatch]
);

const handleCloseExpandedEvent = useCallback(() => {
dispatch(
timelineActions.toggleExpandedEvent({
timelineId: TimelineId.casePage,
event: {},
})
);
}, [dispatch]);

// useEffect used for component's initialization
useEffect(() => {
if (init.current) {
Expand Down Expand Up @@ -483,6 +492,7 @@ export const CaseComponent = React.memo<CaseProps>(
browserFields={browserFields}
docValueFields={docValueFields}
timelineId={TimelineId.casePage}
handleCloseExpandedEvent={handleCloseExpandedEvent}
/>
<SpyRoute state={spyState} pageName={SecurityPageName.case} />
</>
Expand Down
Loading