-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
[SIEM] [Case] Enable case by default. Snake to camel on UI #57936
Conversation
Pinging @elastic/siem (Team:SIEM) |
@elasticmachine merge upstream |
x-pack/legacy/plugins/siem/public/pages/case/components/user_list/index.tsx
Show resolved
Hide resolved
@@ -5,9 +5,16 @@ | |||
*/ |
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 out of curious, would case have it's own entry with the same level as SIEM as well in the future?
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.
thats the plan :)
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.
Thank you @stephmilovic for the refactoring, I just created a case successfully. Another suggestion from my side is that given that we haven't support the markdown, would we want to hide the hint about it under the description field :p
@angorayc thanks for the review. I'm currently working on the comment field, so fixing up the bugs with the poor markdown I wrote for description. we will be supporting markdown for case. check out our design prototype: https://www.figma.com/proto/r1fCnIlDvCeaS4FNgTYFxc/In-Progress-Cases-MVP?node-id=41%3A345&viewport=-3680%2C1501%2C0.5&scaling=min-zoom |
x-pack/legacy/plugins/siem/public/pages/case/components/all_cases/index.tsx
Outdated
Show resolved
Hide resolved
x-pack/legacy/plugins/siem/public/pages/case/components/all_cases/index.tsx
Outdated
Show resolved
Hide resolved
@@ -32,12 +32,14 @@ export interface CaseAttributes extends NewCaseType, SavedObjectAttributes { | |||
|
|||
export type FlattenedCaseSavedObject = CaseAttributes & { | |||
case_id: string; | |||
version?: string; |
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.
we should always have a version, is that correct?
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.
its ?
in the SavedObject
type: https://github.com/elastic/kibana/blob/master/src/core/server/saved_objects/types.ts#L73
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.
I think that we can default it to zero in our end so we do not have to deal with the undefined type.
x-pack/legacy/plugins/siem/public/pages/case/components/all_cases/__mock__/index.tsx
Outdated
Show resolved
Hide resolved
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.
🚀 LGTM 🎸
Rock n roll!!!
💚 Build SucceededHistory
To update your PR or re-run it, just comment with: |
…_improve-advanced-settings-save * commit '98aa1d2d4f974f72a9a5397b1b91f11509f6fb7a': [SIEM] [Case] Enable case by default. Snake to camel on UI (elastic#57936) [File upload] Update remaining File Upload dependencies for NP migration (elastic#58128) Use EuiTokens for ES field types (elastic#57911) Added UI support for the default action group for Alert Type Model (elastic#57603) force savedObject API consumers to define SO type explicitly (elastic#58022) Update dependency @elastic/charts to ^17.1.1 (elastic#57634)
…-out-of-legacy * 'master' of github.com:elastic/kibana: [SIEM] [Case] Enable case by default. Snake to camel on UI (elastic#57936) [File upload] Update remaining File Upload dependencies for NP migration (elastic#58128) Use EuiTokens for ES field types (elastic#57911) Added UI support for the default action group for Alert Type Model (elastic#57603) force savedObject API consumers to define SO type explicitly (elastic#58022) Update dependency @elastic/charts to ^17.1.1 (elastic#57634) [Endpoint] Add a flyout to alert list. (elastic#57926) Make sure index pattern has fields before parsing (elastic#58242) Sanitize workpad before sending to API (elastic#57704) [ML] Transform: Support multi-line JSON notation in advanced editor (elastic#58015) [Endpoint] Refactor Management List Tests (elastic#58148) [kbn/optimizer] include bootstrap cache key in optimizer cache key (elastic#58176) Do not refresh color scale on each lookup (elastic#57792) Updating to @elastic/[email protected] (elastic#54662) Trigger context (elastic#57870) [ML] Transforms: Adds clone feature to transforms list. (elastic#57837) [ML] New Platform server shim: update fields service routes (elastic#58060) [Endpoint] EMT-184: change endpoints to metadata up and down the code base. (elastic#58038)
Summary
Resolves #57861
This PR enables Case in the SIEM menu and removes the feature flag for the Case API plugin, enabling Case by default. The PR also changes the UI case references from
snake_case
tocamelCase
. I also added a couple of tests for AllCases and CaseView, starting to think about those.Update 2/19 - added code to the
update_case
route to ensure no version conflicts or unnecessary updates