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
[RAM][SECURITYSOLUTION][ALERTS] - Update action form UI to fit security solution needs (#154531) #154526
[RAM][SECURITYSOLUTION][ALERTS] - Update action form UI to fit security solution needs (#154531) #154526
Conversation
@elasticmachine merge upstream |
@elasticmachine merge upstream |
@elasticmachine merge upstream |
@elasticmachine merge upstream |
@elasticmachine merge upstream |
...lugins/triggers_actions_ui/public/application/sections/action_connector_form/action_form.tsx
Outdated
Show resolved
Hide resolved
...lugins/triggers_actions_ui/public/application/sections/action_connector_form/action_form.tsx
Outdated
Show resolved
Hide resolved
...triggers_actions_ui/public/application/sections/action_connector_form/action_notify_when.tsx
Outdated
Show resolved
Hide resolved
...ggers_actions_ui/public/application/sections/action_connector_form/action_type_form.test.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.
I'm unsure if these issues are blockers for this PR, or something that we should open a tech debt issue about. I'm open to more input about that.
In summary, I'm concerned about adding feature-specific code to a generic platform plugin, instead of adding a pathway to customize it with props.
@elasticmachine merge upstream |
@Zacqary Thanks for the review! I agree that the approach is not ideal. We discussed this with @XavierM couple weeks ago and decided that it will be the easiest and probably enough as a solution for the task that we are doing. I will revisit these changes and will see how to improve them by passing security solution specific parameters from the outside. |
@elasticmachine merge upstream |
…solution action frequency options
@elasticmachine merge upstream |
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!
@elasticmachine merge upstream |
@elasticmachine merge upstream |
@@ -77,6 +77,12 @@ export interface RuleExecutionStatus { | |||
export type RuleActionParams = SavedObjectAttributes; | |||
export type RuleActionParam = SavedObjectAttribute; | |||
|
|||
export interface RuleActionFrequency extends SavedObjectAttributes { |
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.
Why does this interface need to extend from SavedObjectAttributes
?
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 do rule conversion into a RawRule
which is an extension of SavedObjectAttributes
here.
From my understanding server side uses SavedObjectAttributes
as an interface for saved objects and objects that we pass to the server needs to be compatible with that interface.
@Zacqary correct me if I'm wrong or if there is anything else you can add here.
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.
Detections Rules Codeowners files LGTM 👍
💛 Build succeeded, but was flaky
Failed CI StepsMetrics [docs]Public APIs missing comments
Async chunks
Page load bundle
Unknown metric groupsAPI count
ESLint disabled line counts
References to deprecated APIs
Total ESLint disabled count
History
To update your PR or re-run it, just comment with: cc @e40pud |
…ty solution needs (elastic#154531) (elastic#154526) ## Summary These changes customise action form UI for security solution needs. ![image](https://user-images.githubusercontent.com/2700761/230332242-20cbd4a1-8f76-4e1d-835e-cd0525cc530c.png) To see how new design works in security solution, you can use this [draft PR](elastic#153113) which consists of all the changes. I split that big PR into smaller independent pieces for easier review process. Fixes elastic#154531 --------- Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Summary
These changes customise action form UI for security solution needs.
To see how new design works in security solution, you can use this draft PR which consists of all the changes. I split that big PR into smaller independent pieces for easier review process.
Fixes #154531