[8.16] Update Preconfigured Endpoint Names (#197498) (#197521)

# Backport

This will backport the following commits from `main` to `8.16`:
- [Update Preconfigured Endpoint Names
(#197498)](https://github.com/elastic/kibana/pull/197498)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Samiul
Monir","email":"150824886+Samiul-TheSoccerFan@users.noreply.github.com"},"sourceCommit":{"committedDate":"2024-10-23T19:29:17Z","message":"Update
Preconfigured Endpoint Names (#197498)\n\n## Summary\r\n\r\nUpdates the
preconfigured names as backend changes are merged.\r\n\r\n![Screenshot
2024-10-23 at 12
15\r\n18 PM](https://github.com/user-attachments/assets/1cec2662-8176-4262-883c-759ae50d8106)\r\n\r\n\r\n###
Checklist\r\n\r\n\r\n- [X] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common
scenarios","sha":"658ecea7874f2f84d26f3f29fdc5a49125f70313","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","Team:Search","v8.16.0","backport:version","v8.17.0"],"title":"Update
Preconfigured Endpoint
Names","number":197498,"url":"https://github.com/elastic/kibana/pull/197498","mergeCommit":{"message":"Update
Preconfigured Endpoint Names (#197498)\n\n## Summary\r\n\r\nUpdates the
preconfigured names as backend changes are merged.\r\n\r\n![Screenshot
2024-10-23 at 12
15\r\n18 PM](https://github.com/user-attachments/assets/1cec2662-8176-4262-883c-759ae50d8106)\r\n\r\n\r\n###
Checklist\r\n\r\n\r\n- [X] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common
scenarios","sha":"658ecea7874f2f84d26f3f29fdc5a49125f70313"}},"sourceBranch":"main","suggestedTargetBranches":["8.16","8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/197498","number":197498,"mergeCommit":{"message":"Update
Preconfigured Endpoint Names (#197498)\n\n## Summary\r\n\r\nUpdates the
preconfigured names as backend changes are merged.\r\n\r\n![Screenshot
2024-10-23 at 12
15\r\n18 PM](https://github.com/user-attachments/assets/1cec2662-8176-4262-883c-759ae50d8106)\r\n\r\n\r\n###
Checklist\r\n\r\n\r\n- [X] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common
scenarios","sha":"658ecea7874f2f84d26f3f29fdc5a49125f70313"}},{"branch":"8.16","label":"v8.16.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.x","label":"v8.17.0","branchLabelMappingKey":"^v8.17.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Samiul Monir <150824886+Samiul-TheSoccerFan@users.noreply.github.com>
This commit is contained in:
Kibana Machine 2024-10-24 08:24:40 +11:00 committed by GitHub
parent d5b7cc004c
commit e4140841a8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 7 additions and 7 deletions

View file

@ -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',
};

View file

@ -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();

View file

@ -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: {
@ -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: {
@ -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');