-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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] Ensure installation of index-pattern assets from packages works #71633
Comments
Pinging @elastic/ingest-management (Team:Ingest Management) |
Also want to mention that if changing the assets folders to be snake_case, that resulting |
@neptunian Did we make any progress on this? |
@ph No this has not been addressed. I'm not too worried about index patterns as we don't currently support pre-generated index patterns, though we do need a general solution for kibana assets wish dashes to make sure they are installed correctly. Since we don't yet support assets in the package with this issue, this is probably not high priority until then. |
@neptunian thanks @jonathan-buttner do you still need that feature for endpoint? |
@neptunian The Canvas team would like to be able to install our templates into Kibana through the package manager and this would block us. I'm happy to to do the work here if needed. |
@crob611 Would be great if you could take care of this. I suggest we create an issue in Kibana and package spec around adding canvas so everyone is aware of and we can discuss the "caveats". I filed this issue here to come up with a potential checklist: elastic/package-spec#27 @crob611 Could you file an issue? |
Alright, I'm going to fix this in order to get our canvas types allowable. My question: is there a reason to even maintain the Any thoughts on going about it this way? I obviously don't have the historical context on any of this, so appreciate any input you can share. |
What asset types we support is also documented in our package-spec: https://github.com/elastic/package-spec I think it is important that we don't just install all the assets showing up in a package. Each new assets type, we should test if it works and we need to have a discussion on how it behaves (see checklist in elastic/package-spec#27). I personally think we should even have all the CRUD methods specified for each asset type and only reuse logic from lib. That dashboards, visualizations and canvas potentially work the same is in the future more the exception I believe. |
We don't currently need this for endpoint. The reason I was investigating installing our own index patterns was to make certain visualizations have their axes have a custom label. For example, have a Y-axis be labeled with GB instead of 10000... |
Currently, we set up
KibanaAssetType
asIn
kibana/x-pack/plugins/ingest_manager/server/services/epm/registry/index.ts
Line 192 in b435d46
parts.type in KibanaAssetType
, which will fail ifparts.type
isindex-pattern
, which it is because the kibana asset directories in packages are currently named like their saved objects type.This code was never used for installing index patterns, as we currently don't have pre-generated index patterns in any of the packages. Still, if we support that asset type, installation should work.
This task is to clean up the code, make sure it works, and add an integration test. Also note that for elasticsearch assets, the package directory use snake_case now, so maybe the kibana assets should too. (see elastic/package-registry#572)
(Thanks @crob611 for spotting the problem.)
The text was updated successfully, but these errors were encountered: