[Core][WIP] SavedObjects v2 #40380
Labels
Feature:Saved Objects
stale
Used to mark issues that were closed for being stale
Team:Core
Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc
This is a WIP meta-issue to collect all the known shortcomings related to SavedObjects
1. Validation
Unless data (or
attributes
) is validated across the entire SavedObjects service it's nearly impossible to write reliable migrations and business logic. Having to add defensive checks in your migrations and business logic means we're not achieving the benefit of having a migration system: always having a consistent schema/shape for your data and being able to easily reason about the range of values your code has to deal with.To be effective validation has to be applied to the following areas:
Note: validation should not enforce business rules or constraints, these should be applied at the API level (see 2.1).
2. SavedObjects HTTP API
3. SavedObjectsClient
1. Common
create({ type, attributes, overwrite, references })
2. Client-side
client
{savedObjects: []}
server:
{saved_objects: [...]}
3. server-side
5. KibanaMigrator
The text was updated successfully, but these errors were encountered: