Skip to content

Commit 22526df

Browse files
authored
Merge branch '9.4' into backport/9.4/pr-271481
2 parents 3bfceae + 5bad6ea commit 22526df

80 files changed

Lines changed: 1217 additions & 546 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

oas_docs/output/kibana.serverless.yaml

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -19344,42 +19344,12 @@ paths:
1934419344
x-metaTags:
1934519345
- content: Kibana, Elastic Cloud Serverless
1934619346
name: product_name
19347-
/api/endpoint/action/running_procs:
19348-
post:
19349-
description: |-
19350-
**Spaces method and path for this operation:**
19351-
19352-
<div><span class="operation-verb post">post</span>&nbsp;<span class="operation-path">/s/{space_id}/api/endpoint/action/running_procs</span></div>
19353-
19354-
Refer to [Spaces](https://www.elastic.co/docs/deploy-manage/manage-spaces) for more information.
19355-
19356-
Get a list of all processes running on an endpoint.
19357-
operationId: EndpointGetProcessesAction
19358-
requestBody:
19359-
content:
19360-
application/json:
19361-
schema:
19362-
$ref: '#/components/schemas/Security_Endpoint_Management_API_GetProcessesRouteRequestBody'
19363-
required: true
19364-
responses:
19365-
'200':
19366-
content:
19367-
application/json:
19368-
schema:
19369-
$ref: '#/components/schemas/Security_Endpoint_Management_API_GetProcessesRouteResponse'
19370-
description: OK
19371-
summary: Get running processes
19372-
tags:
19373-
- Security Endpoint Management API
19374-
x-metaTags:
19375-
- content: Kibana, Elastic Cloud Serverless
19376-
name: product_name
19377-
/api/endpoint/action/runscript:
19347+
/api/endpoint/action/run_script:
1937819348
post:
1937919349
description: |-
1938019350
**Spaces method and path for this operation:**
1938119351

19382-
<div><span class="operation-verb post">post</span>&nbsp;<span class="operation-path">/s/{space_id}/api/endpoint/action/runscript</span></div>
19352+
<div><span class="operation-verb post">post</span>&nbsp;<span class="operation-path">/s/{space_id}/api/endpoint/action/run_script</span></div>
1938319353

1938419354
Refer to [Spaces](https://www.elastic.co/docs/deploy-manage/manage-spaces) for more information.
1938519355

@@ -19435,6 +19405,36 @@ paths:
1943519405
x-metaTags:
1943619406
- content: Kibana, Elastic Cloud Serverless
1943719407
name: product_name
19408+
/api/endpoint/action/running_procs:
19409+
post:
19410+
description: |-
19411+
**Spaces method and path for this operation:**
19412+
19413+
<div><span class="operation-verb post">post</span>&nbsp;<span class="operation-path">/s/{space_id}/api/endpoint/action/running_procs</span></div>
19414+
19415+
Refer to [Spaces](https://www.elastic.co/docs/deploy-manage/manage-spaces) for more information.
19416+
19417+
Get a list of all processes running on an endpoint.
19418+
operationId: EndpointGetProcessesAction
19419+
requestBody:
19420+
content:
19421+
application/json:
19422+
schema:
19423+
$ref: '#/components/schemas/Security_Endpoint_Management_API_GetProcessesRouteRequestBody'
19424+
required: true
19425+
responses:
19426+
'200':
19427+
content:
19428+
application/json:
19429+
schema:
19430+
$ref: '#/components/schemas/Security_Endpoint_Management_API_GetProcessesRouteResponse'
19431+
description: OK
19432+
summary: Get running processes
19433+
tags:
19434+
- Security Endpoint Management API
19435+
x-metaTags:
19436+
- content: Kibana, Elastic Cloud Serverless
19437+
name: product_name
1943819438
/api/endpoint/action/scan:
1943919439
post:
1944019440
description: |-

oas_docs/output/kibana.yaml

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -21986,42 +21986,12 @@ paths:
2198621986
x-metaTags:
2198721987
- content: Kibana
2198821988
name: product_name
21989-
/api/endpoint/action/running_procs:
21990-
post:
21991-
description: |-
21992-
**Spaces method and path for this operation:**
21993-
21994-
<div><span class="operation-verb post">post</span>&nbsp;<span class="operation-path">/s/{space_id}/api/endpoint/action/running_procs</span></div>
21995-
21996-
Refer to [Spaces](https://www.elastic.co/docs/deploy-manage/manage-spaces) for more information.
21997-
21998-
Get a list of all processes running on an endpoint.
21999-
operationId: EndpointGetProcessesAction
22000-
requestBody:
22001-
content:
22002-
application/json:
22003-
schema:
22004-
$ref: '#/components/schemas/Security_Endpoint_Management_API_GetProcessesRouteRequestBody'
22005-
required: true
22006-
responses:
22007-
'200':
22008-
content:
22009-
application/json:
22010-
schema:
22011-
$ref: '#/components/schemas/Security_Endpoint_Management_API_GetProcessesRouteResponse'
22012-
description: OK
22013-
summary: Get running processes
22014-
tags:
22015-
- Security Endpoint Management API
22016-
x-metaTags:
22017-
- content: Kibana
22018-
name: product_name
22019-
/api/endpoint/action/runscript:
21989+
/api/endpoint/action/run_script:
2202021990
post:
2202121991
description: |-
2202221992
**Spaces method and path for this operation:**
2202321993

22024-
<div><span class="operation-verb post">post</span>&nbsp;<span class="operation-path">/s/{space_id}/api/endpoint/action/runscript</span></div>
21994+
<div><span class="operation-verb post">post</span>&nbsp;<span class="operation-path">/s/{space_id}/api/endpoint/action/run_script</span></div>
2202521995

2202621996
Refer to [Spaces](https://www.elastic.co/docs/deploy-manage/manage-spaces) for more information.
2202721997

@@ -22077,6 +22047,36 @@ paths:
2207722047
x-metaTags:
2207822048
- content: Kibana
2207922049
name: product_name
22050+
/api/endpoint/action/running_procs:
22051+
post:
22052+
description: |-
22053+
**Spaces method and path for this operation:**
22054+
22055+
<div><span class="operation-verb post">post</span>&nbsp;<span class="operation-path">/s/{space_id}/api/endpoint/action/running_procs</span></div>
22056+
22057+
Refer to [Spaces](https://www.elastic.co/docs/deploy-manage/manage-spaces) for more information.
22058+
22059+
Get a list of all processes running on an endpoint.
22060+
operationId: EndpointGetProcessesAction
22061+
requestBody:
22062+
content:
22063+
application/json:
22064+
schema:
22065+
$ref: '#/components/schemas/Security_Endpoint_Management_API_GetProcessesRouteRequestBody'
22066+
required: true
22067+
responses:
22068+
'200':
22069+
content:
22070+
application/json:
22071+
schema:
22072+
$ref: '#/components/schemas/Security_Endpoint_Management_API_GetProcessesRouteResponse'
22073+
description: OK
22074+
summary: Get running processes
22075+
tags:
22076+
- Security Endpoint Management API
22077+
x-metaTags:
22078+
- content: Kibana
22079+
name: product_name
2208022080
/api/endpoint/action/scan:
2208122081
post:
2208222082
description: |-

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1415,7 +1415,7 @@
14151415
"langchain": "1.2.30",
14161416
"langsmith": "0.7.1",
14171417
"launchdarkly-js-client-sdk": "3.9.0",
1418-
"liquidjs": "10.25.6",
1418+
"liquidjs": "10.26.0",
14191419
"lodash": "4.18.1",
14201420
"lru-cache": "11.3.5",
14211421
"lz-string": "1.5.0",

src/platform/packages/private/kbn-esql-editor/src/editor_footer/esql_starred_queries_service.test.tsx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,9 @@ describe('EsqlStarredQueriesService', () => {
161161

162162
await service.addStarredQuery(query);
163163
const buttonWithTooltip = service.renderStarredButton(query);
164-
const button = buttonWithTooltip.props.children.props.children;
165-
expect(button.props.title).toEqual('Remove ES|QL query from Starred');
164+
const tooltip = buttonWithTooltip.props.children.props.children;
165+
const button = tooltip.props.children;
166+
expect(tooltip.props.content).toEqual('Remove ES|QL query from Starred');
166167
expect(button.props.iconType).toEqual('starFill');
167168
});
168169

@@ -176,8 +177,9 @@ describe('EsqlStarredQueriesService', () => {
176177

177178
await service.addStarredQuery(query);
178179
const buttonWithTooltip = service.renderStarredButton(query);
179-
const button = buttonWithTooltip.props.children.props.children;
180-
expect(button.props.title).toEqual('Remove ES|QL query from Starred');
180+
const tooltip = buttonWithTooltip.props.children.props.children;
181+
const button = tooltip.props.children;
182+
expect(tooltip.props.content).toEqual('Remove ES|QL query from Starred');
181183
button.props.onClick();
182184

183185
expect(service.discardModalVisibility$.value).toEqual(true);
@@ -194,7 +196,7 @@ describe('EsqlStarredQueriesService', () => {
194196

195197
await service.addStarredQuery(query);
196198
const buttonWithTooltip = service.renderStarredButton(query);
197-
const button = buttonWithTooltip.props.children.props.children;
199+
const button = buttonWithTooltip.props.children.props.children.props.children;
198200
button.props.onClick();
199201

200202
expect(service.discardModalVisibility$.value).toEqual(false);

src/platform/packages/private/kbn-esql-editor/src/editor_footer/esql_starred_queries_service.tsx

Lines changed: 34 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { v4 as uuidv4 } from 'uuid';
1313
import type { CoreStart } from '@kbn/core/public';
1414
import type { UsageCollectionStart } from '@kbn/usage-collection-plugin/public';
1515
import type { Storage } from '@kbn/kibana-utils-plugin/public';
16-
import { EuiButtonIcon } from '@elastic/eui';
16+
import { EuiButtonIcon, EuiToolTip } from '@elastic/eui';
1717
import { FavoritesClient, StardustWrapper } from '@kbn/content-management-favorites-public';
1818
import { FAVORITES_LIMIT as ESQL_STARRED_QUERIES_LIMIT } from '@kbn/content-management-favorites-common';
1919
import { type QueryHistoryItem, getTrimmedQuery } from '../history_local_storage';
@@ -206,8 +206,8 @@ export class EsqlStarredQueriesService {
206206
>
207207
{/* show startdust effect only after starring the query and not on the initial load */}
208208
<StardustWrapper active={isStarred && trimmedQueryString === this.queryToAdd}>
209-
<EuiButtonIcon
210-
title={
209+
<EuiToolTip
210+
content={
211211
isStarred
212212
? i18n.translate('esqlEditor.query.querieshistory.removeFavoriteTitle', {
213213
defaultMessage: 'Remove ES|QL query from Starred',
@@ -216,35 +216,39 @@ export class EsqlStarredQueriesService {
216216
defaultMessage: 'Add ES|QL query to Starred',
217217
})
218218
}
219-
className={!isStarred ? 'cm-favorite-button--empty' : ''}
220-
aria-label={
221-
isStarred
222-
? i18n.translate('esqlEditor.query.querieshistory.removeFavoriteTitle', {
223-
defaultMessage: 'Remove ES|QL query from Starred',
224-
})
225-
: i18n.translate('esqlEditor.query.querieshistory.addFavoriteTitle', {
226-
defaultMessage: 'Add ES|QL query to Starred',
227-
})
228-
}
229-
iconType={isStarred ? 'starFill' : 'star'}
230-
disabled={!isStarred && this.checkIfStarredQueriesLimitReached()}
231-
onClick={async () => {
232-
this.queryToEdit = trimmedQueryString;
233-
if (isStarred) {
234-
// show the discard modal only if the user has not dismissed it
235-
if (!this.storage.get(STARRED_QUERIES_DISCARD_KEY)) {
236-
this.discardModalVisibility$.next(true);
219+
disableScreenReaderOutput
220+
>
221+
<EuiButtonIcon
222+
className={!isStarred ? 'cm-favorite-button--empty' : ''}
223+
aria-label={
224+
isStarred
225+
? i18n.translate('esqlEditor.query.querieshistory.removeFavoriteTitle', {
226+
defaultMessage: 'Remove ES|QL query from Starred',
227+
})
228+
: i18n.translate('esqlEditor.query.querieshistory.addFavoriteTitle', {
229+
defaultMessage: 'Add ES|QL query to Starred',
230+
})
231+
}
232+
iconType={isStarred ? 'starFill' : 'star'}
233+
disabled={!isStarred && this.checkIfStarredQueriesLimitReached()}
234+
onClick={async () => {
235+
this.queryToEdit = trimmedQueryString;
236+
if (isStarred) {
237+
// show the discard modal only if the user has not dismissed it
238+
if (!this.storage.get(STARRED_QUERIES_DISCARD_KEY)) {
239+
this.discardModalVisibility$.next(true);
240+
} else {
241+
await this.removeStarredQuery(item.queryString);
242+
}
237243
} else {
238-
await this.removeStarredQuery(item.queryString);
244+
this.queryToAdd = trimmedQueryString;
245+
await this.addStarredQuery(item);
246+
this.queryToAdd = '';
239247
}
240-
} else {
241-
this.queryToAdd = trimmedQueryString;
242-
await this.addStarredQuery(item);
243-
this.queryToAdd = '';
244-
}
245-
}}
246-
data-test-subj="ESQLFavoriteButton"
247-
/>
248+
}}
249+
data-test-subj="ESQLFavoriteButton"
250+
/>
251+
</EuiToolTip>
248252
</StardustWrapper>
249253
</TooltipWrapper>
250254
);

src/platform/packages/private/kbn-esql-editor/src/editor_footer/history_starred_queries.tsx

Lines changed: 42 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -317,17 +317,24 @@ export function QueryList({
317317
})}
318318
>
319319
{(copy) => (
320-
<EuiButtonIcon
321-
iconType="copy"
322-
iconSize="m"
323-
onClick={copy}
324-
css={css`
325-
cursor: pointer;
326-
`}
327-
aria-label={i18n.translate('esqlEditor.query.esqlQueriesCopy', {
320+
<EuiToolTip
321+
content={i18n.translate('esqlEditor.query.esqlQueriesCopy', {
328322
defaultMessage: 'Copy query to clipboard',
329323
})}
330-
/>
324+
disableScreenReaderOutput
325+
>
326+
<EuiButtonIcon
327+
iconType="copy"
328+
iconSize="m"
329+
onClick={copy}
330+
css={css`
331+
cursor: pointer;
332+
`}
333+
aria-label={i18n.translate('esqlEditor.query.esqlQueriesCopy', {
334+
defaultMessage: 'Copy query to clipboard',
335+
})}
336+
/>
337+
</EuiToolTip>
331338
)}
332339
</EuiCopy>
333340
</EuiFlexItem>
@@ -419,12 +426,8 @@ export function QueryColumn({
419426
return (
420427
<>
421428
{isExpandable && (
422-
<EuiButtonIcon
423-
onClick={() => {
424-
setIsRowExpanded(!isRowExpanded);
425-
}}
426-
data-test-subj="ESQLEditor-queryList-queryString-expanded"
427-
aria-label={
429+
<EuiToolTip
430+
content={
428431
isRowExpanded
429432
? i18n.translate('esqlEditor.query.collapseLabel', {
430433
defaultMessage: 'Collapse',
@@ -433,13 +436,30 @@ export function QueryColumn({
433436
defaultMessage: 'Expand',
434437
})
435438
}
436-
iconType={isRowExpanded ? 'chevronSingleDown' : 'chevronSingleRight'}
437-
size="xs"
438-
color="text"
439-
css={css`
440-
flex-shrink: 0;
441-
`}
442-
/>
439+
disableScreenReaderOutput
440+
>
441+
<EuiButtonIcon
442+
onClick={() => {
443+
setIsRowExpanded(!isRowExpanded);
444+
}}
445+
data-test-subj="ESQLEditor-queryList-queryString-expanded"
446+
aria-label={
447+
isRowExpanded
448+
? i18n.translate('esqlEditor.query.collapseLabel', {
449+
defaultMessage: 'Collapse',
450+
})
451+
: i18n.translate('esqlEditor.query.expandLabel', {
452+
defaultMessage: 'Expand',
453+
})
454+
}
455+
iconType={isRowExpanded ? 'chevronSingleDown' : 'chevronSingleRight'}
456+
size="xs"
457+
color="text"
458+
css={css`
459+
flex-shrink: 0;
460+
`}
461+
/>
462+
</EuiToolTip>
443463
)}
444464
<span
445465
css={css`

src/platform/packages/private/kbn-esql-editor/src/editor_visor/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ import {
1313
EuiFlexGroup,
1414
EuiFlexItem,
1515
EuiIconTip,
16-
useEuiTheme,
1716
type EuiComboBoxOptionOption,
17+
useEuiTheme,
1818
} from '@elastic/eui';
1919
import { getIndexPatternFromESQLQuery, getESQLAdHocDataview } from '@kbn/esql-utils';
2020
import type { DataView } from '@kbn/data-views-plugin/common';

src/platform/plugins/private/interactive_setup/public/app.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export const App: FunctionComponent<AppProps> = ({ onSuccess }) => {
7676
${euiShadowM};
7777
`}
7878
>
79-
<EuiIcon type="logoElastic" size="xxl" />
79+
<EuiIcon type="logoElastic" size="xxl" aria-hidden={true} />
8080
</span>
8181
<EuiTitle size="m">
8282
<h1>

0 commit comments

Comments
 (0)