-
Notifications
You must be signed in to change notification settings - Fork 8.5k
[Security Solution][Case] Add in-progress status to case
#84321
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
Merged
Merged
Changes from 16 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
627b1b5
Add in progress literal to status
cnasikas fd825b9
Create status component
cnasikas 047aa37
Rename CaseStatus component
cnasikas fd00b87
Remove open/close button
cnasikas aad65cf
Create context status menu
cnasikas b36d916
Create status action button
cnasikas fe2d636
Show status on user actions
cnasikas 94e623a
Add in progress stat
cnasikas 8566859
Filter in progress cases on all cases page
cnasikas e59b983
Use CaseStatuses enum
cnasikas ac7e1cc
Fix types
cnasikas 9da6ffb
Fix unit tests
cnasikas d8a642a
Fix i18n
cnasikas bc00f47
Fix integration tests
cnasikas a4d910e
Fix cypress tests
cnasikas 9c89f76
Use CaseStatuses
cnasikas 9db8736
Improve status button
cnasikas 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -4,7 +4,7 @@ | |
| * you may not use this file except in compliance with the Elastic License. | ||
| */ | ||
|
|
||
| import { ConnectorTypes, CasesPatchRequest } from '../../../common/api'; | ||
| import { ConnectorTypes, CasesPatchRequest, CaseStatuses } from '../../../common/api'; | ||
| import { | ||
| createMockSavedObjectsRepository, | ||
| mockCaseNoConnectorId, | ||
|
|
@@ -27,7 +27,7 @@ describe('update', () => { | |
| cases: [ | ||
| { | ||
| id: 'mock-id-1', | ||
| status: 'closed' as const, | ||
| status: CaseStatuses.closed, | ||
| version: 'WzAsMV0=', | ||
| }, | ||
| ], | ||
|
|
@@ -56,7 +56,7 @@ describe('update', () => { | |
| description: 'This is a brand new case of a bad meanie defacing data', | ||
| id: 'mock-id-1', | ||
| external_service: null, | ||
| status: 'closed', | ||
| status: CaseStatuses.closed, | ||
| tags: ['defacement'], | ||
| title: 'Super Bad Security Issue', | ||
| totalComment: 0, | ||
|
|
@@ -79,8 +79,8 @@ describe('update', () => { | |
| username: 'awesome', | ||
| }, | ||
| action_field: ['status'], | ||
| new_value: 'closed', | ||
| old_value: 'open', | ||
| new_value: CaseStatuses.closed, | ||
| old_value: CaseStatuses.open, | ||
| }, | ||
| references: [ | ||
| { | ||
|
|
@@ -98,15 +98,18 @@ describe('update', () => { | |
| cases: [ | ||
| { | ||
| id: 'mock-id-1', | ||
| status: 'open' as const, | ||
| status: CaseStatuses.open, | ||
| version: 'WzAsMV0=', | ||
| }, | ||
| ], | ||
| }; | ||
|
|
||
| const savedObjectsClient = createMockSavedObjectsRepository({ | ||
| caseSavedObject: [ | ||
| { ...mockCases[0], attributes: { ...mockCases[0].attributes, status: 'closed' } }, | ||
| { | ||
| ...mockCases[0], | ||
| attributes: { ...mockCases[0].attributes, status: CaseStatuses.closed }, | ||
| }, | ||
| ...mockCases.slice(1), | ||
| ], | ||
| }); | ||
|
|
@@ -130,7 +133,7 @@ describe('update', () => { | |
| description: 'This is a brand new case of a bad meanie defacing data', | ||
| id: 'mock-id-1', | ||
| external_service: null, | ||
| status: 'open', | ||
| status: CaseStatuses.open, | ||
| tags: ['defacement'], | ||
| title: 'Super Bad Security Issue', | ||
| totalComment: 0, | ||
|
|
@@ -146,7 +149,7 @@ describe('update', () => { | |
| cases: [ | ||
| { | ||
| id: 'mock-no-connector_id', | ||
| status: 'closed' as const, | ||
| status: CaseStatuses.closed, | ||
| version: 'WzAsMV0=', | ||
| }, | ||
| ], | ||
|
|
@@ -177,7 +180,7 @@ describe('update', () => { | |
| description: 'This is a brand new case of a bad meanie defacing data', | ||
| external_service: null, | ||
| title: 'Super Bad Security Issue', | ||
| status: 'closed', | ||
| status: CaseStatuses.closed, | ||
| tags: ['defacement'], | ||
| updated_at: '2019-11-25T21:54:48.952Z', | ||
| updated_by: { email: '[email protected]', full_name: 'Awesome D00d', username: 'awesome' }, | ||
|
|
@@ -231,7 +234,7 @@ describe('update', () => { | |
| description: 'Oh no, a bad meanie going LOLBins all over the place!', | ||
| external_service: null, | ||
| title: 'Another bad one', | ||
| status: 'open', | ||
| status: CaseStatuses.open, | ||
| tags: ['LOLBins'], | ||
| updated_at: '2019-11-25T21:54:48.952Z', | ||
| updated_by: { | ||
|
|
@@ -314,7 +317,7 @@ describe('update', () => { | |
| cases: [ | ||
| { | ||
| id: 'mock-id-1', | ||
| status: 'open' as const, | ||
| status: CaseStatuses.open, | ||
| version: 'WzAsMV0=', | ||
| }, | ||
| ], | ||
|
|
||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Uh oh!
There was an error while loading. Please reload this page.