Skip to content

Commit

Permalink
Update Preconfigured Endpoint Names (elastic#197498)
Browse files Browse the repository at this point in the history
## 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
  • Loading branch information
Samiul-TheSoccerFan authored Oct 23, 2024
1 parent 4df5b5a commit 658ecea
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ export const DEFAULT_INFERENCE_ENDPOINTS_TABLE_STATE: AllInferenceEndpointsTable
export const PIPELINE_URL = 'ingest/ingest_pipelines';

export const PRECONFIGURED_ENDPOINTS = {
ELSER: '.elser-2',
E5: '.multi-e5-small',
ELSER: '.elser-2-elasticsearch',
E5: '.multilingual-e5-small-elasticsearch',
};
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ describe('Delete Action', () => {
});

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

expect(screen.getByTestId('inferenceUIDeleteAction')).toBeDisabled();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const inferenceEndpoints = [
task_settings: {},
},
{
inference_id: '.elser-2',
inference_id: '.elser-2-elasticsearch',
task_type: 'sparse_embedding',
service: 'elasticsearch',
service_settings: {
Expand All @@ -57,7 +57,7 @@ const inferenceEndpoints = [
task_settings: {},
},
{
inference_id: '.multi-e5-small',
inference_id: '.multilingual-e5-small-elasticsearch',
task_type: 'text_embedding',
service: 'elasticsearch',
service_settings: {
Expand All @@ -80,8 +80,8 @@ describe('When the tabular page is loaded', () => {
render(<TabularPage inferenceEndpoints={inferenceEndpoints} />);

const rows = screen.getAllByRole('row');
expect(rows[1]).toHaveTextContent('.elser-2');
expect(rows[2]).toHaveTextContent('.multi-e5-small');
expect(rows[1]).toHaveTextContent('.elser-2-elasticsearch');
expect(rows[2]).toHaveTextContent('.multilingual-e5-small-elasticsearch');
expect(rows[3]).toHaveTextContent('local-model');
expect(rows[4]).toHaveTextContent('my-elser-model-05');
expect(rows[5]).toHaveTextContent('third-party-model');
Expand Down

0 comments on commit 658ecea

Please sign in to comment.