Commit graph

83468 commits

Author SHA1 Message Date
Tiago Costa
8972a49009
chore(NA): update versions after v9.1.0 bump (#208997)
This PR is a simple update of our versions file after the recent bumps.
2025-01-31 06:04:40 +00:00
Kibana Machine
c1f17515b1 skip failing test suite (#193102) 2025-01-31 13:41:17 +11:00
Ahmad Bamieh
160c0d4682
[main] [Upgrade Assistant] Data streams reindexing (#208083) (#209029)
# Backport

This will backport the following commits from `8.x` to `main`:
- [[Upgrade Assistant] Data streams reindexing
(#208083)](https://github.com/elastic/kibana/pull/208083)

<!--- Backport version: 9.6.4 -->

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

<!--BACKPORT [{"author":{"name":"Ahmad
Bamieh","email":"ahmad.bamyeh@elastic.co"},"sourceCommit":{"committedDate":"2025-01-30T22:33:10Z","message":"[Upgrade
Assistant] Data streams reindexing (#208083)\n\n## Data streams
reindexing\r\n\r\nThis PR implements data stream reindexing corrective
action.\r\n\r\n\r\n## Screenshots\r\nFound
here\r\nhttps://docs.google.com/document/d/1QntGX5aTbjAv-VRZoKg43McZ_obddLkIPAQp_molMvw/edit?tab=t.0#heading=h.spoobki9vra3\r\n\r\n\r\n##
Testing\r\n#### Handling kibana restarts:\r\nSince we dont maintain any
state in Kibana for the data stream\r\nreindexing we dont worry about
this scenario\r\n\r\n#### Ensuring only one node is handling the task
sync with ES:\r\nSince we dont maintain any state in Kibana for the data
stream\r\nreindexing we dont worry about this scenario\r\n\r\n#### ES
task returns an exception:\r\nThis is a new state that was introduced in
persistent tasks. We show a\r\nhuge exception banner and ask user to
retry.\r\n\r\n#### ES task fails to reindex some indices but reindexing
is complete:\r\nShow an error in the in progress page. This is an
undesired state since\r\nthe user will still be asked to reindex the
data stream again for only\r\nthose failed indices.\r\n\r\n#### ES task
fails to reindex some indices but reindexing is still
in\r\nprogress\r\nWe should a count of how many failed while showing a
progress bar.\r\n\r\n#### Pause/resume/cancel functionality\r\ndata
transform reindexing only has ‘cancel’ from ES side however
it\r\nbehaves as “pause” since it will pick up where it last was
cancelled.\r\nSince we do not maintain a state in kibana we only show a
cancel button.\r\nOnce the reindex is cancelled the user can start it
again. All the\r\ndescriptions are updated from ES with the latest
incomplete countes.\r\n\r\n#### ES task stops responding\r\nWe mark the
Kibana task as failed\r\n\r\n#### ES task returns 404\r\nBoth cancelled
tasks and never started ones return 404 from ES side.\r\nThe only way to
tell the difference is to see if the Kibana task is “in\r\nprogress”
then this means it was cancelled from ES side (canelled via\r\nAPI by
the user directly for example) and we mark it as cancelled for\r\nthe
user.\r\n\r\n\r\n#### Other main flow tests:\r\n- Tested a small data
stream reindexing job\r\n- Tested a huge data stream reindexing job\r\n-
Tested pausing a job\r\n- Tested cancelling a job\r\n- Stopping ES
during reindexing and then restarting\r\n- Reindexing in a cluster with
2 Kibana
nodes","sha":"6925d129455ccb458e08cf33ce36c08e0d5313f5","branchLabelMapping":{"^v8.16.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","backport:prev-major","v8.18.0"],"title":"[Upgrade
Assistant] Data streams
reindexing","number":208083,"url":"https://github.com/elastic/kibana/pull/208083","mergeCommit":{"message":"[Upgrade
Assistant] Data streams reindexing (#208083)\n\n## Data streams
reindexing\r\n\r\nThis PR implements data stream reindexing corrective
action.\r\n\r\n\r\n## Screenshots\r\nFound
here\r\nhttps://docs.google.com/document/d/1QntGX5aTbjAv-VRZoKg43McZ_obddLkIPAQp_molMvw/edit?tab=t.0#heading=h.spoobki9vra3\r\n\r\n\r\n##
Testing\r\n#### Handling kibana restarts:\r\nSince we dont maintain any
state in Kibana for the data stream\r\nreindexing we dont worry about
this scenario\r\n\r\n#### Ensuring only one node is handling the task
sync with ES:\r\nSince we dont maintain any state in Kibana for the data
stream\r\nreindexing we dont worry about this scenario\r\n\r\n#### ES
task returns an exception:\r\nThis is a new state that was introduced in
persistent tasks. We show a\r\nhuge exception banner and ask user to
retry.\r\n\r\n#### ES task fails to reindex some indices but reindexing
is complete:\r\nShow an error in the in progress page. This is an
undesired state since\r\nthe user will still be asked to reindex the
data stream again for only\r\nthose failed indices.\r\n\r\n#### ES task
fails to reindex some indices but reindexing is still
in\r\nprogress\r\nWe should a count of how many failed while showing a
progress bar.\r\n\r\n#### Pause/resume/cancel functionality\r\ndata
transform reindexing only has ‘cancel’ from ES side however
it\r\nbehaves as “pause” since it will pick up where it last was
cancelled.\r\nSince we do not maintain a state in kibana we only show a
cancel button.\r\nOnce the reindex is cancelled the user can start it
again. All the\r\ndescriptions are updated from ES with the latest
incomplete countes.\r\n\r\n#### ES task stops responding\r\nWe mark the
Kibana task as failed\r\n\r\n#### ES task returns 404\r\nBoth cancelled
tasks and never started ones return 404 from ES side.\r\nThe only way to
tell the difference is to see if the Kibana task is “in\r\nprogress”
then this means it was cancelled from ES side (canelled via\r\nAPI by
the user directly for example) and we mark it as cancelled for\r\nthe
user.\r\n\r\n\r\n#### Other main flow tests:\r\n- Tested a small data
stream reindexing job\r\n- Tested a huge data stream reindexing job\r\n-
Tested pausing a job\r\n- Tested cancelling a job\r\n- Stopping ES
during reindexing and then restarting\r\n- Reindexing in a cluster with
2 Kibana
nodes","sha":"6925d129455ccb458e08cf33ce36c08e0d5313f5"}},"sourceBranch":"8.x","suggestedTargetBranches":["8.18"],"targetPullRequestStates":[{"branch":"8.18","label":"v8.18.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->
2025-01-31 01:46:54 +01:00
Kibana Machine
396804f0f0 skip failing test suite (#209027) 2025-01-31 11:32:16 +11:00
Michael Wolf
81a57e005e
Increase maximum Osquery timeout to 24 hours (#207276)
Some Osquery queries are expected to be long running. To accommodate
this, increase the maximum timeout in the query creation UI to 24 hours
(86400 seconds).

24 hours should allow most long-running queries, while still having a
limit that ensures misbehaving queries do not block others for an
extremely long time.

Relates to https://github.com/elastic/beats/issues/42352. Osquerybeat
will also increase its timeout limit to 24h, this change will allow the
higher timeout to be set by users in Kibana.
2025-01-31 01:18:47 +01:00
seanrathier
df4a6d7ce3
[Cloud Security] Unskipped and fixed flaky agentless test (#208844) 2025-01-31 00:36:59 +01:00
Tiago Costa
bd31407be5
chore(NA): update pipeline resource definitions after bump 8.19.0 (#209004)
This PR updates the pipeline resource definitions to support the new
8.17 added branch.
2025-01-30 22:20:59 +00:00
Tiago Costa
a40314d254
chore(NA): adds 8.18 into backportrc (#208998)
It adds 8.18 into the .backportrc config file
2025-01-30 22:20:42 +00:00
Tiago Costa
2e4245889b
chore(NA): update versions after v8.19.0 bump (#208995)
This PR is a simple update of our versions file after the recent bumps.
2025-01-30 22:20:26 +00:00
Tiago Costa
b5df3e256e
skip flaky es promotion suites (#163255) 2025-01-30 20:41:57 +00:00
Tiago Costa
92fc287096
skip flaky es promotion suites (#163254) 2025-01-30 20:40:29 +00:00
Tiago Costa
777e1fe389
skip flaky es promotion suites (#158318) 2025-01-30 20:39:29 +00:00
Tiago Costa
a7b55350cf
skip flaky es promotion suites (#167676) 2025-01-30 20:37:26 +00:00
Kibana Machine
970d805f74 skip failing test suite (#209014) 2025-01-31 06:58:50 +11:00
Lisa Cawley
bc5e893aae
Use current in documentation link service (#208867) 2025-01-30 11:56:24 -08:00
Devin W. Hurley
4419390282
[Security Solution] [Detection Engine] Logs shard failures for eql event queries on rule details page and in event log (#207396)
## Summary

Related: https://github.com/elastic/elasticsearch/pull/116388/

Adds support for shard failures for EQL event queries in the detection
engine.
2025-01-30 20:55:53 +01:00
Krzysztof Kowalczyk
b35e1051e6
[Guided Onboarding] Remove "Setup Guides" buttons (#208510)
## Summary
This PR removes `Setup Guides` buttons.
Closes: #207026

> [!NOTE]
All the tests in
`src/platform/plugins/shared/guided_onboarding/public/components/guide_panel.test.tsx`
depend on those buttons so it was easier to remove those tests.

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2025-01-30 20:43:08 +01:00
Rodney Norris
26fac70c9b
[Search][Configuration] Remove Enterprise Search node values (#208856)
## Summary

This removes the config values associated with the enterprise search
node.

### Checklist

- [ ] 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)
- [ ]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials
- [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] 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)
2025-01-30 13:28:26 -06:00
Nathan Reese
758768136d
[dashboard] remove legacy section from 'Add panel' flyout (#208116)
Users should use Lens to visualize data. Users should not use TSVB or
aggregation based panels. To this end, "easy button" UIs, such as
dashboard's "Add panel" flyout, should guide users to lens and not guide
them to legacy applications.

This PR removes `legacy` section from dashboard "Add panel" flyout.
Users can still add legacy panels to dashboards via "visualize"
application. The path is more steps, but this is as intended. Using old
stuff should be painful and require extra work as a caret to move users
to new stuff.

<img width="500" alt="Screenshot 2025-01-23 at 1 08 41 PM"
src="https://github.com/user-attachments/assets/e142cba9-a880-4ad6-a3f8-a981a03daaec"
/>

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2025-01-30 12:22:51 -07:00
Joe Reuter
2212a19bc8
🌊 Streams: Convert legacy types in frontend (#208608)
This PR gets rid of the usage of the legacy "readdefinition" types in
the frontend except for the enrichment view, because @tonyghiani is
working on that in parallel.

I first looked into whether we can just use the existing
`IngestStreamGetResponse` type, but since it doesn't carry the name of
the stream, that is actually super annoying to use - passing the name as
a separate argument is pretty annoying and increases the risk of bugs.

Even though it's not fully "Elasticsearch"-y, I decided to add the
stream name to the `IngestStreamGetResponse` - this way the `stream`
property in the response is a regular `StreamDefinition`, so all the
functions that act on it can use it right away.

This simplifies the frontend code without hurting programmatic API
users.
2025-01-30 19:36:59 +01:00
elastic-renovate-prod[bot]
aec58c14ef
Update docker.elastic.co/wolfi/chainguard-base:latest Docker digest to 8df3ca6 (main) (#208931)
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| docker.elastic.co/wolfi/chainguard-base | digest | `d04ee51` ->
`8df3ca6` |

---

### 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://togithub.com/renovatebot/renovate).

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

Co-authored-by: elastic-renovate-prod[bot] <174716857+elastic-renovate-prod[bot]@users.noreply.github.com>
2025-01-30 11:56:06 -06:00
Shahzad
6dda88821d
[Synthetics] Clarify private location api docs !! (#208504)
## Summary

Clarify private location api docs !!

Co-authored-by: Dominique Clarke <dominique.clarke@elastic.co>
2025-01-30 18:44:40 +01:00
Tiago Costa
bd0d6820af
skip failing es promotion (#208874) 2025-01-30 17:29:36 +00:00
Tiago Costa
28e431c7c8
skip failing es promotion (#208870) 2025-01-30 17:27:07 +00:00
Tiago Costa
48d2e4c0b1
skip failing es promotion (#208871) 2025-01-30 17:24:32 +00:00
Tiago Costa
3537b2d008
skip failing es promotion (#208872) 2025-01-30 17:22:10 +00:00
Tiago Costa
d3a115b326
skip failing es promotion (#208873) 2025-01-30 17:17:20 +00:00
Jen Huang
010ef6b4c5
[UII] Convert deployment mode selector to radio group (#208859) 2025-01-30 08:58:00 -08:00
Ievgen Sorokopud
b28036a2e0
[Security GenAI] "Select a Connector" popup does not show up after the user selects any connector and then cancels it from Endpoint Insights. (#208907) (#208969)
## Summary

BUG: https://github.com/elastic/kibana/issues/208907

This PR fixes the issue where user cannot select a different connector
type after mistakenly selecting a wrong one.

### Steps to reproduce without required endpoint installation:

1. Make sure there are no connectors
2. Open "AI Assistant" on one of the security solution pages
3. Press "(+) Add connector" button
4. Connector type selection modal is visible
5. Select "Amazon Bedrock" type (or any other connector type)
6. Cancel the modal
7. Press "(+) Add connector" button again

**ISSUE**: previously selected connector type is being displayed and
there is no way to switch between types
**EXPECTED**: we should show connector type selection modal once
previous one was closed

### Issue recording


https://github.com/user-attachments/assets/48052bf1-4e00-43b7-a63e-f8a7969b9dbf

### Fixed state recording


https://github.com/user-attachments/assets/48be1cc4-0326-43a1-bd57-bb82fc1f19eb
2025-01-30 17:53:36 +01:00
Jan Calanog
c7cef4c95b
github-action: Add AsciiDoc freeze warning (#208534)
## Details

⚠️ This PR was created by an automated tool. Please review the changes
carefully. ⚠️

Add a workflow that will comment on PRs with AsciiDoc changes.

## Why

During the migration to Elastic Docs v3, the Docs team will focus
exclusively on migrating content.
To maintain consistency, prevent conflicts, and ensure a smoother
transition we will freeze all AsciiDoc changes.

This means you will get a warning when you create AsciiDoc changes in
your PRs.

   See https://github.com/elastic/docs-builder/issues/281 for details

If there are any questions, please reach out to the
@elastic/docs-engineering

---------

Co-authored-by: Brandon Morelli <brandon.morelli@elastic.co>
2025-01-30 16:41:18 +00:00
Steph Milovic
b0a72e2b90
[Security AI] Move security-ai-prompt to package (#208787) 2025-01-30 17:34:30 +01:00
Kevin Qualters
0e7c608ed3
[Cases] Cases assignees sub feature (#201654)
## Summary

This pr implements a new cases assignee sub-feature, allowing users to
control a role's ability to change the assignee of a case. With the
permission enabled, they can assign any user to any case, with it
disabled, the assignees component is hidden.

Read only + enabled:

![image](https://github.com/user-attachments/assets/ba421784-d976-4ae9-a399-e404c26b3842)


All + assign disabled:

![image](https://github.com/user-attachments/assets/d835b6f9-5a14-4ae0-abed-b3c3252c2692)



### Checklist

- [ ]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials
- [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-01-30 17:04:38 +01:00
Jean-Louis Leysens
53cba303e5
[OAS] Remove Elastic-Api-Version (#207071)
## Summary

We anticipate generating a single document per API version for the
foreseeable future. This PR updates our OAS document merging logic to
avoid adding the `Elastic-Api-Version` header to our spec.

This will also remove this header from current documentation.

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2025-01-30 16:59:45 +01:00
Tre
c1666be580
[SKIP ON MKI] .../open_in_lens/tsvb/*.ts (#208927)
see details: https://github.com/elastic/kibana/issues/208926
2025-01-30 16:49:37 +01:00
Shahzad
97e8bada1d
[Synthetics] Update pings query to not use last 30 days time range !! (#208366)
## Summary

Fixes https://github.com/elastic/kibana/issues/198443 !!

Instead of using last 30 days, it will now uses last 24 hours otherwise
it will fall back to last 7 days and then last 30 days.

Last run should still work as expected 

<img width="1728" alt="image"
src="https://github.com/user-attachments/assets/abad5d83-5456-440e-b5b5-147915315120"
/>

---------

Co-authored-by: Justin Kambic <jk@elastic.co>
2025-01-30 16:01:27 +01:00
Alex Prozorov
cd9096cf73
[Cloud Security] 10973 migrate flaky e2e tests to jest (#208345)
## Summary

This PR tries to fix the following issues - which are flaky FTR tests:

- https://github.com/elastic/kibana/issues/197143 - convert to unit test
- https://github.com/elastic/kibana/issues/190967 - fixed
- https://github.com/elastic/kibana/issues/187470 - fixed
- https://github.com/elastic/kibana/issues/186302 - convert to unit test
- https://github.com/elastic/kibana/issues/186438 - convert to unit test


There will be an RFC document which is going to be released to help us
better understand and decide which tests are more suitable to make as
E2E tests and which as unit tests.

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

### Closes
this PR closes the above mentioned issues in relation for this ticket -
https://github.com/elastic/security-team/issues/10973
2025-01-30 16:23:25 +02:00
Nicolas Chaulet
0a0a4d8b75
[Fleet] Improve reading package archive memory usage (#208869)
## Summary

Related to https://github.com/elastic/kibana/issues/208210 

As we know the package size from the content-length header we can
improve how read the archive stream to a buffer.

## Benchmark 

<img width="710" alt="Screenshot 2025-01-29 at 9 23 59 PM"
src="https://github.com/user-attachments/assets/79dc1f20-938b-402e-a823-1ab26a07b78e"
/>
2025-01-30 09:03:52 -05:00
Kris Gross
bf0b26d4de
Security periodic pipeline images non-preemptible (#208799)
Pre-GA, we previously modified the critical path, weekly Quality Gate
pipelines over to non-preemptible images in order to avoid the
inconsistent "agent lost" Buildkite issue that might cause unnecessary
churn.

Now that we're GA, the periodic pipelines are becoming more critical
path as well, and in addition, we're seeing a concerning increase in the
number of "agent lost" issues we're encountering, as described here:
https://github.com/elastic/security-team/issues/11700

As such, this PR is hoping to address this issue for the periodic
pipelines as well.
2025-01-30 08:58:31 -05:00
Joe Reuter
1b663384fe
🌊 Streams: Handle stale classic streams (#208221)
An invariant we have to handle somehow is if a user made additions to an
unwired data stream via the streams interface, then the underlying data
stream gets deleted.

This is "allowed", since the data stream is not managed by streams.

Currently, the UI breaks if this happens and shows error toasts when
trying to load the doc count or when trying to change processing.

This PR makes this a regular case the API can handle:
* The `GET /api/streams/<id>` endpoint does not throw, but still returns
the existing definition. A new key `data_stream_exists` indicates
whether we are in this situation
* The UI clearly communicates to the user and doesn't try to do
additional requests

<img width="838" alt="Screenshot 2025-01-24 at 16 42 23"
src="https://github.com/user-attachments/assets/92cc5a82-2bb2-4d66-b47a-057ddcff5888"
/>

Trying to update ingest via the API will still result in an error.

Another weird behavior related to that was that if a dashboard is linked
to a stale classic stream, no definition is ever saved and the stream
disappears from the list when deleted, making the dashboard link
inaccessible. This PR introduces `ensureStream` which is called by the
dashboard APIs and makes sure the definition is there if dashboard links
exist. As a side effect, this makes sure that a user can't add dashboard
links to a stream they don't have access to - IMHO we should have done
that from the start.

This does not touch wired streams - for those, the data stream getting
deleted is a breach of contract. We should still handle it gracefully,
but in this case I think we should go another route and offer a button
in the UI to use the "resync" API to reconcile the state of the streams
layer and Elasticsearch. I will look into this on a separate PR.
2025-01-30 14:56:22 +01:00
Shahzad
b655d78773
[OBS-UX-MG] Upgrade redux-saga !! (#208173)
## Summary

Upgrade redux-saga !!
2025-01-30 14:46:33 +01:00
Matthew Kime
7bc08f05b4
[search profiler] faster check for indices (#208825)
## Summary

Search profiler checks to see if there are indices before allowing the
execution of a search to prevent a "there are no indices" error. This PR
makes this check more performant.

In large clusters, requesting a full list of indices can be slow (up to
4 seconds) and results in excess data transfer. The indices exist api
simply returns a boolean if an index is found and remains performant on
large clusters.
2025-01-30 07:29:33 -06:00
Joe Reuter
15fcb182e3
🌊 Streams: Add stream.name field (#208514)
Fixes https://github.com/elastic/streams-program/issues/103

This PR adds a constant keyword `stream.name` field that functions
similar to the `data_stream.dataset` field.

It will allow us to clearly associate a document or a set of documents
with their streams and filter data per stream efficiently. It's also
used to validate that documents are sent properly to the root stream
instead of targeting specific child streams directly.

The `stream.name` field reports as `keyword` in the UI, but is actually
mapped per index template as a constant keyword set to the respective
value.
2025-01-30 14:25:19 +01:00
Tre
67719f2b57
[SKIP ON MKI] .../security/cloud_security_posture/graph.ts (#208904)
see details: https://github.com/elastic/kibana/issues/208903
2025-01-30 13:33:28 +01:00
Agustina Nahir Ruidiaz
1e63b5ae99
[Security Solution] [EUI Refresh] [Explore page] Migrate styled-components (#207318)
## Summary
Addresses [#206437](https://github.com/elastic/kibana/issues/206437)
This PR migrates `explore page` from `styled-components` to
`@emotion/styled`.
In the process I also convert the kbn/ui-theme json tokens to euiTheme
counterparts.



https://github.com/user-attachments/assets/f1702c0d-78f7-4e17-a8d6-c7c9ae19d3b7



### 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: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2025-01-30 13:24:05 +01:00
Tre
ce1904533d
[Scout] add maps test (#204607)
## Summary

Add MapsPage to the scout core to be re-used by others.
Add rudimentary docs to show how to run these tests.
Added a `waitForRender` method.
Add test id.

---------

Co-authored-by: Robert Oskamp <traeluki@gmail.com>
Co-authored-by: Nick Partridge <nicholas.partridge@elastic.co>
Co-authored-by: Nick Partridge <nick.ryan.partridge@gmail.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Dzmitry Lemechko <dzmitry.lemechko@elastic.co>
2025-01-30 11:55:35 +00:00
Stratoula Kalafateli
a63781a5ea
[ES|QL] Apply the timerange to the fields fetch in the editor (#208490)
## Summary

Provides the timerange in the fetch fields api. This:

- fixes the bug where the fields are not suggested when there are system
named params such as `_tstart` and `_tend`
- makes it more performant as now it checks for fields in the selected
timerange making it more performant (especially for data in the frozen
tiers)

<img width="834" alt="image"
src="https://github.com/user-attachments/assets/ec0e6f87-3149-4a3f-a620-d7eab6a852a2"
/>
2025-01-30 11:14:25 +01:00
Giorgos Bamparopoulos
17e3f82bd2
Mark xpack.infra.sources.default.fields.message as deprecated in the docs (#208683)
Mark `xpack.infra.sources.default.fields.message` as deprecated in the
docs

Closes https://github.com/elastic/kibana/issues/208679
2025-01-30 11:36:45 +02:00
Alexey Antonov
50272d651b
fix: [Security:Manage:EntityAnalytics:EntityStore] missing labels on Entity store page (#207400)
Closes: #205826
Closes: #205825

**Description**
Import entities input file upload box is missing label on entity store
page.

**Preconditions**
Security -> Manage ->Entity store page

**Steps to reproduce**
1. Open Entity store page
2. Run axe-core through the page

**Changes made**
1. added required `aria-label` attributes for mentioned places

**Screen**

<img width="1223" alt="image"
src="https://github.com/user-attachments/assets/29a76c2c-76f6-4bdc-b3f4-4feefc4009eb"
/>
2025-01-30 11:05:22 +02:00
Dzmitry Lemechko
cf7debdfa3
[scout] add script to discover playwright configs in repo (#208733)
## Summary

Adding script to discover Scout playwright tests in Kibana repo, will be
used to build CI pipeline step (running tests per plugin in a separate
worker for the start). We can also consider using it to decide if code
change should trigger only specific plugin tests to run.

Usage:
```
node scripts/scout.js discover-playwright-configs --searchPaths x-pack/platform/plugins/private/discover_enhanced
```

Output:
```
 info Searching for playwright config files in the following paths:
 info - x-pack/platform/plugins/private/discover_enhanced/**/ui_tests/{playwright.config.ts,parallel.playwright.config.ts}
 info
 info Discovered playwright config files in '1' plugins
 info [discover_enhanced] plugin:
 info - x-pack/platform/plugins/private/discover_enhanced/ui_tests/parallel.playwright.config.ts
 info - x-pack/platform/plugins/private/discover_enhanced/ui_tests/playwright.config.ts
```

More usage examples:
```
node scripts/scout.js discover-playwright-configs // by default will search in ['src/platform/plugins', 'x-pack/**/plugins'] and return all existing ones
node scripts/scout.js discover-playwright-configs --searchPaths x-pack/platform // platform ones under x-pack
node scripts/scout.js discover-playwright-configs --searchPaths x-pack/** // all under x-pack
```
2025-01-30 09:42:15 +01:00
Ania Kowalska
a376e9b169
refactor RowHeightSettings component to EUI layout (#203606) 2025-01-30 09:12:02 +01:00