mirror of
https://github.com/elastic/kibana.git
synced 2025-06-27 18:51:07 -04:00
[SecuritySolution] Re-score entities after an asset criticality bulk upload (#187577)
## Summary * Create new API `/internal/risk_score/engine/schedule_now` * Fix storybook, it was broken due to some mock changes * Update status API to return task status * Add schedule risk engine panel to bulk asset criticality final step  ### How to test it? * Enable asset criticality in stack management / Advanced settings * Enable the risk engine * Open the asset criticality page inside the Manage section * Upload a valid file * Verify that the new panel is present and that you can schedule the risk engine run by pressing the button ### Checklist Delete any items that are not applicable to this PR. - [x] Any text added follows [EUI's writing guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses sentence case text and includes [i18n support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md) - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios - [x] Any UI touched in this PR is usable by keyboard only (learn more about [keyboard accessibility](https://webaim.org/techniques/keyboard/)) - [x] This renders correctly on smaller devices using a responsive layout. (You can test this [in your browser](https://www.browserstack.com/guide/responsive-testing-on-local-server)) - [x] This was checked for [cross-browser compatibility](https://www.elastic.co/support/matrix#matrix_browsers) --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Mark Hopkin <mark.hopkin@elastic.co> Co-authored-by: natasha-moore-elastic <137783811+natasha-moore-elastic@users.noreply.github.com> Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
This commit is contained in:
parent
d0f5d79527
commit
d18c833e0d
30 changed files with 1132 additions and 80 deletions
|
@ -961,6 +961,13 @@ detection engine rules.
|
|||
.set(X_ELASTIC_INTERNAL_ORIGIN_REQUEST, 'kibana')
|
||||
.send(props.body as object);
|
||||
},
|
||||
scheduleRiskEngineNow() {
|
||||
return supertest
|
||||
.post('/api/risk_score/engine/schedule_now')
|
||||
.set('kbn-xsrf', 'true')
|
||||
.set(ELASTIC_HTTP_VERSION_HEADER, '2023-10-31')
|
||||
.set(X_ELASTIC_INTERNAL_ORIGIN_REQUEST, 'kibana');
|
||||
},
|
||||
/**
|
||||
* Find and/or aggregate detection alerts that match the given query.
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue