Hide action types in action form that don't have actionParamsFields set#68171
Hide action types in action form that don't have actionParamsFields set#68171mikecote merged 2 commits intoelastic:masterfrom
Conversation
YulNaumenko
left a comment
There was a problem hiding this comment.
LGTM after fixing some unit tests.
💚 Build SucceededHistory
To update your PR or re-run it, just comment with: |
|
Pinging @elastic/kibana-alerting-services (Team:Alerting Services) |
|
Note: for testing this, you will need to set these inside your This enables the SIEM plugin which will register the ServiceNow and Jira action types. |
pmuellr
left a comment
There was a problem hiding this comment.
LGTM; code works as advertised
|
I'm curious about this mechanism. Guessing we see the SN and Jira action types from the actions plugin API, but then these From 10K feet, it seems like it's making use of some implementation detail, which seems not great, vs some more explicit / declarative approach. But fine for now. Maybe with the RBAC stuff coming it may make more sense to handle this kind of thing that way (but I'm thinking RBAC is for alerts and not really actions). |
The action types that aren't registered in the UI get filtered out on the line above the filter I added (https://github.com/elastic/kibana/blob/master/x-pack/plugins/triggers_actions_ui/public/application/sections/action_connector_form/action_form.tsx#L549). The ServiceNow and Jira have UI components registered (https://github.com/elastic/kibana/blob/master/x-pack/plugins/security_solution/public/common/lib/connectors/servicenow/index.tsx#L41-L46) but don't define an |
|
A follow up issue #68311 has been opened in regards to what is discussed above. |
…et (elastic#68171) * Hide action types in alert flyout that don't have actionParamsFields set * Fix jest tests
…et (elastic#68171) * Hide action types in alert flyout that don't have actionParamsFields set * Fix jest tests
…elds set (#68171) (#68313) * Hide action types in action form that don't have actionParamsFields set (#68171) * Hide action types in alert flyout that don't have actionParamsFields set * Fix jest tests * Fix tests to be compatible with 7.8 Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Resolves #68001
In this PR, I'm removing action types that don't have
actionParamsFieldsset from showing up as available in the action form due to not having fields to render in the form once selected. This will automatically hide Jira and ServiceNow because both don't haveactionParamsFieldsset.