SO Repository: Adding multi-NS support to remaining non-bulk operations #109996
Labels
discuss
Feature:Saved Objects
Team:Core
Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc
If most of the
bulk
APIs of the SOR now support handling either multiple namespaces (e.gfind
) or to specify the target namespace for each object (e.gbulkCreate
), we're lacking the equivalent for most of the non-bulk operation (get
ordelete
for example).From my understanding, this state is mostly caused by two factors:
namespace
option of the SOR apis (whenspaces
is enabled), as this is a reserved option that should currently only be populated by the spaces wrapper, which introduces the question of how we should allow API consumers to specify the namespace when invoking such APIs.After some discussions in #109197, (where we would have needed to specify a target namespace for
delete
) one option could be (see #109197 (comment)) to refactor the space wrapper and the base SOR options to rename the currentnamespace
option tocurrentNamespace
. This new property will preserve all the particularities of the old option (considered internal, only populated by the spaces wrapper), while the new-with-old-namenamespace
option would now be able to be specified by our API consumers.The text was updated successfully, but these errors were encountered: