From b3919305666842835d71556b86cc83a61b4330c1 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 11 Sep 2024 00:54:09 +0000 Subject: [PATCH] fix: data source permission client wrapper error of not returning explicitly the saved object client functions (#8118) * fix: data source permission client wrapper error of not returning explicitly the saved object client functions Signed-off-by: Yulong Ruan * Changeset file for PR #8118 created/updated --------- Signed-off-by: Yulong Ruan Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com> Co-authored-by: ZilongX <99905560+ZilongX@users.noreply.github.com> Co-authored-by: Xuesong Luo (cherry picked from commit cc24bf67a4deedd75702a6275806d4f91c16cf94) Signed-off-by: github-actions[bot] --- changelogs/fragments/8118.yml | 2 ++ .../data_source_premission_client_wrapper.ts | 8 ++++++++ 2 files changed, 10 insertions(+) create mode 100644 changelogs/fragments/8118.yml diff --git a/changelogs/fragments/8118.yml b/changelogs/fragments/8118.yml new file mode 100644 index 000000000000..9012e585cc2f --- /dev/null +++ b/changelogs/fragments/8118.yml @@ -0,0 +1,2 @@ +fix: +- Necessary functions are missing from data source permission saved object wrapper ([#8118](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/8118)) \ No newline at end of file diff --git a/src/plugins/data_source_management/server/saved_objects/data_source_premission_client_wrapper.ts b/src/plugins/data_source_management/server/saved_objects/data_source_premission_client_wrapper.ts index 17c979303535..f414ccdc2561 100644 --- a/src/plugins/data_source_management/server/saved_objects/data_source_premission_client_wrapper.ts +++ b/src/plugins/data_source_management/server/saved_objects/data_source_premission_client_wrapper.ts @@ -148,6 +148,14 @@ export class DataSourcePermissionClientWrapper { delete: deleteWithManageableBy, update: updateWithManageableBy, bulkUpdate: bulkUpdateWithManageableBy, + get: wrapperOptions.client.get, + checkConflicts: wrapperOptions.client.checkConflicts, + errors: wrapperOptions.client.errors, + addToNamespaces: wrapperOptions.client.addToNamespaces, + deleteFromNamespaces: wrapperOptions.client.deleteFromNamespaces, + find: wrapperOptions.client.find, + bulkGet: wrapperOptions.client.bulkGet, + deleteByWorkspace: wrapperOptions.client.deleteByWorkspace, }; };