Skip to content

Commit 658ecea

Browse files
Update Preconfigured Endpoint Names (elastic#197498)
## Summary Updates the preconfigured names as backend changes are merged. ![Screenshot 2024-10-23 at 12 15 18 PM](https://github.com/user-attachments/assets/1cec2662-8176-4262-883c-759ae50d8106) ### Checklist - [X] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios
1 parent 4df5b5a commit 658ecea

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

x-pack/plugins/search_inference_endpoints/public/components/all_inference_endpoints/constants.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,6 @@ export const DEFAULT_INFERENCE_ENDPOINTS_TABLE_STATE: AllInferenceEndpointsTable
3636
export const PIPELINE_URL = 'ingest/ingest_pipelines';
3737

3838
export const PRECONFIGURED_ENDPOINTS = {
39-
ELSER: '.elser-2',
40-
E5: '.multi-e5-small',
39+
ELSER: '.elser-2-elasticsearch',
40+
E5: '.multilingual-e5-small-elasticsearch',
4141
};

x-pack/plugins/search_inference_endpoints/public/components/all_inference_endpoints/render_table_columns/render_actions/actions/delete/delete_action.test.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ describe('Delete Action', () => {
4444
});
4545

4646
it('disable the delete action for preconfigured endpoint', () => {
47-
const preconfiguredMockItem = { ...mockItem, endpoint: '.elser-2' };
47+
const preconfiguredMockItem = { ...mockItem, endpoint: '.multilingual-e5-small-elasticsearch' };
4848
render(<Wrapper item={preconfiguredMockItem} />);
4949

5050
expect(screen.getByTestId('inferenceUIDeleteAction')).toBeDisabled();

x-pack/plugins/search_inference_endpoints/public/components/all_inference_endpoints/tabular_page.test.tsx

+4-4
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ const inferenceEndpoints = [
4646
task_settings: {},
4747
},
4848
{
49-
inference_id: '.elser-2',
49+
inference_id: '.elser-2-elasticsearch',
5050
task_type: 'sparse_embedding',
5151
service: 'elasticsearch',
5252
service_settings: {
@@ -57,7 +57,7 @@ const inferenceEndpoints = [
5757
task_settings: {},
5858
},
5959
{
60-
inference_id: '.multi-e5-small',
60+
inference_id: '.multilingual-e5-small-elasticsearch',
6161
task_type: 'text_embedding',
6262
service: 'elasticsearch',
6363
service_settings: {
@@ -80,8 +80,8 @@ describe('When the tabular page is loaded', () => {
8080
render(<TabularPage inferenceEndpoints={inferenceEndpoints} />);
8181

8282
const rows = screen.getAllByRole('row');
83-
expect(rows[1]).toHaveTextContent('.elser-2');
84-
expect(rows[2]).toHaveTextContent('.multi-e5-small');
83+
expect(rows[1]).toHaveTextContent('.elser-2-elasticsearch');
84+
expect(rows[2]).toHaveTextContent('.multilingual-e5-small-elasticsearch');
8585
expect(rows[3]).toHaveTextContent('local-model');
8686
expect(rows[4]).toHaveTextContent('my-elser-model-05');
8787
expect(rows[5]).toHaveTextContent('third-party-model');

0 commit comments

Comments
 (0)