Add SavedObjectTypeRegistry.getVisibleTypes API #66818
Labels
chore
enhancement
New value added to drive a business result
Feature:New Platform
Feature:Saved Objects
Team:Core
Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc
We currently have a
getAllTypes
API exposed from the registry that returns all types, including thehidden
ones. Even if accessing all type is necessary in some situations, the most common use case is to only access the list ofvisible
types. This currently requires to manually filter the returned types fromgetAllTypes
We should add a
getVisibleType
API to the registry, and update the jsdoc aboutgetAllTypes
to make it clear that hidden types are also returned.The text was updated successfully, but these errors were encountered: