-
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.
[SIEM] [Case] Enable case by default. Snake to camel on UI (#57936)
- Loading branch information
1 parent
9c8c47b
commit 98aa1d2
Showing
26 changed files
with
605 additions
and
101 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
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
77 changes: 77 additions & 0 deletions
77
x-pack/legacy/plugins/siem/public/pages/case/components/all_cases/__mock__/index.tsx
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,77 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License; | ||
* you may not use this file except in compliance with the Elastic License. | ||
*/ | ||
|
||
import { SortFieldCase } from '../../../../../containers/case/types'; | ||
import { UseGetCasesState } from '../../../../../containers/case/use_get_cases'; | ||
|
||
export const useGetCasesMockState: UseGetCasesState = { | ||
data: { | ||
cases: [ | ||
{ | ||
caseId: '3c4ddcc0-4e99-11ea-9290-35d05cb55c15', | ||
createdAt: '2020-02-13T19:44:23.627Z', | ||
createdBy: { username: 'elastic' }, | ||
description: 'Security banana Issue', | ||
state: 'open', | ||
tags: ['defacement'], | ||
title: 'Another horrible breach', | ||
updatedAt: '2020-02-13T19:44:23.627Z', | ||
}, | ||
{ | ||
caseId: '362a5c10-4e99-11ea-9290-35d05cb55c15', | ||
createdAt: '2020-02-13T19:44:13.328Z', | ||
createdBy: { username: 'elastic' }, | ||
description: 'Security banana Issue', | ||
state: 'open', | ||
tags: ['phishing'], | ||
title: 'Bad email', | ||
updatedAt: '2020-02-13T19:44:13.328Z', | ||
}, | ||
{ | ||
caseId: '34f8b9e0-4e99-11ea-9290-35d05cb55c15', | ||
createdAt: '2020-02-13T19:44:11.328Z', | ||
createdBy: { username: 'elastic' }, | ||
description: 'Security banana Issue', | ||
state: 'open', | ||
tags: ['phishing'], | ||
title: 'Bad email', | ||
updatedAt: '2020-02-13T19:44:11.328Z', | ||
}, | ||
{ | ||
caseId: '31890e90-4e99-11ea-9290-35d05cb55c15', | ||
createdAt: '2020-02-13T19:44:05.563Z', | ||
createdBy: { username: 'elastic' }, | ||
description: 'Security banana Issue', | ||
state: 'closed', | ||
tags: ['phishing'], | ||
title: 'Uh oh', | ||
updatedAt: '2020-02-18T21:32:24.056Z', | ||
}, | ||
{ | ||
caseId: '2f5b3210-4e99-11ea-9290-35d05cb55c15', | ||
createdAt: '2020-02-13T19:44:01.901Z', | ||
createdBy: { username: 'elastic' }, | ||
description: 'Security banana Issue', | ||
state: 'open', | ||
tags: ['phishing'], | ||
title: 'Uh oh', | ||
updatedAt: '2020-02-13T19:44:01.901Z', | ||
}, | ||
], | ||
page: 1, | ||
perPage: 5, | ||
total: 10, | ||
}, | ||
isLoading: false, | ||
isError: false, | ||
queryParams: { | ||
page: 1, | ||
perPage: 5, | ||
sortField: SortFieldCase.createdAt, | ||
sortOrder: 'desc', | ||
}, | ||
filterOptions: { search: '', tags: [] }, | ||
}; |
Oops, something went wrong.