Skip to content

Commit

Permalink
Merge branch 'workspace' of github.com:ruanyl/OpenSearch-Dashboards i…
Browse files Browse the repository at this point in the history
…nto contextmenu
  • Loading branch information
yuye-aws committed Aug 15, 2023
2 parents 3e64b8e + 9393525 commit 85a0513
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/plugins/workspace/server/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import {
MANAGEMENT_WORKSPACE,
Permissions,
WorkspacePermissionMode,
SavedObjectsClient,
} from '../../../core/server';
import { IWorkspaceDBImpl, WorkspaceAttribute } from './types';
import { WorkspaceClientWithSavedObject } from './workspace_client';
Expand Down Expand Up @@ -72,6 +73,10 @@ export class WorkspacePlugin implements Plugin<{}, {}> {
client: this.client as IWorkspaceDBImpl,
});

core.savedObjects.setClientFactoryProvider((repositoryFactory) => () =>
new SavedObjectsClient(repositoryFactory.createInternalRepository())
);

return {
client: this.client,
};
Expand Down

0 comments on commit 85a0513

Please sign in to comment.