forked from opensearch-project/OpenSearch-Dashboards
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'workspace-pr-integr' into feature/setup-workspace-serve…
…r-api-main
- Loading branch information
Showing
19 changed files
with
1,452 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
export { | ||
WorkspacesStart, | ||
WorkspacesService, | ||
WorkspacesSetup, | ||
WorkspaceObservables, | ||
} from './workspaces_service'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
import { BehaviorSubject } from 'rxjs'; | ||
import { WorkspaceAttribute } from '..'; | ||
|
||
const currentWorkspaceId$ = new BehaviorSubject<string>(''); | ||
const workspaceList$ = new BehaviorSubject<WorkspaceAttribute[]>([]); | ||
const currentWorkspace$ = new BehaviorSubject<WorkspaceAttribute | null>(null); | ||
const initialized$ = new BehaviorSubject<boolean>(false); | ||
const workspaceEnabled$ = new BehaviorSubject<boolean>(false); | ||
|
||
const createWorkspacesSetupContractMock = () => ({ | ||
currentWorkspaceId$, | ||
workspaceList$, | ||
currentWorkspace$, | ||
initialized$, | ||
workspaceEnabled$, | ||
registerWorkspaceMenuRender: jest.fn(), | ||
}); | ||
|
||
const createWorkspacesStartContractMock = () => ({ | ||
currentWorkspaceId$, | ||
workspaceList$, | ||
currentWorkspace$, | ||
initialized$, | ||
workspaceEnabled$, | ||
renderWorkspaceMenu: jest.fn(), | ||
}); | ||
|
||
export const workspacesServiceMock = { | ||
createSetupContractMock: createWorkspacesSetupContractMock, | ||
createStartContract: createWorkspacesStartContractMock, | ||
}; |
Oops, something went wrong.