Commit graph

85812 commits

Author SHA1 Message Date
Anton Dosov
0175ff7edc [Chrome Workspace] Push flyout breakpoint relative to main container (#216137)
This fixes push flyout to switch to overlay relative to main container
instead of body

https://github.com/user-attachments/assets/c07f1a8b-5eed-4aee-aa4c-a392f9b1eb04

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2025-04-22 12:07:20 -04:00
Anton Dosov
f825c1923b [Chrome Workspace] Fix banner (#216143)
> Addresses #216317 

## Summary

As discussed, just for completion, this PR fixes banner (in a same hacky
way as other chrome elements)

![Screenshot 2025-03-27 at 12 04
16](https://github.com/user-attachments/assets/6de3a169-48e0-49a1-9a0c-677726526eb7)
2025-04-22 12:07:20 -04:00
Anton Dosov
1aa122f3ab [Chrome Workspace] Fix push flyouts (#216059)
## Summary



https://github.com/user-attachments/assets/6b174348-5138-48a3-9a52-103831913bde

This hacks push flyout to push content 

To not touch EUI for now, I listen to style changes that EUI sets on
body, then set them to css variable and use them to push content by push
flyout

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2025-04-22 12:07:20 -04:00
Clint Andrew Hall
ab1170cc4b Kibana Workspace exploration 2025-04-22 12:07:13 -04:00
Nathan Reese
678b53a1a7
[embeddable] update DefaultPresentationPanelApi to define parentApi as unknown (#218668)
DefaultPresentationPanelApi should define parentApi as unknown.

`ReactEmbeddableRenderer` renders panels with `PresentationPanel`.
`PresentationPanel` takes `api: DefaultPresentationPanelApi` as a prop
and `DefaultPresentationPanelApi` should not define ParentApi type more
precisely then its defined in `ReactEmbeddableRenderer`.
`ReactEmbeddableRenderer` defines parent as `ParentApi extends
HasSerializedChildState<SerializedState> =
HasSerializedChildState<SerializedState>`.

---------

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2025-04-22 08:54:50 -06:00
James Gowdy
60af3ff3d5
[ML] Improving anomaly charts object safety (#217552)
Adds checks for the values `__proto__` and `prototype` when reading
detector fields to reduce the risk of prototype pollution.
2025-04-22 15:52:12 +01:00
Kibana Machine
8ae3783958 skip failing test suite (#218820) 2025-04-22 16:34:49 +02:00
Kibana Machine
3777214a38 skip failing test suite (#218819) 2025-04-22 16:34:43 +02:00
Konrad Szwarc
9165a1232a
[EDR Workflows][Insights][Spaces] Check current space on workflow insights endpoints (#217987)
This PR introduces space awareness to internal Defend Insights APIs.
While these endpoints are not exposed through the UI, they can still be
queried via Dev Tools. The goal is to prevent users from accessing
insights or related data tied to agents outside of their current space.

In the `security_solution` plugin, space validation is added to:
- `GET /internal/api/endpoint/workflow_insights`
- `PUT /internal/api/endpoint/workflow_insights/{insightId}`

In the `elastic_assistant` plugin, similar validation is enforced via
service-level callbacks:
- `POST /internal/elastic_assistant/defend_insights`
- `GET /internal/elastic_assistant/defend_insights`
- `GET /internal/elastic_assistant/defend_insights/{id}`

These use `onBeforeCreate` and `onAfterFetch` hooks to enforce space
checks during insight creation and retrieval.

The validation works by collecting all agent IDs involved in the request
- whether provided directly or pulled via search queries - and verifying
that each one belongs to the current space. This is done using the Fleet
service, which throws if any of the agents are not found in the space.
If all agents are valid, the request continues; otherwise, an error is
returned.
2025-04-22 16:33:04 +02:00
Nicolas Chaulet
120ae3d57c
[Fleet] Improve handling of over provision agentless errors (#218481) 2025-04-22 10:28:31 -04:00
Cauê Marcondes
f836f82aca
[Discover] Update embeddable waterfall to focus on the selected span/… (#218599)
Uses new [new waterfall
embeddable](https://github.com/elastic/kibana/pull/217679) that focus on
the selected item.

Transaction:
<img width="1134" alt="Screenshot 2025-04-17 at 14 35 23"
src="https://github.com/user-attachments/assets/848bd236-a74e-4cc6-b1e7-bd10e8902df2"
/>

Span:
<img width="1322" alt="Screenshot 2025-04-17 at 14 35 39"
src="https://github.com/user-attachments/assets/617fc7a7-a88f-4e98-89de-37b49f52626c"
/>
2025-04-22 11:23:14 -03:00
Milosz Marcinkowski
8caec69036
[APM][OTel] Fix span url link when transactionId missing in Span Links (#218232)
Closes #214557

### Summary

Use `traceId` to generate url link to Span as fallback when
`transactionId` is missing.

### How to test

1. Run the following synthtrace scenario: `node scripts/synthtrace
span_links.ts --live --uniqueIds --clean --logLevel=debug --scenarioOpts
pipeline=apmToOtel`
2. Go to **Service** -> **Transactions** -> in **Transaction waterfall**
click **Span Links** label -> select **Outgoing links** from downdown ->
check if **Span** link works


https://github.com/user-attachments/assets/c22fdc5e-7ba9-4817-a78b-bf5fb9a53651

---------

Co-authored-by: jennypavlova <dzheni.pavlova@elastic.co>
2025-04-22 15:24:21 +02:00
Kevin Delemme
56b3e21fc3
chore(slo): cleanup route dependencies (#218619) 2025-04-22 09:20:36 -04:00
Pablo Machado
b623001080
[SecuritySolution] Bootstrap Privileged User Monitoring page (#217350)
## Summary

Bootstrap Privileged User Monitoring page. This page is hidden behind
`privilegeMonitoringEnabled` flag.

![Screenshot 2025-04-16 at 13 28
56](https://github.com/user-attachments/assets/f1c79cfb-a7b3-4dfb-a1b3-6259f00e6a19)



### Included
* Add the Privileged User Monitoring page content according to design
* Link integrations to the integrations page
* Find index modal
* New API to search for compatible indices
* It also renames the navigation title to only have the first letter
capitalised.

### Not Included
* The navigation is already implemented by
https://github.com/elastic/kibana/pull/217180
* The video introduction
* The final API call in the "choose index" is out of scope for this
issue.
* The CSV upload functionality is entirely out of scope for this ticket.
* The "Sample Dashboard"
* The link to docs

### How to test it?
* Enable `privilegeMonitoringEnabled` flag.
* Start kibana.
* Use the menu to navigate to the Priv User monitoring page

### Checklist

Check the PR satisfies following conditions. 

Reviewers should verify this PR satisfies this list as well.

- [x] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)
- [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
- [x] The PR description includes the appropriate Release Notes section,
and the correct `release_note:*` label is applied per the
[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2025-04-22 15:00:14 +02:00
Justin Kambic
cc18709d01
[Observability] Make create annotations form keyboard navigable (#217918)
## Summary

Partially addresses #210531.

This doesn't fully fix the ticket linked, as elements that control the
annotation look in the second half of the form still trigger re-renders.
This means the focus will still be lost when those elements are
modified.

This is going to require significant refactoring of this form, but this
patch will at least make the elements reachable via tabbing.

The custom `onBlur` removed here doesn't seem to impact the form and the
rendering issues are prominent in any case.

Co-authored-by: Dominique Clarke <dominique.clarke@elastic.co>
2025-04-22 08:45:10 -04:00
Elena Shostak
cbc153f928
[CodeQL] Updated branches for scanning (#218787)
## Summary

Updated branches for scanning.
2025-04-22 14:24:25 +02:00
Alexey Antonov
614343e18b
fix: [IngestPipelines:Edit pipeline page]Flyouts, dialog modals missing title from announcement (#218791)
Closes: #218128

**Description**
Dialog modal, flyout, field visible title should be announced for the
users, especially using assistive technology to know what dialog modal,
flyout opened, what field is active and what is needed to enter in it.

**Changes made:**
1. Added required aria-attributes for mentioned places
2025-04-22 14:06:47 +02:00
Kylie Meli
9ddc1569d0
[Fleet] skipping agent setup steps when agentless by default (#218676)
## Summary

Updating the flow so that users do _not_ see the multi-page setup (setup
an agent splash screen and instructions) if
`xpack.fleet.agentless.isDefault: true` for the AI4DSOC project.

<img width="500" alt="Screenshot 2025-04-18 at 4 12 50 PM"
src="https://github.com/user-attachments/assets/559235e4-f0a7-4bec-9f84-000b04ac0606"
/>

## Note

This is a short term solution for AI4DSOC until we have something more
permanent in https://github.com/elastic/security-team/issues/11628

## Screen recordings

[AI4DSOC]


https://github.com/user-attachments/assets/d62be4a2-d2c7-4c99-9bcf-6dc05a822da0

[Otherwise]


https://github.com/user-attachments/assets/1bf87305-bf6d-4707-92a7-32a6d52c9d23

___ 
Relates 
- https://github.com/elastic/security-team/issues/11789
- https://github.com/elastic/security-team/issues/11628
- https://github.com/elastic/kibana/pull/216535
2025-04-22 07:58:45 -04:00
Elena Stoeva
4776e9bade
[Console] Fix context menu test for opening documentation (#218551)
Fixes https://github.com/elastic/kibana/issues/218297
Fixes https://github.com/elastic/kibana/issues/143229

## Summary

This PR fixes the Console tests for opening documentation which were
failing because the doc link
https://www.elastic.co/guide/en/elasticsearch/reference/current/search-search.html
is now redirecting to
https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-search.
2025-04-22 13:44:10 +03:00
Elena Stoeva
09d977a764
[Snapshot Restore] Remove deprecated canned ACL option (#218437)
## Summary

This PR removes the `log-delivery-write` canned ACL option from the AWS
S3 repository form as this option is no longer supported as per
https://github.com/elastic/elasticsearch/pull/126843/files#diff-d5f1f42f679abdf451569bdb5144ff5614fc4e6a9e43cc1644787f646f681b94.

How to test:
1. Start Es and Kibana
2. Navigate to Snapshot Restore page
3. Start creating a new repository, choose the AWS S3 option.
4. Click on the Canned ACL dropdown and verify that it doesn't have the
`log-delivery-write` option.

Previously:

<img width="1490" alt="Screenshot 2025-04-16 at 11 52 47"
src="https://github.com/user-attachments/assets/fc97b536-91e9-4402-bb10-aad9519c7bae"
/>

Co-authored-by: Matthew Kime <matt@mattki.me>
2025-04-22 13:43:54 +03:00
Sergi Romeu
2dea36a0a6
[ObsUX][Infra] Filter out null values from sourceDataStreams (#218772)
## Summary

Part of #213045

This PR fixes an issue when the `observability:entityCentricExperience`
flag is enabled.
By some reason, we may get null values in `sourceDataStreams` and when
we try to validate it with the zod schema, it breaks.
2025-04-22 12:37:09 +02:00
Alexey Antonov
ff25581c34
fix: [Platform:Dashboards:DashboardEditMode] Observability embeddables get announced incorrectly (#217674)
Closes: #215689

**Description:**
When user clicks on add panel and then selects any of the observability
embeddable panels (SLO burn rate, SLO Overview, SLO Alerts, SLO Error
budget, Monitors overview, Monitors stats), Kibana announces them as
"you are in a modal dialog. Press escape or tap click outside the
dialog....This doesn't give non-sighted user context about the add panel
action they are trying to execute.

**Changes Made:**
1. Added `aria-labelledby={flyoutTitleId}` for mentioned places
2025-04-22 12:34:29 +02:00
florent-leborgne
9e082dd1ff
[Docs] Release notes ID structure template (#218782)
For future release notes, section IDs should follow a specific pattern.
This PR updates the ID template in related files.

Rel: https://github.com/elastic/docs-content/issues/1152
2025-04-22 12:31:15 +02:00
Alexey Antonov
3ad8bad478
fix: [Platform:StackManagement:IngestPipelines:Create pipeline page]Switch button missing title from announcement (#218214)
Closes: #217971
Rework of: https://github.com/elastic/kibana/pull/205604

**Description**
This update improves accessibility by ensuring that dialog modals,
flyouts, and field titles are properly announced for users—particularly
those using assistive technologies. It ensures users are clearly
informed about which dialog or flyout has opened, which field is active,
and what input is expected.

**Changes Made**
- Reverted a regression introduced in
[#205604](https://github.com/elastic/kibana/pull/205604), which involved
incorrect usage of `EuiSwitch`. The component now uses the default
`EuiSwitch` behavior as intended.

- Updated the Cases page UI to better align with the EUI style guide.

**Screenshots**

- Cases Page

<img width="947" alt="Cases Page Screenshot"
src="https://github.com/user-attachments/assets/0b8d7fd4-543f-4751-a17b-3b774c0e1c8c"
/>

- Ingest Pipelines Page

<img width="947" alt="Ingest Pipelines Page Screenshot"
src="https://github.com/user-attachments/assets/78185612-9a01-4227-a1a1-b928e848ca78"
/>
2025-04-22 12:26:56 +02:00
Sid
8c8c6d16ef
Use @kbn/handlebars and compileAST over handlebars.compile (#218449)
## Summary

Change usage of Handlebars.compile across Kibana to use
`@kbn/handlebars` and `compileAST`

### Note for reviewers:
There should be no change for the rendered output where it's used.
Wherever there were tests, i ensured they were passing after making the
change.

### Checklist

Check the PR satisfies following conditions. 
Reviewers should verify this PR satisfies this list as well.

- [ ] [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

---------

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2025-04-22 11:46:05 +02:00
Alejandro Fernández Haro
6d69aad802
[ES 9.0] Remove body workaround (@elastic/security-threat-hunting) (#217224) 2025-04-22 11:16:29 +02:00
Tomasz Ciecierski
fe31818a3b
[AI4DSOC] Redirect from Entity Analytics pages on lower tiers (#218416) 2025-04-22 11:14:37 +02:00
Julia Bardi
ea855c8dba
[Fleet] Sync integration status UI (#218389)
## Summary

Closes https://github.com/elastic/kibana/issues/217154

To test locally:
- Follow this guide to set up 2 clusters locally:
https://github.com/elastic/kibana/blob/main/x-pack/platform/plugins/shared/fleet/dev_docs/local_setup/remote_clusters_ccr.md
- Install a few integrations on the main cluster and create a few custom
component templates and ingest pipelines
 - Go to Fleet Settings, check the Sync status in the Output table

### Screenshots

Output table

<img width="1096" alt="image"
src="https://github.com/user-attachments/assets/047b516a-b32a-4827-a943-de1119d45dbe"
/>

Sync integrations status flyout 
- Added mock response to show the different UI states
- Added `Close` button instead of `Cancel` and `Done` because there is
no action to take on the flyout, it seemed unnecessary

<img width="598" alt="image"
src="https://github.com/user-attachments/assets/7cc70721-a765-488b-8191-a8a0aaefe4a1"
/>

 Tooltips

<img width="532" alt="image"
src="https://github.com/user-attachments/assets/387cdf84-e807-4287-8802-4a512c756a3a"
/>
<img width="343" alt="image"
src="https://github.com/user-attachments/assets/3c947361-5de8-40c2-bab8-a73e6321e9a8"
/>

Top level error without any integrations

<img width="605" alt="image"
src="https://github.com/user-attachments/assets/78d9a79a-fac5-4af2-9745-46dbdbe956a2"
/>




### Checklist

- [x] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)
- [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
2025-04-22 10:58:17 +02:00
Tomasz Ciecierski
6356f2cdf1
[AI4DSOC] Add possibility to disable Stack Rules, Rules Settings and Maintenance window based on Serverless Tier (#214586) 2025-04-22 10:50:48 +02:00
Kibana Machine
caa9b3ff45
[ES|QL] Update grammars (#218706)
This PR updates the ES|QL grammars (lexer and parser) to match the
latest version in Elasticsearch.

---------

Co-authored-by: Stratoula Kalafateli <efstratia.kalafateli@elastic.co>
2025-04-22 10:38:54 +02:00
Kevin Lacabane
6a569398ac
[streams][content pack] archive format and portable dashboards (#217288)
## Summary

Allows one to export and import content packs in archive format. The
format follows the integration content package's format so it becomes
possible to import existing integration packages.

Content packs only support dashboard assets at the moment.
A pattern replacement logic has been implemented for dashboards and
referenced data views:
- at export time, any pattern matching the source stream will be
replaced with a placeholder. Other patterns will remain as-is unless
user explicitly ask to replace them
- at import time, the placeholders are replaced with the target stream
pattern

For example, if a dashboard is first exported from stream `logs.nodejs`
and reads data from patterns `logs.nodejs` and `logs.nodejs.prod`, the
patterns will be updated to `logs.ruby` and `logs.ruby.prod` when
imported into `logs.ruby` stream.

The relevant UI components are hidden behind a feature flag, set the
following in `kibana.dev.yml` to enable them:
`feature_flags.overrides.featureFlagsStreams.contentPackUIEnabled: true`



https://github.com/user-attachments/assets/9fb07daf-9fb9-4c62-9f5b-387e1833eaf0

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: tommyers-elastic <106530686+tommyers-elastic@users.noreply.github.com>
2025-04-22 10:27:52 +02:00
Francesco Fagnani
b936b4719e
[Synthetics] When changing condition type of a monitor status rule other conditions are not changed (#216426)
This PR closes #197786 .



https://github.com/user-attachments/assets/85c92b09-f477-4e42-9fb7-a8143876e079
2025-04-22 10:21:48 +02:00
Francesco Fagnani
af381920ee
[Synthetics] Fixed monitor history histogram and group by location issue (#218550)
This PR closes #217105 and closes #217118 



https://github.com/user-attachments/assets/4426c5bc-dfda-483c-a974-3a3d6832d6c7

---------

Co-authored-by: Dominique Clarke <dominique.clarke@elastic.co>
2025-04-22 09:28:35 +02:00
Rodney Norris
f8354b0770
[Search] test: es3 navigation fix & updates (#218738)
## Summary

Fixed the navigation tests for es3 to close the console tour, in
addition I abstracted the side nav test cases to be more uniform and
wait for a specific test object on the page before moving to the next
side nav link.

I tested these against MKI

Closes #218719

### 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
- [x] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed
2025-04-22 08:51:47 +02:00
Kibana Machine
09eb9e0c39
[api-docs] 2025-04-22 Daily api_docs build (#218757)
Generated by
https://buildkite.com/elastic/kibana-api-docs-daily/builds/1050
2025-04-22 08:19:24 +02:00
Philippe Oberti
9a66ec9348
[AI4DSOC] Change the Cases page to use the AI for SOC alerts table (#218742)
## Summary

While testing, we realized that the Cases alerts tab was showing the
`DetectionEngineAlertsTable` and the normal alert details flyout, even
in the AI4DSOC tier. This PR updates the logic to show the correct
alerts table and the correct alert details flyout depending on the tier:
- AI4DSOC will show the same table and flyout as the ones shown in the
Alert summary page
- the other tiers will continue showing the same table and flyout we
show today under the Alerts page or any other pages
(`DetectionEngineAlertsTable`)

Switching the table allows us to tackle at once all the other related
issues:
- wrong flyout was being shown
- too many row actions were being shown
- wrong default columns, and wrong cell renderers

### Notes

The approach is not ideal. We shouldn't have to check for the following
```typescript
const AIForSOC = capabilities[SECURITY_FEATURE_ID].configurations;
```
in the code, but because of time constraints, this was the best
approach.
[A ticket](https://github.com/elastic/kibana/issues/218741) has been
opened to make sure we come back to this and implement the check the
correct way later.

Current (wrong) behavior


https://github.com/user-attachments/assets/5d769f45-26d9-4631-af95-de38b0797ff9

New behavior


https://github.com/user-attachments/assets/1f9a2e4d-50b7-40e6-8efa-1a0cfdbf5c9a

## How to test

This needs to be ran in Serverless:
- `yarn es serverless --projectType security`
- `yarn serverless-security --no-base-path`

You also need to enable the AI for SOC tier, by adding the following to
your `serverless.security.dev.yaml` file:
```
xpack.securitySolutionServerless.productTypes:
  [
    { product_line: 'ai_soc', product_tier: 'search_ai_lake' },
  ]
```

### 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

Relates to https://github.com/elastic/security-team/issues/11973

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2025-04-22 01:39:48 +02:00
Devon Thomson
154b14da20
[Dashboard] Remove duplicate ID (#215575)
Removes a holdover extra `id` key from Dashboard's explicit input
2025-04-21 18:15:20 -04:00
Lisa Cawley
4e6fa9e37f
[DOCS] Use new ML and transform URLs in doc link service (#217930)
Co-authored-by: Robert Jaszczurek <robert.jaszczurek@elastic.co>
2025-04-21 22:09:43 +02:00
wajihaparvez
c7fa2b43c3
[Docs] Add link to dependencies page (#218588)
## Summary

Adding in a page that was missing from the new docs.

Closes: [#667](https://github.com/elastic/platform-docs-team/issues/667)

---------

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2025-04-21 14:54:05 -04:00
Philippe Oberti
c8cbe87040
[AI4DSOC] Change the Attack Discovery page to use the AI for SOC alerts table (#218736)
## Summary

While testing, we realized that the Attack Discovery alerts tab was
showingn the `DetectionEngineAlertsTable`, even in the AI4DSOC tier.
This PR updates the logic to show the correct alerts table depending on
the tier:
- AI4DSOC will show the same table as the Alert summary page
- the other tiers will continue showing the same table as the Alerts
page (`DetectionEngineAlertsTable`)

Switching the table allows us to tackle at once all the other related
issues:
- wrong flyout was being shown
- too many actions were being shown
- wrong default columns, and wrong cell renderes

### Notes

The approach is not ideal. We shouldn't have to check for the following
```typescript
const AIForSOC = capabilities[SECURITY_FEATURE_ID].configurations;
```
in the code, but because of time constraints, this was the best
approach.
[A ticket](https://github.com/elastic/kibana/issues/218731) has been
opened to make sure we come back to this and implement the check the
correct way later.

Current (wrong) behavior


https://github.com/user-attachments/assets/c41a25f1-ae9a-4bbf-9c02-9b1054f3a0e3

New behavior


https://github.com/user-attachments/assets/0eb20a2f-ba00-42c0-9353-7ac788c9bea0

### 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

Relates to https://github.com/elastic/security-team/issues/11973
2025-04-21 20:22:15 +02:00
Steph Milovic
361d38acfc
[AI4SOC] AI settings page (#217373) 2025-04-21 18:31:55 +02:00
Viduni Wickramarachchi
766cd47176
[Obs AI Assistant] Unskip summarize tests (#218728)
Closes https://github.com/elastic/kibana/issues/218497

## Summary

The summarize tests were skipped last week because they were failing and
blocking pipelines.

These tests have started to fail after the merge of
https://github.com/elastic/elasticsearch/pull/126635
These changes were reverted last week in
https://github.com/elastic/elasticsearch/pull/127075

Therefore, this PR unskips the tests.

### Checklist

- [x] The PR description includes the appropriate Release Notes section,
and the correct `release_note:*` label is applied per the
[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
2025-04-21 12:07:54 -04:00
Matthew Kime
fcee0a8c73
[upgrade assistant] Stop rollup jobs before reindexing - forwardport to 9.1 (#218049)
## Summary

forward port of https://github.com/elastic/kibana/pull/212815

---

This PR improve support for rollup indices. Rollup indices can be
handled like normal indices but jobs should be stopped before reindexing
begins or index is marked read only. Also handles case where the rollup
job is already stopped.

To review: Mark the following read only and make sure rollup jobs are
handled as appropriate: Rollup index with and without job running,
normal index.

Follow up to https://github.com/elastic/kibana/pull/212592 and
https://github.com/elastic/kibana/pull/214656

Closes: https://github.com/elastic/kibana/issues/211850
2025-04-21 16:48:08 +02:00
Tre
a6ae117dd3
[SKIP ON MKI] .../navigation.ts (#218720)
## Summary

see details: https://github.com/elastic/kibana/issues/218719
2025-04-21 09:45:42 -04:00
elastic-renovate-prod[bot]
ad084ae065
Update OpenFeature (main) (#218569)
Co-authored-by: elastic-renovate-prod[bot] <174716857+elastic-renovate-prod[bot]@users.noreply.github.com>
Co-authored-by: Alejandro Fernández Haro <alejandro.haro@elastic.co>
2025-04-21 15:27:25 +02:00
Jon
9b90fa5197
[build] Dockerfile feedback (#217354)
Addresses feedback from
https://github.com/docker-library/official-images/pull/18692.
https://buildkite.com/elastic/kibana-artifacts-snapshot/builds/6005
2025-04-21 07:44:22 -05:00
Karen Grigoryan
8b7a865b52
[Security Solution][Explore][Tests] Migrate from enzyme to rtl (#218134)
addresses #217294

This PR migrates all existing enzyme usage to react-testing-library.
This PR is not attempting to refactor or move from unit testing to
integration style testing with less mocks. In fact I add even more mocks
in some places where after moving out of enzyme things start to blow up
because enzyme structure was hiding the lack of mocks.

Here is essence of the change:

- all shallow toMatchSnapshot tests have been migrated to render()
toMatchSnapshot() tests which has caused an expected spike in amount of
changes. For now I am leaving it as is. Later we can decide on what to
do (either selective mock underlying implementations to shrink snapshot
sizes or cut them altogether in favor of specific element existence
assertions

- some dead tests were cut that were passing with enzyme. Enzyme is
testing the component tree not the dom tree giving a false sense of
stuff being rendered when it's not, that's why we have to cut it out.

- in some places I use `expect(container.children[0]).toMatchSnapshot()`
as a viable alternative for not introducing an unnecessary
`data-test-subj` locator on the root element. The result is the same.

- wherever possible I replaced selectors usage in tests to
`screen.getByTestId` and where not to `container.querySelector` or
`document.querySelector`(for global selection)

- other matchers were transitioned as is
2025-04-21 13:20:29 +02:00
Arturo Lidueña
33993b7123
[Obs AI Assistant]fixing error - Display results and Visualize query Bedrock Error (#218213)
### Fix: Bedrock Streaming Error on ES|QL Actions

#### Summary

When an ES|QL is generated, we present two action buttons:
- Visualize Query
- Display Results

These actions were not working as expected when using Bedrock as the
model provider.

#### Error Details
```txt
Encountered error in Bedrock stream of type validationException messages.8: Did not find 1 `tool_result` block(s) at the beginning of this message. Messages following `tool_use` blocks must begin with a matching number of `tool_result` blocks.
```
#### Root Cause

We were sending a tool_use block in the assistant message without
immediately following it with the corresponding tool_result block. This
violates Bedrock’s message protocol.
2025-04-21 10:51:18 +02:00
Christiane (Tina) Heiligers
1fe09dcff4
RenamesrenderReactTestingLibraryWithI18n to renderWithI18n (#218371)
## Summary

This PR only renames the helper, no test implementations were changed.

Why now?

Migrating tests from Enzyme to RTL means that all usage of
`mountWithIntl` has to change and will likely be replaced by the helper
that wraps RTL render with I18n. [A shorter name improves devEx](url).

ATM, consumption is limited to a few tests, reducing the number of
codeowner reviews required.

### Identify risks

- [x] In progress work and open PRs might fail. Updating from main will
prompt an undefined function that will need to be renamed.

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2025-04-21 10:21:59 +03:00
Kibana Machine
e770e2302c
[api-docs] 2025-04-21 Daily api_docs build (#218708)
Generated by
https://buildkite.com/elastic/kibana-api-docs-daily/builds/1049
2025-04-21 08:12:08 +02:00