-
Notifications
You must be signed in to change notification settings - Fork 72
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
Warning when dashboard with visualisations by reference instead of value exist #316
Comments
I was checking the references that could be defined in dashboards, and currently these are the reference types that I found across all the packages:
In #389 , just "lens" and "visualization" reference types were considered to show the warning. What other reference types should be checked to show this warning ? I've been testing to add more elements to one dashboard by reference (in Kibana 8.0.0):
@ruflin With that, should we consider to update this warning and show it just when there are references of types lens, visualization and maps? |
@flash1293 Could you comment on the above. Should we strive for all assets to added by value? Is it even possible for all assets? Lets ignore index-patterns / data views for a moment as we will have a follow up discussion on that. |
|
Perfect, I'll update the validation rule adding "map" here #414 |
In Kibana, dashboards can be built with visualisations inside stored by value or by reference. Historically only by reference was supported so most of our dashboards still use by reference. The goal is to move to by value to have dashboards and visualisations directly bundled together as a unit which speeds up the installation of it in Fleet and also makes sure the visualisations do not all show up in the search, only the dashboard.
To help with this effort and notify engineers about usage of by reference, it would be nice if during building a package, package-spec or the build process would show a warning if a visualisation in a dashboard is added by reference instead of by value. Changes should not be blocked on this but engineers notified about it.
This is related to elastic/kibana#129303 which should help engineers with an easy migration to by value.
The text was updated successfully, but these errors were encountered: