-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Fleet] Refactor existing Agent 'Policies - Integration - Edit' view to support using a UI extension point if one is available #82482
Comments
Pinging @elastic/ingest-management (Team:Ingest Management) |
@elastic/ingest-management I would like some feedback/thoughts on the questions I posed above in this Issue. |
I like the idea of having that decision configurable with an option too |
I think the decision for this is best informed by what we anticipate custom integration form designs to look like. Based on my current awareness of current design discussions, it seems like the majority of future custom integration form views would replace the entire form, rather than adding supplemental views below the form. This makes sense from a UX perspective too: it would be confusing to have two UI areas which affect the same user-configured field - this is not entirely relevant for endpoint package, which ships no inputs, but we can anticipate that most packages do ship inputs. My vote is to build it now by rendering only the custom UI extension, with no options, to avoid over-engineering for an unknown future. We can always add options later when the appropriate use case comes up. |
I'm fine with this as long as we still have the "Integration Settings" available at the top of the form, i.e. the Integration Name, Description and namespace. If these are common for all Integrations, I think it should remain until we see a reason to remove it. See the screenshot below. |
@paul-tavares 👍 Agreed, the form should only replace what is below Integration Settings. |
Thanks @jen-huang and @kevinlog . Initially I was thinking that option to "replace" would actually also replace that set of integration options as well - so that the Integration specific view can also control those fields. Doing so would void us having integration specific code in Fleet - as is the case for when creating an Endpoint Policy, where we don't want the name to be auto-generated into the input - Lines 50 to 60 in 441a0d4
I'm good with going with the current approach and just replacing the settings and we can iterate on it if needed. |
@paul-tavares WRT to the package policy name for Endpoint - I'd love to see that bit of code removed too. I wonder if it might be possible to move that hack to the custom endpoint form instead by triggering a change of the name on initial component mount ( |
@jen-huang that seems like its something we can do - to use |
Part of: Integration Specific Policy Views
Dependent on: #82478
Description
Refactor the Edit Integration Policy View to check for if a registered UI extension point exists for the given Integration and if so, render that custom UI extension on the Edit form
In addition,
Remove the Endpoint specific exception from the Create Integration form:
kibana/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/step_define_package_policy.tsx
Lines 50 to 60 in 441a0d4
And instead have the Endpoint UI Extension that is registered for the Create flow blank out the default Integration Name generated by Fleet.
Some Questions to address
The text was updated successfully, but these errors were encountered: