-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch '2.x' into feat-merge-2.x-to-model-registry
Signed-off-by: Lin Wang <[email protected]>
- Loading branch information
Showing
43 changed files
with
1,402 additions
and
320 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
export class Connector { | ||
public async getAll() { | ||
return { | ||
data: [ | ||
{ | ||
id: 'external-connector-1-id', | ||
name: 'External Connector 1', | ||
}, | ||
], | ||
total_connectors: 1, | ||
}; | ||
} | ||
|
||
public async getAllInternal() { | ||
return { | ||
data: ['Internal Connector 1', 'Common Connector'], | ||
}; | ||
} | ||
} |
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,35 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
import { | ||
CONNECTOR_API_ENDPOINT, | ||
INTERNAL_CONNECTOR_API_ENDPOINT, | ||
} from '../../server/routes/constants'; | ||
import { InnerHttpProvider } from './inner_http_provider'; | ||
|
||
export interface GetAllConnectorResponse { | ||
data: Array<{ | ||
id: string; | ||
name: string; | ||
description?: string; | ||
}>; | ||
total_connectors: number; | ||
} | ||
|
||
interface GetAllInternalConnectorResponse { | ||
data: string[]; | ||
} | ||
|
||
export class Connector { | ||
public getAll() { | ||
return InnerHttpProvider.getHttp().get<GetAllConnectorResponse>(CONNECTOR_API_ENDPOINT); | ||
} | ||
|
||
public getAllInternal() { | ||
return InnerHttpProvider.getHttp().get<GetAllInternalConnectorResponse>( | ||
INTERNAL_CONNECTOR_API_ENDPOINT | ||
); | ||
} | ||
} |
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
25 changes: 0 additions & 25 deletions
25
public/components/experiment_warning/__tests__/index.test.tsx
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.