Make sample data work with share-capable objects #114693
Labels
chore
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:Security
Team focused on: Auth, Users, Roles, Spaces, Audit Logging, and more!
As described in #100489, in the 8.0 release we are converting lots of saved object types to become "share-capable". One side effect of this is that newly created objects must have globally unique IDs (across all spaces).
It turns out that sample data object IDs are hardcoded, and these are created using
bulkCreate
. Which means that if you add sample data that contains share-capable objects in one space, then you try to add it in the second space, you'll run into a 409 unresolvable conflict error.The home plugin needs to use the Import API instead of
bulkCreate
:kibana/src/plugins/home/server/services/sample_data/routes/install.ts
Lines 157 to 160 in 574f659
The text was updated successfully, but these errors were encountered: