Skip to content

[saved objects][pit finder] Add support for multiple namespaces. #99044

@lukeelmers

Description

@lukeelmers

When we originally added support for using savedObjectsClient.find with an Elasticsearch point-in-time (PIT), we decided to defer adding support for multiple namespaces until we had a concrete need for it.

With some of the recent refactoring around visualization usage collectors, this need has come up again.

To do this, we'd need to:

  • Update soRepository.openPointInTimeForType to handle namespaces and typeToNamespacesMap in the same way as find (including the runtime checks for making sure you don't try to provide both)
  • Update the secure SOC wrapper implementation of openPointInTimeForType to perform a privilege check and build the namespaces map to provide to the base repository
  • Remove the restriction on combining pit with namespaces from secure SOC wrapper find
  • soClient.createPointInTimeFinder will need to ensure the typeToNamespacesMap is handed off when calling openPointInTimeForType
  • Add tests to ensure searching across namespaces works as expected when using createPointInTimeFinder

Blocks #99031, #99023, #98914, #98903, #91615

Metadata

Metadata

Assignees

No one assigned

    Labels

    Feature:Saved ObjectsTeam:CorePlatform Core services: plugins, logging, config, saved objects, http, ES client, i18n, etc t//enhancementNew value added to drive a business result

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions