-
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
[Security Solution][Case] Fix individual case deletion on case view #93218
Conversation
Pinging @elastic/security-threat-hunting (Team:Threat Hunting) |
Pinging @elastic/security-solution (Team: SecuritySolution) |
cf9d59f
to
d339b7e
Compare
const convertToDeleteCases: DeleteCase[] = caseIds.map((id) => ({ id })); | ||
const convertToDeleteCases: DeleteCase[] = caseIds.map((id) => ({ | ||
id, | ||
type: CaseType.individual, |
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.
Not sure if we can set type to individual here. We are still able to bulk delete case collection, right?
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.
Oh yes, you are right. I forgot about collections.
@@ -397,27 +397,29 @@ export const CaseComponent = React.memo<CaseProps>( | |||
userCanCrud={userCanCrud} | |||
/> | |||
{(caseData.type !== CaseType.collection || hasDataToPush) && ( |
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.
Just want to confirm that sub cases would be rendered the same UI as case individual right?
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, that's right!
d339b7e
to
e3893ca
Compare
💚 Build SucceededMetrics [docs]Async chunks
Page load bundle
History
To update your PR or re-run it, just comment with: cc @cnasikas |
Summary
Divider before:
Divider after:
Meta: #91843
For maintainers