Commit graph

84965 commits

Author SHA1 Message Date
Ilya Nikokoshev
2b4776abaa
Merge branch 'main' into renovate/main-oas 2025-03-25 00:42:11 +01:00
Efe Gürkan YALAMAN
01a4ff72e7
[Synonyms] Update Synonyms Text and Enable (#215618)
## Summary

Text in various places updated.
Added some telemetry that was decided.
Small visual changes on empty prompt page.
Added a new example in a collapsible accordion.
Also enables the synonyms plugin by default.

<img width="1637" alt="Screenshot 2025-03-24 at 10 36 26"
src="https://github.com/user-attachments/assets/b02ef4a7-a18f-44b5-a845-d2566102e8ea"
/>
<img width="1627" alt="Screenshot 2025-03-24 at 10 36 40"
src="https://github.com/user-attachments/assets/f7ea1c5e-d82e-497a-b215-5eab7190f041"
/>
<img width="1634" alt="Screenshot 2025-03-24 at 10 36 52"
src="https://github.com/user-attachments/assets/d410bcc1-c075-4b5a-bcb7-11f97c64ffb9"
/>
<img width="825" alt="Screenshot 2025-03-24 at 10 37 00"
src="https://github.com/user-attachments/assets/8a9e7567-5dbd-4238-8f8b-297b78a4dcac"
/>




### 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)
- [ ] [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
- [ ] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed
- [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>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2025-03-25 00:30:55 +01:00
Ilya Nikokoshev
07d57cef56
Merge branch 'main' into renovate/main-oas 2025-03-24 23:42:50 +01:00
James Gowdy
51ab081e94
[ML] Fixing permission to view ML nodes (#215503)
When setting the `canViewMlNodes`, we were assuming a serverless
environment based on whether all ML features (ad, dfa, nlp) were
enabled. When this was originally implemented no serverless project had
all three features enabled.
Since then the security project has
[changed](https://github.com/elastic/kibana/pull/175358) to include all
three features.

This PR add an explicit check for serverless and disables
`canViewMlNodes` if it is true.

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2025-03-24 23:07:02 +02:00
Marshall Main
58190211b8
[Security Solution][Detection Engine] Remove experimentalFeatures, bulkCreateFactory, enrichEvents factory (#214856)
## Summary

Another follow up to https://github.com/elastic/kibana/pull/212694

- Removes `alertWithSuppression` from `sharedParams` since it's already
available on `services`
- Updates the type of `services` throughout DE executor logic to
properly represent that it has `alertWithSuppression`
- Removes `experimentalFeatures` as a param from functions that no
longer need it
- Converts `bulkCreate` from a factory to a const function
- Converts `enrichAlerts` from a factory to a const function - but
enrichment logic is still passed to the persistence functions as a
function. Now it's just one layer of factories instead of two.
- Renames types related to `enrichAlerts` to match the function
names/responsibilities better

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2025-03-24 16:08:45 -04:00
Pablo Machado
6cdbeb9537
[SecuritySolution] Fix host details flyout left panel tabs (#215672)
## Summary

Fix Unable to switch between Risk Contributions and Insights on host
details flyout.


**Pre Conditions**
1. Alerts should be available on Kibana.
2. Entity Risk Score must be enabled.

**Steps**
1. Navigate to a page where the flyout is available.
3. For any Entity, open details flyout
4. Expand Details flyout (left panel).
5. Observe that the user cannot switch between `Risk Contributions` and
`Insights` tabs.

**Expected Result**
The user should be able to switch between `Risk Contributions` and
`Insights` tabs.

**Screen Recording**


https://github.com/user-attachments/assets/3aae6291-5b5b-49a4-83c2-ac657e4e9524


### Checklist

Check the PR satisfies following conditions. 

Reviewers should verify this PR satisfies this list as well.

- [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-03-24 14:47:15 -05:00
Georgii Gorbachev
a9106c6990
[Security Solution] Rework test plan for importing prebuilt rules (#213434)
**Epic:** https://github.com/elastic/kibana/issues/174168
**Partially addresses:**
https://github.com/elastic/kibana/issues/202079,
https://github.com/elastic/kibana/issues/210358

## Summary

We started to rework and introduce functional changes to our existing
test plans for prebuilt rule customization, upgrade, and export/import
workflows.

Specifically, this PR:

- Restructures the test plan, introduces a more fine-grained list of
sections.
- Rewrites almost all the existing scenarios. In most cases it boils
down to splitting a scenario into 2+ more specific scenarios, where each
describes _exactly_ what happens in the GIVEN and THEN sections. This is
very important, as it:
- makes these scenarios ready to be implemented right away: 1 scenario =
1 test to write
  - helps with ensuring that we covered edge cases
- Adds new scenarios for handling missing base versions according to
[#210358](https://github.com/elastic/kibana/issues/210358).
- Adds a placeholder section for licensing scenarios according to
[#11502](https://github.com/elastic/security-team/issues/11502).
- Removes scenarios for the `overwrite` request parameter - this is
common importing logic which is not related to prebuilt rules.
- Addresses my own comments from [this
review](https://github.com/elastic/kibana/pull/206893#pullrequestreview-2633863218).

The new test plan should be in line with the changes discussed in
https://github.com/elastic/kibana/issues/210358.
2025-03-24 19:00:36 +00:00
Nathan Reese
6b9d69ed49
[vega] optimzie async chunks (#215762)
### Before
<img width="300" alt="Screenshot 2025-03-24 at 10 33 27 AM"
src="https://github.com/user-attachments/assets/d35b7b2e-9b7b-4521-9d82-a1146fb65d49"
/>

### After
<img width="300" alt="Screenshot 2025-03-24 at 10 32 30 AM"
src="https://github.com/user-attachments/assets/16924c84-2b66-40f1-8b57-7f153058c7c5"
/>
2025-03-24 12:29:52 -06:00
Brad White
31aa294124
Storybook 8 Upgrade Follow Up (#214684)
## Summary

These Stories were missed in [Upgrade to Storybook 8
(#195148)](https://github.com/elastic/kibana/pull/195148) and should be
migrated to the same format as other stories for consistency and to make
future migrations easier. They technically work in SB8, I forgot to run
the migration script again later on while working on the original PR.

The changes have already been backported to #214680 and #214681
2025-03-24 20:28:19 +02:00
Kevin Delemme
80c782d863
chore(slo): colocate state to avoid react re-rendering (#215558) 2025-03-24 14:25:02 -04:00
Agustina Nahir Ruidiaz
f723aa25d9
[Security Solution] Adding video links to the onboarding cards selector (#215215)
## Summary

This PR adds the provided onboarding videos to the corresponding
thumbnail cards in the onboarding experience.
https://github.com/elastic/kibana/issues/215212
The videos have been placed as follows:


https://github.com/user-attachments/assets/38254883-6a7d-46ac-bac7-df1334d66e3f


`Rules Card`

[Video 1](https://videos.elastic.co/watch/2q7LSLrsC8qEFQUNHFu9zf)
[Video 2](https://videos.elastic.co/watch/jpy1CcpBuowsA4a8t7gNDE)

`Alerts Card`

[Video 1](https://videos.elastic.co/watch/Qgt9SCJqLmMN7P289ffSo4)
[Video 2](https://videos.elastic.co/watch/nXC8MSkzDBWajoXWJ3QeQp)
[Video 3](https://videos.elastic.co/watch/VSvxJeSQzrFN9K6hdeLz58)
[Video 4](https://videos.elastic.co/watch/evxFZ8dqfjH6SGPtRriyE6)

`Dashboards Card`

[Video 1](https://videos.elastic.co/watch/5UvJBpzFVoEfpDLnjzTbfn)
[Video 2](https://videos.elastic.co/watch/SpKecbJxeYWzXVpGvgxMah)

### Checklist

Check the PR satisfies following conditions. 

- [x] UI Layout: Verify that the added videos do not break the existing
layout or cause issues.

Co-authored-by: Michael Olorunnisola <michael.olorunnisola@elastic.co>
2025-03-24 20:23:49 +02:00
kibanamachine
938cef4672 [CI] Auto-commit changed files from 'node scripts/notice' 2025-03-24 18:14:24 +00:00
Elastic Machine
b8e6698212
Merge branch 'main' into renovate/main-oas 2025-03-24 20:04:25 +02:00
Alex Szabo
7120074ec3
[ci] More info to test annotation failure logging (#215515)
## Summary
While annotating test failures, we're seeing increased amount of errors
like this:
```
2025-03-21 13:52:32 INFO   Artifact uploads completed successfully
--
  | Annotate test failures error Request failed with status code 404
  | HTTP Error Response Status 404
  | HTTP Error Response Body { message: 'Not Found' }
  | user command error: exit status 10
```

It would be nicer to show a bit more from the error to help debugging.
2025-03-24 19:01:32 +01:00
Tiago Costa
dea190c0ef
skip flaky suite (#203898) 2025-03-24 17:45:49 +00:00
Drew Tate
19f6a20e27
[ES|QL] Remove command signatures (#215541)
## Summary

Part of https://github.com/elastic/kibana/issues/195418

This removes the final deprecated property from the command definitions:
the signature.

Most of the work was moving validation logic out of the generic paths
into command-specific validation methods. This exercise confirmed the
fact that many of the properties on the command signatures were added to
support something in one or two commands and did not apply to the vast
majority. Now, it is clearer what code applies to what commands.


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

---------

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2025-03-24 19:05:17 +02:00
Gerard Soldevila
18a138bb2c
Fix deprecations API tests (#215484)
## Summary

Addresses https://github.com/elastic/kibana/issues/215216

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2025-03-24 18:49:42 +02:00
Sergi Massaneda
2c98a2244f
[Security Solution] Enable SIEM migrations in serverless (#214708)
## Summary

Enables the SIEM Migrations feature in serverless. The experimental flag
will be cleaned later.


> [!NOTE]
To release this feature as planned (Friday 28th March 2025), this PR
needs to merge between Monday **24** and Thursday **27**


### Screenshot


![siem_migrations](https://github.com/user-attachments/assets/e20e2dc9-77cb-4460-8da7-c5a83909d378)

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2025-03-24 17:17:28 +01:00
Sergi Romeu
7512aa30fa
[A11y][APM] Add aria-label to "Try our new inventory" button (#215633)
## Summary

Fixes #210253

This PR adds an `aria-label` with the same content as the tooltip to
solve the "Button must have a discernible text" A11y critical issue.

## How to test
1. Download the [axe
devtools](https://chromewebstore.google.com/detail/axe-devtools-web-accessib/lhdoppojpmngadmnindnejefpokejbdd)
2. Enable ECO feature flag
3. Go into service inventory and run the scanner from axe devtools
4. You should see a critical error
5. Checkout this branch
6. Error should be solved

---------

Co-authored-by: Carlos Crespo <crespocarlos@users.noreply.github.com>
2025-03-24 18:12:15 +02:00
Viduni Wickramarachchi
1c738f6e13
[Obs AI Assistant] Update EIS Elastic LLM naming (#215659)
Closes https://github.com/elastic/obs-ai-assistant-team/issues/236

## Summary

1. Renames name of model in model settings in search playground from
`Elastic LLM (AI Connector)` to `Elastic LLM`.

<img width="1616" alt="image"
src="https://github.com/user-attachments/assets/0be2ac02-1fcf-4167-b06e-de2e5af2f529"
/>

2. Renames the description of the Elastic LLM in the stack connector
flyout to `Use the Elastic LLM for your chat and RAG usecases.`

<img width="1620" alt="image"
src="https://github.com/user-attachments/assets/15ad52de-c916-4653-bf06-ccf4adeff170"
/>

### 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-03-24 21:41:19 +05:30
Julia Bardi
33db17768f
[Fleet] Use fleet error in cspm plugin (#215625)
## Summary

Closes https://github.com/elastic/ingest-dev/issues/5266

Changed Error to FleetError in CSPM so that the error response code is
400 instead of 500.
500 is not appropriate, it triggers alerts in our serverless SLOs.

<img width="1777" alt="image"
src="https://github.com/user-attachments/assets/b9b0e8cf-db54-427a-bc45-db0b806a150f"
/>
2025-03-24 17:05:38 +01:00
Jon
6697d9ab7d
[build] Remove chat solution from stateful artifacts (#215430)
Removes `private` packages in the `chat` group from releasable
artifacts.

In order to facilitate functional tests against the chat solution, we
will not remove packages in snapshot builds until
https://github.com/elastic/kibana/issues/215582 is completed.

Closes https://github.com/elastic/kibana/issues/213468
2025-03-24 10:48:21 -05:00
Florian Lehner
7c4af051b2
[Profiling] Add FrameType and color for Go (#215697)
## Summary

OTel Semantic Conventions
[defines](https://github.com/open-telemetry/semantic-conventions/pull/2003)
a type for Go and OTel eBPF profiler is about to start with pushing Go
frames (either with
https://github.com/open-telemetry/opentelemetry-ebpf-profiler/pull/409
or
https://github.com/open-telemetry/opentelemetry-ebpf-profiler/pull/408)

FYI: @elastic/ingest-otel-data 

### Checklist

Check the PR satisfies following conditions. 

Reviewers should verify this PR satisfies this list as well.

- [ ] ~~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)~~
not relevant
- [ ]
~~[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials~~ not
relevant
- [ ] ~~[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~~ not relevant
- [ ] ~~If a plugin configuration key changed, check if it needs to be
allowlisted in the cloud and added to the [docker
list](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)~~
not relevant
- [ ] ~~This was checked for breaking HTTP API changes, and any breaking
changes have been approved by the breaking-change committee. The
`release_note:breaking` label should be applied in these situations.~~
not relevant
- [ ] ~~[Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed~~ not relevant
- [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)
- `release_note:skip`

Signed-off-by: Florian Lehner <florian.lehner@elastic.co>
2025-03-24 16:05:07 +01:00
Edgar Santos
a66dbcb8c9
[Security Solution] Update rules dashboard to include rule gaps histogram (#214694)
## Summary
This PR adds a rule gaps histogram that shows users how many rules had
gaps at any given time. They will also be able to see how many gaps have
been filled and how many are being filled.
See the images below which show what the dashboard looks like today, and
what it looks like after these changes.

## How was this tested?
I ran a script to create 100 rules with gaps, then I made the changes in
the dashboard JSON file and called the `POST
/internal/detection_engine/health/_setup` endpoint to apply them in my
local version of Kibana.

### Before

![before_dashboard](https://github.com/user-attachments/assets/12c61404-20fd-4a6c-a888-7efd7cf535ff)

### After

![after_dashboard](https://github.com/user-attachments/assets/7d3829f9-cbd4-423f-98db-0ee792f25699)
2025-03-24 15:58:55 +01:00
Charlotte Alexandra Wilson
19d2776b18
Entity Analytics Dashboard refresh button breaks risk score tables: refetchEnginestatus Fix (#215472)
## Summary

This PR fixes the issue where clicking the refresh button, the risk
score panel throws errors, and the table displays no data.
The root cause was that the `refetchAll` callback did not include
`refetchEngineStatus`, which is responsible for refreshing the risk
engine status. As a result, the risk engine status
`hasEngineBeenInstalled` could become stale, leading to incorrect
behavior.

### Reproduce bug
(as per [#12017](https://github.com/elastic/security-team/issues/12017))

**Preconditions** 

Kibana started with user and host data
Alerts created
Enable risk engine
To Reproduce

**Steps to reproduce the behavior:**

Open the page and press refresh
Expected behavior
All panels should refresh

### Screenshots: Fixed Version
The bug appeared only on the static time options - "Today" and "This
Week". Fixed for both, confirmed working for the other options.



https://github.com/user-attachments/assets/bf2866cf-4e16-466f-8686-0c1b0bf5e7cb
2025-03-24 14:51:37 +00:00
Nikita Indik
2929f2857d
[Security Solution] Update prebuilt rule customization test plans to reflect licensing changes (#215008)
**Partially addresses: https://github.com/elastic/kibana/issues/202068**
**Related PR with licensing checks implementation:
https://github.com/elastic/kibana/pull/206079**

## Summary
This PR updates the Prebuilt Rule Customization test plan to reflect
[recent changes](https://github.com/elastic/kibana/pull/206079) related
to licensing.

Changes to rule upgrade scenarios will be handled in a separate PR.
2025-03-24 14:50:34 +00:00
Justin Kambic
74f87d99bc
[Synthetics] Only return 404 if screenshot_ref is truly not present (#215241)
## Summary

Right now we return a 404 anytime that the data we're looking for on the
`screenshot_ref` route is not satisfactory. We do an io-ts check on the
data before returning. It's possible that that data will fail the check,
and we'd return a 404 anyway. This isn't a very accurate reflection of
what's happening on the server, and could indicate a problem with the
user's data.

Instead, we first check if the data returned from Elasticsearch is
`null`, and if it is we return a 404. Otherwise, we compute the type
check like normal and return the result. In the case where the data
fails the type check, we instead return a 500 and include the malformed
data in the server response.

Co-authored-by: Faisal Kanout <faisal.kanout@elastic.co>
2025-03-24 10:50:18 -04:00
Andreana Malama
a3fe0cd460
[Lens] Fix inline dimension button label (#215476)
## Summary

Fix for #209696. 

<img width="368" alt="Screenshot 2025-03-21 at 1 49 14 PM"
src="https://github.com/user-attachments/assets/69052665-a194-459b-9c2a-835f4230a99b"
/>
<img width="381" alt="Screenshot 2025-03-21 at 1 49 53 PM"
src="https://github.com/user-attachments/assets/7cf6b7eb-4d1e-40fc-a28f-597634441eb1"
/>

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

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Marco Liberati <dej611@users.noreply.github.com>
2025-03-24 16:35:47 +02:00
Stratoula Kalafateli
935fc0f758
[ES|QL] Removes highlighting from script as it is being provided by ES docs already (#215631)
## Summary

This PR https://github.com/elastic/elasticsearch/pull/125251 adds
highlighting for the code blocks so it is not needed to be added on the
kibana side. This PR removes it.

I didnt run the script because it will remove the highlighting. It will
run next Monday with @craigtaverner 's PR being merged
2025-03-24 15:17:12 +01:00
Miriam
a55e3253e7
[ObsUX][A11y] Add area label to comparison drop down (#215664)
Closes https://github.com/elastic/kibana/issues/210254

Before

<img width="1494" alt="Screenshot 2025-03-24 at 10 51 01"
src="https://github.com/user-attachments/assets/872ca24d-8087-4261-bdf0-19107b13d01a"
/>

After

<img width="1494" alt="Screenshot 2025-03-24 at 10 49 51"
src="https://github.com/user-attachments/assets/6d840f70-41b3-4891-ab91-cf99f3c6a93e"
/>
2025-03-24 13:59:22 +00:00
Gerard Soldevila
366a0da35c
Fix plugin-list script (#215648)
## Summary

A [recent PR](https://github.com/elastic/kibana/pull/212558/files) (3
weeks ago) migrated docs under `/docs` folder, from `.asciidoc` to
`.md`.

Unfortunately, some of these docs (well, at least one) were generated
automatically using a script:

`node scripts/build_plugin_list_docs.js` was updating the
`docs/developer/plugin-list.asciidoc`

As a result of the migration:

The CI pipeline step fails, and the list of plugins is no longer
updated.
Besides:
* The https://www.elastic.co/guide/en/kibana/current/plugin-list.html is
currently broken.
* This page is (or should be) built from
https://github.com/elastic/kibana/blob/main/docs/extend/plugin-list.md,
which is also broken.

They are broken cause some plugins' descriptions use the pipe `|`
character, which breaks the Markdown layout.

This PR updates the logic that generates the plugin-list, switching from
`.asciidoc` to `.md`, and escaping `\n` and `|` characters to allow for
better descriptions.
2025-03-24 15:53:17 +02:00
Aleh Zasypkin
6bbc4b67a5
fix(security): topologically sort composable feature privileges before composing actions (#211035)
## Summary

This PR changes the privilege's actions merging logic for the composable
and deprecated Kibana features. The change makes it possible to have any
number of composable and deprecated features chained by `replaceBy`,
`composedOf`, or a combination of the two.

Under the hood, the privileges factory sorts all deprecated and
composable privileges using Kahn's algorithm for topological sorting,
similar to what is used to sort Kibana plugin dependencies. This allows
us to not only detect cyclical dependencies but also sort privileges in
the proper order depending on their dependency chain.

The use cases addressed by this change are best illustrated by the
`actions should respect composedOf when specified with replaceBy at the
privilege` test in `privileges.test.ts`.
2025-03-24 15:09:36 +02:00
Sergi Romeu
2654b8c702
[A11y][APM] Add aria-label to popover service in service overview (#215640)
## Summary

Fixes #210258

This PR adds an `aria-label` with the same content as the title to solve
the "Button must have a discernible text" A11y critical issue.

## How to test
1. Download the [axe
devtools](https://chromewebstore.google.com/detail/axe-devtools-web-accessib/lhdoppojpmngadmnindnejefpokejbdd)
2. Go into a service overview and run the scanner from axe devtools
3. You should see a critical error
4. Checkout this branch
5. Error should be solved
2025-03-24 13:54:30 +01:00
Sergi Romeu
6665dd377a
[A11y][APM] Add aria-label to latency selector in service overview (#215644)
## Summary

Fixes #210270

This PR adds an `aria-label` to solve the "Element missing an accessible
name" A11y critical issue.

## How to test
1. Download the [axe
devtools](https://chromewebstore.google.com/detail/axe-devtools-web-accessib/lhdoppojpmngadmnindnejefpokejbdd)
2. Go into a service overview and run the scanner from axe devtools
3. You should see a critical error
4. Checkout this branch
5. Error should be solved
2025-03-24 13:54:17 +01:00
Tre
af5b6e3d0a
[SKIP ON MKI] dev_tools/search_profiler (#215661)
## Summary

see details: https://github.com/elastic/kibana/issues/215660
2025-03-24 14:51:12 +02:00
Kibana Machine
56cc617bb1
[ES|QL] Update grammars (#215621)
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-03-24 13:35:17 +01:00
Mykola Harmash
007caa1b55
[Oblt Onboarding][K8S OTel] Use helm upgrade --install (#215160)
Closes #215134

Using `helm upgrade --install` lets the user run the helm command
multiple times to, for example, upgrade to the new version after a stack
release.

![CleanShot 2025-03-19 at 13 48
39@2x](https://github.com/user-attachments/assets/196c8d6d-1046-44d3-8d44-c300fa0418af)

## How to test

1. Run Kibana and navigate to the K8S OTel onboarding flow
2. Execute snippets provided by the flow
3. Copy only the `helm upgrade --install ...` part of the second snippet
and execute it again
4. Make sure the command succeeds

Co-authored-by: Joe Reuter <johannes.reuter@elastic.co>
2025-03-24 14:20:45 +02:00
Viduni Wickramarachchi
505405df5c
[Obs AI Assistant] Fix page height of the AI Assistant app in solution views (#215646)
Closes https://github.com/elastic/kibana/issues/215637

## Summary

In solution views the AI Assistant page doesn't take up the full
viewport height because a hardcoded value is used.
This PR fixes this issue by using `kbn/eui` variables instead.

Before:

<img width="1619" alt="image"
src="https://github.com/user-attachments/assets/5c94c325-1a15-49da-b162-beb15431a732"
/>

After:

<img width="1621" alt="image"
src="https://github.com/user-attachments/assets/88e0610e-cbfb-4266-a0fa-c19f031bbb93"
/>


### 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-03-24 17:46:46 +05:30
Tim Rühsen
25067aeb4b
[profiling] Add color for Executable flamegraph nodes (#215552)
Adds a type and color for `Executable` flamegraph nodes.

The new type will be used by [this
change](https://github.com/elastic/elasticsearch/pull/119115) in the ES
profiling plugin (the required code change from grouping by process name
to grouping by executable name needs tbd).
2025-03-24 08:56:46 -03:00
Robert Jaszczurek
ab780500f6
[ML] Anomaly Explorer: Fix Anomalies Table pagination (#214714)
Includes a fix for https://github.com/elastic/kibana/issues/213424 and a
follow up to
https://github.com/elastic/kibana/pull/203224#discussion_r1875926261

* Rewrites anomalies_table in typescript
* Decouples anomalies table state into an individual service
* Fixes an issue where anomalies table pagination wouldn't reset to 0
after changing significant properties of the view, causing the table
data to refetch
2025-03-24 12:39:23 +01:00
Alex Szabo
415d672d31
[ci] Flaky test runner respect labels (#215167)
## Summary
Extracts `collectEnvFromLabels` to a separate module, so it can be used
in the flaky test runner. With this, the label `ci:use-chrome-beta` will
be passed along to the flaky test runner, allowing for flaky testing on
chrome beta.

Other labels we treat as modifiers for PR behavior through setting env
variables should also be added to this set of mapping.
2025-03-24 12:01:06 +01:00
Stratoula Kalafateli
574e2580c6
[ES|QL] Fixes the visibility of the datepicker (#214728)
## Summary

Fixes the visibility of the timepicker on the dashboard

<img width="720" alt="image"
src="https://github.com/user-attachments/assets/9fd40aa4-b334-4854-8b01-e106fd2e1f11"
/>

and the position in case the editor doesnt have a lot of space. in that
scenario we move the timepicker to the right

<img width="759" alt="image"
src="https://github.com/user-attachments/assets/7a8dbccf-ae42-452a-9046-4308a2a783bb"
/>
2025-03-24 10:50:53 +01:00
Kibana Machine
eed0a195a2
[ES|QL] Update function metadata (#215622)
This PR updates the function definitions and inline docs based on the
latest metadata from Elasticsearch.

---------

Co-authored-by: Stratoula Kalafateli <efstratia.kalafateli@elastic.co>
2025-03-24 10:33:04 +01:00
elastic-renovate-prod[bot]
f81572e462
Update dependency elastic-apm-node to ^4.11.2 (main) (#214940)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
|
[elastic-apm-node](https://redirect.github.com/elastic/apm-agent-nodejs)
| dependencies | patch | [`^4.11.1` ->
`^4.11.2`](https://renovatebot.com/diffs/npm/elastic-apm-node/4.11.1/4.11.2)
|

---

### Release Notes

<details>
<summary>elastic/apm-agent-nodejs (elastic-apm-node)</summary>

###
[`v4.11.2`](https://redirect.github.com/elastic/apm-agent-nodejs/releases/tag/v4.11.2)

[Compare
Source](https://redirect.github.com/elastic/apm-agent-nodejs/compare/v4.11.1...v4.11.2)

For more information, please see the
[changelog](https://www.elastic.co/guide/en/apm/agent/nodejs/current/release-notes-4.x.html#release-notes-4.11.2).

##### Elastic APM Node.js agent layer ARNs

|Region|ARN|
|------|---|

|af-south-1|arn:aws:lambda:af-south-1:267093732750:layer:elastic-apm-node-ver-4-11-2:1|

|ap-east-1|arn:aws:lambda:ap-east-1:267093732750:layer:elastic-apm-node-ver-4-11-2:1|

|ap-northeast-1|arn:aws:lambda:ap-northeast-1:267093732750:layer:elastic-apm-node-ver-4-11-2:1|

|ap-northeast-2|arn:aws:lambda:ap-northeast-2:267093732750:layer:elastic-apm-node-ver-4-11-2:1|

|ap-northeast-3|arn:aws:lambda:ap-northeast-3:267093732750:layer:elastic-apm-node-ver-4-11-2:1|

|ap-south-1|arn:aws:lambda:ap-south-1:267093732750:layer:elastic-apm-node-ver-4-11-2:1|

|ap-southeast-1|arn:aws:lambda:ap-southeast-1:267093732750:layer:elastic-apm-node-ver-4-11-2:1|

|ap-southeast-2|arn:aws:lambda:ap-southeast-2:267093732750:layer:elastic-apm-node-ver-4-11-2:1|

|ap-southeast-3|arn:aws:lambda:ap-southeast-3:267093732750:layer:elastic-apm-node-ver-4-11-2:1|

|ca-central-1|arn:aws:lambda:ca-central-1:267093732750:layer:elastic-apm-node-ver-4-11-2:1|

|eu-central-1|arn:aws:lambda:eu-central-1:267093732750:layer:elastic-apm-node-ver-4-11-2:1|

|eu-north-1|arn:aws:lambda:eu-north-1:267093732750:layer:elastic-apm-node-ver-4-11-2:1|

|eu-south-1|arn:aws:lambda:eu-south-1:267093732750:layer:elastic-apm-node-ver-4-11-2:1|

|eu-west-1|arn:aws:lambda:eu-west-1:267093732750:layer:elastic-apm-node-ver-4-11-2:1|

|eu-west-2|arn:aws:lambda:eu-west-2:267093732750:layer:elastic-apm-node-ver-4-11-2:1|

|eu-west-3|arn:aws:lambda:eu-west-3:267093732750:layer:elastic-apm-node-ver-4-11-2:1|

|me-south-1|arn:aws:lambda:me-south-1:267093732750:layer:elastic-apm-node-ver-4-11-2:1|

|sa-east-1|arn:aws:lambda:sa-east-1:267093732750:layer:elastic-apm-node-ver-4-11-2:1|

|us-east-1|arn:aws:lambda:us-east-1:267093732750:layer:elastic-apm-node-ver-4-11-2:1|

|us-east-2|arn:aws:lambda:us-east-2:267093732750:layer:elastic-apm-node-ver-4-11-2:1|

|us-west-1|arn:aws:lambda:us-west-1:267093732750:layer:elastic-apm-node-ver-4-11-2:1|

|us-west-2|arn:aws:lambda:us-west-2:267093732750:layer:elastic-apm-node-ver-4-11-2:1|

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Renovate
Bot](https://redirect.github.com/renovatebot/renovate).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4xMDcuMCIsInVwZGF0ZWRJblZlciI6IjM5LjEwNy4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJUZWFtOkNvcmUiLCJiYWNrcG9ydDpwcmV2LW1pbm9yIiwicmVsZWFzZV9ub3RlOnNraXAiXX0=-->

Co-authored-by: elastic-renovate-prod[bot] <174716857+elastic-renovate-prod[bot]@users.noreply.github.com>
2025-03-24 10:55:26 +02:00
Sergi Romeu
965a69d9fb
[Storybook] Use native theme switcher (#215443)
## Summary

Closes #213294

This PR replaces the custom theme switcher in favor of the native
toolbar customization SB has integrated.

Also removed `@storybook/icons` which was only used in the theme
switcher component.

## How to test
1. Run `yarn storybook <plugin>`
2. You should be able to change between themes on the toolbar.
2025-03-24 10:54:15 +02:00
Stratoula Kalafateli
17ecc6a9f1
[ES|QL] Attempt to fix the code scan report problem (#215278)
## Summary

Closes https://github.com/elastic/kibana-team/issues/1568
2025-03-24 09:46:06 +01:00
Kibana Machine
9fd3771061
[api-docs] 2025-03-24 Daily api_docs build (#215623)
Generated by
https://buildkite.com/elastic/kibana-api-docs-daily/builds/1021
2025-03-24 08:14:34 +02:00
Jesus Wahrman
04772fcc45
Register resident set size and limit bytes metrics in APM (#215458)
## Summary

Resolves https://github.com/elastic/kibana-team/issues/1565

Register resident set size and limit bytes metrics in APM.

<img width="1614" alt="image"
src="https://github.com/user-attachments/assets/d5f1caf5-da4f-4acd-a63f-2b5256a91307"
/>


### Checklist

Check the PR satisfies following conditions. 

Reviewers should verify this PR satisfies this list as well.

- [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)
2025-03-23 23:22:30 +02:00
Kibana Machine
b876e79ae7
[api-docs] 2025-03-23 Daily api_docs build (#215605)
Generated by
https://buildkite.com/elastic/kibana-api-docs-daily/builds/1020
2025-03-23 08:11:58 +02:00
Dzmitry Lemechko
4dc27ba4aa
[scout] Remove perf stats validation for Discover (#215130)
## Summary

With #212397 we added 2 tests for Discover app (loading `/app/discover`)
to track:
- js bundles loaded on page
- perf metrics like CPU time, Layout time and Script time fetched with
CDP Performance Domain API

While the first test for bundles _didn't report any failures_, second
test to validate Perf metrics fails periodically:


https://buildkite.com/elastic/kibana-on-merge-unsupported-ftrs/builds/34729#0195a4de-6cd5-4d1e-be11-5d02be6de2b0
```
Error: CPU time (seconds) usage during page navigation should not exceed 1.5 seconds

expect(received).toBeLessThan(expected)

Expected: < 1.5
Received:   1.591343
```


https://buildkite.com/elastic/kibana-on-merge-unsupported-ftrs/builds/34877
```
Error: Additional time spent executing JS scripts should not exceed 0.5 second

expect(received).toBeLessThan(expected)

Expected: < 0.5
Received:   0.601434
```


https://buildkite.com/elastic/kibana-on-merge-unsupported-ftrs/builds/34899
```
Error: Total layout computation time should not exceed 0.06 second

expect(received).toBeLessThan(expected)

Expected: < 0.06
Received:   0.061723
```


https://buildkite.com/elastic/kibana-on-merge-unsupported-ftrs/builds/34912#0195adb8-4536-42b7-ab4d-524535fdad9a
```
Error: Additional time spent executing JS scripts should not exceed 0.5 second

expect(received).toBeLessThan(expected)

Expected: < 0.5
Received:   0.561259
```

It was worth an experiment, but due to flakiness we decided to keep only
bundles limits validation for now and see if it is stable in the long
run.

If Data-Discovery team has interest in collecting Perf metrics without
strict validation in PRs, we can discuss the options. Alternatively we
can wait for Scout GA and you can deep dive into your own performance
testing with Playwright/CDP.
2025-03-22 20:31:54 +02:00