mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
# 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\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\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\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:
parent
d5b7cc004c
commit
e4140841a8
3 changed files with 7 additions and 7 deletions
|
@ -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',
|
||||
};
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue