elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.65k stars 8.23k forks source link

Integrations form to have url params support #175817

Open JordanSh opened 9 months ago

JordanSh commented 9 months ago

Summary

We want to add the ability to select values by using url params. for example, when navigating to the CSPM integration, we would like to be able to pre-select Azure as a value if the url includes a parameter for cloudProvider=Azure.

image

This will require adding support for URL params, and initial values state management. This will allow us to navigate to a direct integration from the benchmarks and rules pages.

### Definition of done
- [ ] add support for optional url parameters in the integrations form page
- [ ] set initial form values based on the url params
- [ ] make sure this does not function on edit mode
- [ ] add tests
kfirpeled commented 8 months ago

@JordanSh I was thinking to assign this for sean as a good first issue. wdyt?

Can you please add more context to the issue so it would be better handed off?

JordanSh commented 8 months ago

Added context and dod

Omolola-Akinleye commented 5 months ago

I don't believe this issue is truly a quick win. Integration form is fleet extension component in our CSP plugin and Fleet handles routing with params differently with hooks and component that we don't have access to from PolicyTemplateInputSelector. When I selected the cloud provider and use history.push() , page re-directs routing to fleet agent page. cc: @JordanSh @kfirpeled