-
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
Weird test data for saved objects #127202
Comments
Pinging @elastic/kibana-qa (Team:QA) |
@jportner what does "Different dashboards with “weak links” to each other" mean? Sorry for asking again. |
Good question! This was inspired by #123550. "Weak links" is the term we are using to describe any free-text that links to a saved object. For example, a dashboard Elastic actually ships some visualizations that use such "weak links" today, apparently Beats dashboards makes use of this. |
It might also be helpful to find a good way to list/describe what we have for existing data sets. For example, @bhavyarm just added a new test with dashboards full of visualizations by-reference and by-value with both importing into multiple spaces, and copy-to-space tests. |
🗒 Note
This is currently labeled with
Team:QA
, but I'm envisioning this as a shared responsibility across Kibana teams with QA as a "primary owner".Overview
Kibana currently provides three sample datasets (Ecommerce, Flights, and Logs) -- whenever you add one of these datasets from the homepage, it actually loads two groups of data:
Kibana's saved objects are very flexible, they can be strongly linked (by
references
) or weakly linked (by markdown and/or handlebars), and some saved objects are also "embeddables" that can be rendered in other apps. This is further complicated by the fact that starting in 8.0, saved object IDs can change (both on upgrade and on import/copy), and legacy URL aliases can get created in certain conditions.What to do
We have had trouble testing all of the complex ways that saved objects can be loaded and linked to in Kibana. It would be helpful to have more test data for saved objects that allows engineers to test these different scenarios. Here's what I'm envisioning:
-> This will be much more visible and easily usable for engineers to smoke-test their saved objects!
Using dashboards as an example:
[Dashboard saved object | Dashboard snapshot URL] + [Visualizations "by-reference" | Visualizations "by-value"]
[Existed before upgrading to 8.0 | Do not already exist] + [Create new copies | Check for existing objects w/o overwriting | Check for existing objects and automatically overwrite]
Scope
Initially, I think it makes sense to start small and put this together only for Kibana team plugins.
As a follow-up, it would be good to include solutions as well (Observability and Security Solution -- Enterprise Search doesn't use saved objects right now).
Other thoughts
kbn-archiver
package to load saved objects for functional testing. However, some of the saved objects that we might want to work with may not be importable/exportable. We'll need to figure out a solution to this if we want to stick withkbn-archiver
-- otherwise we may need to resort toes-archiver
instead..kibana
and/or.kibana_task_manager
indices) too.The text was updated successfully, but these errors were encountered: