Skip to content

Commit

Permalink
[API] Delete saved objects by workspace (opensearch-project#216)
Browse files Browse the repository at this point in the history
* Delete saved objects by workspace

Signed-off-by: Hailong Cui <[email protected]>

fix osd boostrap

Signed-off-by: Hailong Cui <[email protected]>

* add unit test

Signed-off-by: Hailong Cui <[email protected]>

* fix can't delete workspace due to invalid permission

Signed-off-by: Hailong Cui <[email protected]>

---------

Signed-off-by: Hailong Cui <[email protected]>
  • Loading branch information
Hailong-am authored and SuZhou-Joe committed Mar 18, 2024
1 parent b26aef0 commit 722fc28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/server/saved_objects/service/lib/repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -740,9 +740,9 @@ export class SavedObjectsRepository {
}

/**
* Deletes all objects from the provided workspace.
* Deletes all objects from the provided workspace. It used when deleting a workspace.
*
* @param {string} workspace - workspace id
* @param {string} workspace
* @param options SavedObjectsDeleteByWorkspaceOptions
* @returns {promise} - { took, timed_out, total, deleted, batches, version_conflicts, noops, retries, failures }
*/
Expand Down

0 comments on commit 722fc28

Please sign in to comment.