[SIEM] [Case] Bulk status update, add comment avatar, id => title in breadcrumbs#60410
[SIEM] [Case] Bulk status update, add comment avatar, id => title in breadcrumbs#60410stephmilovic merged 11 commits intoelastic:masterfrom
Conversation
|
Pinging @elastic/siem (Team:SIEM) |
| icon="magnet" | ||
| disabled={true} // TO DO | ||
| onClick={async () => { | ||
| onClick={() => { |
There was a problem hiding this comment.
Better to use useCallback to avoid unnecessary re-renders
There was a problem hiding this comment.
I'm not in a react component here. FWIW the actions passed here are in their own useCallbacks
There was a problem hiding this comment.
I am not sure given that EuiContextMenuItem is a component. @patrykkopycinski ?
There was a problem hiding this comment.
I think @stephmilovic is right, but to be sure you can always use why-did-you-render or Profiler :)
| key={i18n.BULK_ACTION_DELETE_SELECTED} | ||
| icon="trash" | ||
| onClick={async () => { | ||
| onClick={() => { |
There was a problem hiding this comment.
Better to use useCallback to avoid unnecessary re-renders
There was a problem hiding this comment.
I'm not in a react component here. FWIW the actions passed here are in their own useCallbacks
x-pack/legacy/plugins/siem/public/pages/case/components/case_view/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
| updateCaseStatus, | ||
| }: GetBulkItems) => { | ||
| return [ | ||
| caseStatus === 'open' ? ( |
There was a problem hiding this comment.
I think it would be nice if we have a type of all the caseStatus defined.
There was a problem hiding this comment.
yes i agree. i can do this in a follow up PR, i have another one up that deals a lot with status right now
x-pack/legacy/plugins/siem/public/pages/case/components/user_action_tree/index.tsx
Outdated
Show resolved
Hide resolved
| inspector: InspectorStart; | ||
| newsfeed?: NewsfeedStart; | ||
| uiActions: UiActionsStart; | ||
| security: SecurityPluginSetup; |
There was a problem hiding this comment.
This should be the Start contract, SecurityPluginStart
There was a problem hiding this comment.
SecurityPluginStart does not have the authc we need. It is only in setup. thats why we needed to add it explicitly in the object https://github.com/elastic/kibana/blob/master/x-pack/plugins/security/public/plugin.tsx#L137
There was a problem hiding this comment.
Ohhh, I get it now. We're doing some similar stuff on the server, but the basic idea is: store dependencies in setup() to use later in start(). This should be fine for now, but I'll follow up with platform and change it in the NP migration if necessary. 👍
💚 Build SucceededHistory
To update your PR or re-run it, just comment with: |
* master: (52 commits) [SIEM] Fix types in rules tests (elastic#60736) [Alerting] prevent flickering when fields are updated in an alert (elastic#60666) License checks for actions plugin (elastic#59070) Implemented ability to clear and properly validate alert interval (elastic#60571) WebElementWrapper: add findByTestSubject/findAllByTestSubject to search with data-test-subj (elastic#60568) [Maps] Update layer dependencies to NP (elastic#59585) [Discover] Remove StateManagementConfigProvider (elastic#60221) [ML] Listing all categorization wizard checks (elastic#60502) [Upgrade Assistant] First iteration of batch reindex docs (elastic#59887) [SIEM] Export timeline (elastic#58368) [SIEM] Add support for actions and throttle in Rules (elastic#59641) Fix ace a11y listener (elastic#60639) Add addInfo toast to core notifications service (elastic#60574) fix test description (elastic#60638) [SIEM] Cypress screenshots upload to google cloud (elastic#60556) [canvas/shareable_runtime] sync sass loaders with kbn/optimizer (elastic#60653) [SIEM] Fixes Modification of ML Rules (elastic#60662) [SIEM] [Case] Bulk status update, add comment avatar, id => title in breadcrumbs (elastic#60410) [Alerting] add functional tests for index threshold alertType (elastic#60597) [Ingest]EMT-248: add post action request handler and resources (elastic#60581) ...
…o alerting/tls-warning * 'alerting/tls-warning' of github.com:gmmorris/kibana: (32 commits) [ML] Listing all categorization wizard checks (elastic#60502) [Upgrade Assistant] First iteration of batch reindex docs (elastic#59887) [SIEM] Export timeline (elastic#58368) [SIEM] Add support for actions and throttle in Rules (elastic#59641) Fix ace a11y listener (elastic#60639) Add addInfo toast to core notifications service (elastic#60574) fix test description (elastic#60638) [SIEM] Cypress screenshots upload to google cloud (elastic#60556) [canvas/shareable_runtime] sync sass loaders with kbn/optimizer (elastic#60653) [SIEM] Fixes Modification of ML Rules (elastic#60662) [SIEM] [Case] Bulk status update, add comment avatar, id => title in breadcrumbs (elastic#60410) [Alerting] add functional tests for index threshold alertType (elastic#60597) [Ingest]EMT-248: add post action request handler and resources (elastic#60581) Return incident's url (elastic#60617) [Endpoint] TEST: GET alert details - boundary test for first alert retrieval (elastic#60320) [ML] Transforms: Fix pivot preview table mapping. (elastic#60609) [Endpoint] Log random seed for sample data CLI to console (elastic#60646) Use common event model for determining if event is v0 or v1 (elastic#60667) Disables PR Project Assigner workflow [Reporting] Allow reports to be deleted in Management > Kibana > Reporting (elastic#60077) ...

Summary
This PR resolves the following All Cases issues from #59041:
This PR resolves the following Case View issues from #58526:
make the user avatar the currentUser for update mode on description/comments and also on new comments

change the breadcrumbs to display Case Title instead of Case Id