Skip to content

Migrate API: allow a document filter so a subset of an index can be migrated #6526

Description

@DarshitChanpura

The migrate endpoint accepts source_index, username_path, backend_roles_path and default_owner (MigrateResourceSharingInfoApiAction.java:526) and migrates every document in the index.

A protected index may hold documents that are not resources. .plugins-ml-model stores one document per model chunk alongside the model metadata document (MLModelManager.java:1042-1047), and chunk documents carry no model_group_id, so migrating that index would create a parentless sharing record per chunk.

Request: an optional query on the migrate request, so a migration can target a subset of an index — for the case above, must_not exists(chunk_number).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestuntriagedRequire the attention of the repository maintainers and may need to be prioritized

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions