-
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
[Ingest Manager] Refactor Datasource create/edit forms to recognize and support the package's solution
field to drive displaying a custom UI for configuration
#67939
Comments
Pinging @elastic/ingest-management (Team:Ingest Management) |
We should verify that flag is in fact valid - I also did not realize it existed until recently when i looked at this file. /cc: @jen-huang , @ruflin |
@paul-tavares I've looked and searched through the code I don't know where this field is coming from, I thought we initially wanted to hardcoded the special UI based on the package type but if we can make it work without too much effort with a cleaner field lets do it. @ruflin I having the "solution" at the datasource level in the package would work? |
@ph that field is on the package in the package-storage and does not yet
make it all the way across to ingest types (I assume we strip it out). Part
of this change would be to add it to ingest Datasource types and then use
it to drive the UI.
…--
___
*Paul Tavares *| Sr. Software Engineer | Elastic / www.elastic.co | Durham,
NC, USA
|
The field was added having Uptime, APM in mind. But TBH it potentially makes more sense to hardcode it instead in Kibana. The reason is that for example lets say the of Endpoint link changes in 7.10 but the old packages are still around. As the Endpoint UI and Ingest Management UI are always on the same version, it might be simpler to just hardcode it there and remove it again from the package info. |
I think that is still doable while still utilizing this |
I will work on this after #67234 is merged. |
@jen-huang Does this mean the flag should more become a |
I don't feel strongly about this. If we leave it as a string, then we can potentially point multiple packages to the same solution, but I'm not sure if that's a realistic use case. Thoughts? |
Taking a step back: How does a "custom" solution hooking into our configuration building? If I remember our conversation correctly, there is a place the solution can register itself and request a callback. Lets assume we have a package |
The logic you describe correct. If we feel that solutions registering themselves in the UI is good enough without the additional safeguard/check on the package manifest, then we can do away with the |
This is my preference at the moment and we introduce the solution field if we need safeguards later on. Do we rely somehow on the solution field today or can it be just removed? @jen-huang @paul-tavares |
Based on the discussion in elastic/kibana#67939 it seems like we do not need the solution entry in the manifest. This removes it.
I opened elastic/package-registry#504 on the registry side. |
It can just be removed. We don’t needed in endpoint.
--
…___
*Paul Tavares *| Sr. Software Engineer | Elastic / www.elastic.co | Durham,
NC, USA
|
Closing this as we don't need to do anything on Kibana side now. |
Based on the discussion in elastic/kibana#67939 it seems like we do not need the solution entry in the manifest. This removes it.
The Package definition seems to now support defining a flag named
solution
on a Datasource whose purpose is to instruct the Kibana UI that a custom UI should be displayed. See Endpoint definition here:https://github.com/elastic/package-storage/blob/master/packages/endpoint/0.1.0/manifest.yml#L23
The Kibana Ingest Manager creation and editing of Datasources should be refactored to now process based on this flag being set to a know value.
(see this PR comment for reference)
The text was updated successfully, but these errors were encountered: