Sample datasets with objects namespaceType: multiple
or multiple-isolated
fail to install on multiple namespaces
#116261
Labels
bug
Fixes for quality problems that affect the customer experience
Feature:Home
Kibana home application
Feature:Security/Sharing Saved Objects
Platform Security - Sharing Saved Objects feature
impact:low
Addressing this issue will have a low level of impact on the quality/strength of our product.
loe:small
Small Level of Effort
Team:Core
Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc
Team:Security
Team focused on: Auth, Users, Roles, Spaces, Audit Logging, and more!
The sample datasets are using static IDs for their objects, meaning that objects installed via the sample datasets got the same ids on each namespace it has been installed on.
With the new
namespaceType: multiple/multiple-isolated
mode, we can't no longer have the same ID on objects being on different namespaces, as the IDs must be globally uniques.Currently, datasets containing such objects can only be installed on a single namespace. When trying to install them on an additional one, the installation will fail with a conflict error during the
create
stagee.g
I guess the only solution for this is to stop using static IDs for our datasets.
This is far from trivial though, because:
kibana/src/plugins/home/server/services/sample_data/sample_data_registry.ts
Lines 117 to 124 in 1061835
NOTE: I think this is only impacting
8.0
because we shouldn't have anynamespaceType: multiple/multiple-isolated
in the7.x
branch. However, this is probably a blocker for8.0
as the feature is plain broken.cc @jportner
The text was updated successfully, but these errors were encountered: