Commit graph

83771 commits

Author SHA1 Message Date
elastic-renovate-prod[bot]
a402f4e584
Update dependency polished to v4 (main) (#206220)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [polished](https://polished.js.org)
([source](https://togithub.com/styled-components/polished)) |
dependencies | major | [`^3.7.2` ->
`^4.3.1`](https://renovatebot.com/diffs/npm/polished/3.7.2/4.3.1) |

---

### Release Notes

<details>
<summary>styled-components/polished (polished)</summary>

###
[`v4.3.1`](https://togithub.com/styled-components/polished/releases/tag/v4.3.1)

[Compare
Source](https://togithub.com/styled-components/polished/compare/v4.3.0...v4.3.1)

### Bug Fixes & Improvements

- Remove annotate-pure-calls plugin to address incompatibility with
later versions of rollup.
-   Update dependencies.

###
[`v4.3.0`](https://togithub.com/styled-components/polished/compare/v4.2.2...v4.3.0)

[Compare
Source](https://togithub.com/styled-components/polished/compare/v4.2.2...v4.3.0)

###
[`v4.2.2`](https://togithub.com/styled-components/polished/releases/tag/v4.2.2)

[Compare
Source](https://togithub.com/styled-components/polished/compare/v4.2.1...v4.2.2)

### Bug Fixes

- **Color Modules** - addresses an issue with longer floats in color
values.
([#&#8203;610](https://togithub.com/styled-components/polished/issues/610)
- Thanks to [@&#8203;levymetal](https://togithub.com/levymetal))

###
[`v4.2.1`](https://togithub.com/styled-components/polished/releases/tag/v4.2.1)

[Compare
Source](https://togithub.com/styled-components/polished/compare/v4.2.0...v4.2.1)

### Bug Fixes

-   **`hls(a)`** - now properly parses percentages for opacity.
-   **`rgb(a)`** - now properly parses percentages for opacity.

###
[`v4.2.0`](https://togithub.com/styled-components/polished/releases/tag/v4.2.0)

[Compare
Source](https://togithub.com/styled-components/polished/compare/v4.1.4...v4.2.0)

### Improvements

- **color Modules** - now support space-separated CSS color values for
rgb(a) and hsl(a).
([#&#8203;605](https://togithub.com/styled-components/polished/issues/605))
-   **`rgb`** - now accepts optional opacity value.
-   **`hsl`** - now accepts optional opacity value.

###
[`v4.1.4`](https://togithub.com/styled-components/polished/releases/tag/v4.1.4)

[Compare
Source](https://togithub.com/styled-components/polished/compare/v4.1.3...v4.1.4)

### Bug Fixes

- **mix** - remove unnecessary division by 1
([#&#8203;59](https://togithub.com/styled-components/polished/issues/59))

###
[`v4.1.3`](https://togithub.com/styled-components/polished/releases/tag/v4.1.3)

[Compare
Source](https://togithub.com/styled-components/polished/compare/v4.1.2...v4.1.3)

### Bug Fixes

-   Addressed several performance issues with regexes.

###
[`v4.1.2`](https://togithub.com/styled-components/polished/releases/tag/v4.1.2)

[Compare
Source](https://togithub.com/styled-components/polished/compare/v4.1.1...v4.1.2)

### Bug Fixes

- **fluidRange** - updated return value to use an array to address
unclear object property typing error in flow.

###
[`v4.1.1`](https://togithub.com/styled-components/polished/releases/tag/v4.1.1)

[Compare
Source](https://togithub.com/styled-components/polished/compare/v4.1.0...v4.1.1)

### Bug Fixes

- **scarf** - removed scarf analytics package due to yarn
incompatibilities and concerns over GDPR compliance.

###
[`v4.1.0`](https://togithub.com/styled-components/polished/releases/tag/v4.1.0)

[Compare
Source](https://togithub.com/styled-components/polished/compare/v4.0.5...v4.1.0)

### Introducing polished.js v4.1.0!

We're super stoked to announce that polished.js v4.1.0 is officially
out! It is available via your package manager of choice. This will be
the final non-patch release before v5.

`npm install polished`
`yarn add polished`

#### Release Highlights

##### New Module

- **`remToPx`**: We've introduced a new module to handle converting to
`rem` values to `px` values.
([#&#8203;376](https://togithub.com/styled-components/polished/issues/376))

##### Analytics

- We are now leveraging [Scarf](https://scarf.sh) to track package
analytics. You can opt-out of this functionality by following [these
instructions](https://docs.scarf.sh/package-analytics/#as-a-user-of-a-package-using-scarf-js-how-can-i-opt-out-of-analytics)

###
[`v4.0.5`](https://togithub.com/styled-components/polished/releases/tag/v4.0.5)

[Compare
Source](https://togithub.com/styled-components/polished/compare/v4.0.4...v4.0.5)

#### Documentation

- `readableColor` - Update docs and function signature to be clearer
about the use of each parameter.

###
[`v4.0.4`](https://togithub.com/styled-components/polished/releases/tag/v4.0.4)

[Compare
Source](https://togithub.com/styled-components/polished/compare/v4.0.3...v4.0.4)

### Bug Fixes

- **transparentize** - addressed an issue where we weren't handling
cases where floats were greater than 2 decimals.
([#&#8203;548](https://togithub.com/styled-components/polished/issues/548))
- **npm** - addressed an issue where .yarn cache was bloating published
package size, along with some other ignore optimization.
([#&#8203;553](https://togithub.com/styled-components/polished/issues/553)
Thanks [@&#8203;scttcper](https://togithub.com/scttcper))

###
[`v4.0.3`](https://togithub.com/styled-components/polished/releases/tag/v4.0.3)

[Compare
Source](https://togithub.com/styled-components/polished/compare/v4.0.2...v4.0.3)

### Bug Fix

- Updated [@&#8203;babel/runtime](https://togithub.com/babel/runtime) to
address webpack v5 compatibility issue (Thanks
[@&#8203;koba04](https://togithub.com/koba04) -
[#&#8203;547](https://togithub.com/styled-components/polished/issues/547)
)

###
[`v4.0.2`](https://togithub.com/styled-components/polished/releases/tag/v4.0.2)

### Bug Fix

- `ellipsis`: Fixes an issue where the `webkit` prefix was not properly
applied with the multiline option. (Thanks
[@&#8203;drakang4](https://togithub.com/drakang4) -
[#&#8203;546](https://togithub.com/styled-components/polished/issues/546))

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

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

---------

Co-authored-by: elastic-renovate-prod[bot] <174716857+elastic-renovate-prod[bot]@users.noreply.github.com>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: jennypavlova <dzheni.pavlova@elastic.co>
Co-authored-by: Shahzad <shahzad31comp@gmail.com>
2025-02-12 18:33:46 +01:00
Pablo Machado
78a596b05f
[SecuritySolution] Make entity store description more generic (#209130)
## Summary

Make entity store description more generic.
Before:
"Store host and user entities observed in events."
"Monitor user and host risk scores, and track anomalies."


After:
"Store entities data observed in events."
"Monitor entities' risk scores, and track anomalies."


![Screenshot 2025-01-31 at 16 29
12](https://github.com/user-attachments/assets/6c7f20aa-e78b-46eb-bbf8-38d863c166bb)
![Screenshot 2025-01-31 at 16 29
31](https://github.com/user-attachments/assets/baca1a83-a1a2-48f7-b5cd-68c00c59caee)
![Screenshot 2025-01-31 at 16 29
47](https://github.com/user-attachments/assets/f7c433a2-85cd-4a22-8e73-14ebf851c047)





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

### Identify risks

Does this PR introduce any risks? For example, consider risks like hard
to test bugs, performance regression, potential of data loss.

Describe the risk, its severity, and mitigation for each identified
risk. Invite stakeholders and evaluate how to proceed before merging.

- [ ] [See some risk
examples](https://github.com/elastic/kibana/blob/main/RISK_MATRIX.mdx)
- [ ] ...
2025-02-12 13:47:26 -03:00
Jesse Sant
62977e7069
[Security Solution] Cypress: Also cleanup proxy handler projects (#192213)
## Summary

Based on a request in [this
issue](https://github.com/elastic/security-team/issues/10341). The
Cypress cleanup task for serverless testing didn't include a command to
cleanup the project tested against when that project was created using
the proxy handler. This PR adds a second conditional method in the
cleanup task to cleanup projects with the proxy handler when it is in
use.


### Checklist
- [ ] Cypress tests run with proxy handler
- [x] Projects created during a cypress run with the proxy handler are
automatically cleaned up by the cypress cleanup task


### For maintainers

- [ ] This was checked for breaking API changes and was [labeled
appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)

---------

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Maxim Palenov <maxim.palenov@elastic.co>
Co-authored-by: dkirchan <55240027+dkirchan@users.noreply.github.com>
Co-authored-by: Gloria Hornero <gloria.hornero@elastic.co>
2025-02-12 17:33:53 +01:00
Matthias Wilhelm
7a72b14fd5
[Discover Session] Fix "Untitled" export title when exporting CSV on a dashboard (#210143)
- Fixes "Untitled" CSV exports when an export of a Discover session CSV is triggered on a Dashboard
- Switches to make use of the embeddable title when exporting CSV of Discover session embeddables on a Dashboard.
2025-02-12 17:24:43 +01:00
Mykola Harmash
22144405f7
[Obs Onboarding] Add E2E (Ensemble) test for OTel Host quickstart flow (#210022)
Partially resolves https://github.com/elastic/kibana/issues/207735
Required by https://github.com/elastic/ensemble/pull/465 🔒

This adds an E2E test for the OTel Host onboarding flow. The test is
ment to be run by [the Ensemble
workflow](https://github.com/elastic/ensemble/actions/workflows/nightly.yml)
🔒

## How to test locally

See README
`x-pack/solutions/observability/plugins/observability_onboarding/e2e/playwright/README.md`
2025-02-12 17:24:24 +01:00
Jeramy Soucy
6bfd5a581a
[kbn-scout] update category of server integration tests (#210783)
## Summary

Updates the test category for the server integration test configs from
UI_TEST to UNIT_INTEGRATION_TEST.
2025-02-12 17:23:20 +01:00
Marco Liberati
ab414b4eff
[Lens][Embeddable] Make sure to not serialize searchSessionId (#210765)
## Summary

This PR fixes a regression in the `serializeState` function used to pass
the embeddable attributes to the dashboard to save the panel. In the
refactor this function started to leak the `searchSessionId` in the
serialized state and even if not used after worse it could lead to
issues and in general it's a waste of disk space.


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

## Release notes
It fixes a regression for the serialized state for the Lens embeddable
saving attributes who should not be in the serialized state.
2025-02-12 16:59:47 +01:00
Marius Iversen
c380edd848
[Rule Migration] Resolve bug around ECS mapping node (#210608)
## Summary

This PR was initially to resolve more prompt improvements, but it will
be split into multiple PR's as it also includes a bugfix for ECS mapping
node logic, where ECS mapping node was not always part of the
translation flow.

Some minor prompt improvements are also included, an updated field
mapping for RAG rules (adding the query field) and filtering out metrics
integrations from the RAG for now.

Added telemetry metadata parameters to createModel together with
`maxRetries` as well.
2025-02-12 16:22:05 +01:00
Nathan Reese
fbce75620c
[dashboard] replace lens vis alias with lens add panel action (#210478)
Remove visualizations dependency from dashboard plugin. Instead of using
lens visTypeAlias, navigating to lens is done by executing addLensPanel
action.
2025-02-12 08:18:47 -07:00
Nathan Reese
d9d0b39272
[dashboard] remove DashboardContainerInput type (#210446)
Part of https://github.com/elastic/kibana/issues/204249

Clean up work from embeddable refactor. PR removes
`DashboardContainerInput` type, which is a duplicate of `DashboardState`

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2025-02-12 08:16:48 -07:00
Elena Shostak
4f8d318a5c
CodeQL RAM setting (#210846)
## Summary

PR updates the GitHub Actions workflow to allocate more memory for
CodeQL.

CodeQL splits memory between TS and JVM, but TS requires most of the
memory.
By doubling the available memory, we allow TS to utilize the full
capacity, mitigating failures with OOM.

Refer to

59a77a873c/javascript/resources/tools/autobuild.sh (L7-L13)

Test run results:
1328436887/workflow


### 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-02-12 15:14:59 +00:00
Maria Iriarte
c4ecd0d67c
[Lens] Add functional test case for heatmap x-axis label rotation (#208751)
## Summary

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


### 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
- [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-02-12 16:13:29 +01:00
Agustina Nahir Ruidiaz
f92e50a4a1
[Security Solution] [EUI Refresh] styled component migration Dashboards (#208731)
## Summary

Addresses https://github.com/elastic/kibana/issues/206439
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/6cdfbf15-9a77-488c-a0b9-42acc3fe1768

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Karen Grigoryan <karen.grigoryan@elastic.co>
2025-02-12 16:05:27 +01:00
Dmitrii Shevchenko
376754afb4
[Security Solution] Fix prebuilt rules exclusion on bulk edit (#209992)
**Resolves: https://github.com/elastic/kibana/issues/209888**

## Summary

Resolves an issue when prebuilt rules were not excluded from bulk
operations when the license tier is not sufficient to customize prebuilt
rules.

See the attached issue for reproduction steps.

**Before**


https://github.com/user-attachments/assets/0f791c4d-f98c-4b97-867d-d8da566eb3a3

**After**


https://github.com/user-attachments/assets/8ed2a1e4-d298-4173-95ca-565e0c280c21
2025-02-12 16:04:13 +01:00
Kyle Pollich
3389de3dc5
[Serverless] Exclude search connectors integration from serverless projects (#208772)
fixes https://github.com/elastic/search-team/issues/9171
## Summary

The connectors integration should be GA in ECH, but shouldn't be
available in serverless right now.

~~Prettier also triggered on these files based on our `.prettierrc`
rules, it looks like. Let me know if I should revert all the formatting
changes. There were mixed quotes in a few places, and some indentation
stuff in others.~~

I removed the prettier changes because they invited substantial
conflicts with all the whitespace changes.

### Checklist

Check the PR satisfies following conditions. 

Reviewers should verify this PR satisfies this list as well.

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

### Identify risks

Does this PR introduce any risks? For example, consider risks like hard
to test bugs, performance regression, potential of data loss.

Describe the risk, its severity, and mitigation for each identified
risk. Invite stakeholders and evaluate how to proceed before merging.

- [x] Changes serverless behavior, so I'm deploying a serverless search
project to smoke test

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2025-02-12 16:03:32 +01:00
Ying Mao
5500eab90c
Fixes Failing test: Jest Integration Tests.x-pack/platform/plugins/shared/task_manager/server/integration_tests - unrecognized task types should be no workload aggregator errors when there are removed task types (#210399)
Resolves https://github.com/elastic/kibana/issues/208459

## Summary

The fix added in this
[PR](https://github.com/elastic/kibana/pull/206598) to call the
`mark_removed_tasks_as_unrecognized` tasks sometimes throws an error if
the task is in the middle of running. This PR adds a try/catch and a
retry to the `runSoon` call.

---------

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2025-02-12 09:30:38 -05:00
Julia Bardi
6c257ab50c
[Fleet] add index and task for fleet-synced-integrations (#209762)
## Summary

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

Create `fleet-synced-integrations` index in Fleet setup, added async
task that populates the index with a doc that includes remote ES output
data and installed integrations data.

ES change to add `kibana_system` privileges:
https://github.com/elastic/elasticsearch/pull/121753

To test locally:
- run elasticsearch from source to apply the privilege changes, so that
`kibana_system` can create the index.
```
yarn es source -E xpack.security.authc.api_key.enabled=true -E xpack.security.authc.token.enabled=true  --source-path=/Users/juliabardi/elasticsearch  -E path.data=/tmp/es-data -E xpack.ml.enabled=false
```
- enable the feature flag in `kibana.dev.yml`:
`xpack.fleet.enableExperimental: ['enableSyncIntegrationsOnRemote']`
- add a remote ES output with sync enabled
- install some integrations
- wait until Fleet setup and the task runs
- verify that the index is created and contains a doc with the expected
data

```
GET fleet-synced-integrations/_search

 "hits": {
    "total": {
      "value": 1,
      "relation": "eq"
    },
    "max_score": 1,
    "hits": [
      {
        "_index": "fleet-synced-integrations",
        "_id": "fleet-synced-integrations",
        "_score": 1,
        "_source": {
          "remote_es_hosts": [
            {
              "hosts": [
                "http://remote1:80"
              ],
              "name": "remote1",
              "sync_integrations": true
            }
          ],
          "integrations": [
            {
              "package_version": "1.64.1",
              "updated_at": "2025-02-05T11:03:02.226Z",
              "package_name": "system"
            }
          ]
        }
      }
    ]
```



### 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: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2025-02-12 15:05:58 +01:00
James Gowdy
9fa8ec42a6
[ML] Making creation of data view during file upload optional (#210208)
Adds an option override to tell the file uploader not to create a data
view once ingest has finished.
This is currently not used but should be used in the near future when
creating lookup indices from the es|ql query bar.

The PR also contains some typing clean up to remove duplication.


**Before**

![image](https://github.com/user-attachments/assets/232e8c75-c021-4b5a-ac6a-f15ebb753799)

**After**

![image](https://github.com/user-attachments/assets/de583208-410f-4fbf-94f2-a84a8ac6b690)
2025-02-12 13:22:47 +00:00
Yngrid Coello
d34ee93dcf
[Logs] rename Explorer to Discover (#210772)
Closes https://github.com/elastic/kibana/issues/209240.
2025-02-12 14:18:24 +01:00
Konrad Szwarc
bc08247b7f
[EDR Workflows] Unskip uninstall_agent_from_host.cy.ts (#210348)
It seems the reason for skipping was a temporary hiccup that is no
longer occurring. Unskipping after verifying with the flaky test runner.

closes https://github.com/elastic/kibana/issues/183638
closes https://github.com/elastic/kibana/issues/207423

Flaky test runner (x50)
 `main`
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/7857
 `9.0`
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/7858
 `8.18`
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/7859
 `8.17`
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/7860
2025-02-12 14:02:00 +01:00
Shahzad
5393a45ae7
[Synthetics] Enable synthetics e2e in flaky test runner !! (#210778)
## Summary

Enable synthetics e2e in flaky test runner !!


![image](https://github.com/user-attachments/assets/d21dd0bf-e9b7-4a18-9568-22bfe09e67fd)
2025-02-12 13:55:45 +01:00
Stratoula Kalafateli
7683f01564
[ES|QL] Automate the retrieval of grouping functions (#210513)
## Summary

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

Automates the retrieval of grouping functions ( categorize and bucket )
for both the functions definitions and docs.

Buckets signatures are tricky so I overwrite them with our
implementation. Everything else is being retrieved by ES
2025-02-12 13:28:05 +01:00
elastic-renovate-prod[bot]
bcfdd13c11
Update dependency semver to ^7.7.1 (main) (#210557) 2025-02-12 13:16:24 +01:00
Bharat Pasupula
9c87ded7d1
[Automatic Import] Fix package name validation (#210770)
## Release Note

Fix package name validation on Datastream page.

## Summary

Closes - #199893

If the package name starts with a number [ Only number , alphabet ,
underscore are allowed ] then some of the script processors in the
pipeline fail with dot annotation since the fields are formed like
`ctx.123_abc.something` which fails with `Illegal Argument Exception` in
script processor.

Hence the package name has additional validation on Data stream page to
restrict it to start with an alphabet or underscore instead.

### 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)
2025-02-12 12:48:20 +01:00
Milton Hultgren
42f5b0ba17
[server-route-repository] Only validate zod schema effects in dev mode (#210412)
In https://github.com/elastic/kibana/pull/208166, we added a validation
step that verifies that all zod schemas:
a) Are built with supported types, meaning types that we can analyze for
if they are applied strictly (no excess keys)
b) Are built with any side effects (refine or transform, which may
impact the type reliability)

This doesn't impact the actual parameter validation, but is instead an
additional check on the schemas we're using.
For any violation found, we log a warning, this has the downside of
increasing our total log volume and is only really needed in development
mode.

Hence, in this PR, we're only logging these warnings if Kibana is
running in dev mode, and the PR updates all consuming plugins to pass
this context along.
2025-02-12 12:28:10 +01:00
Miriam
d6db8802da
[ObsUX][APM] Adjust timeseries charts colors (#210749)
## Summary

Because of the new order of colors within the list of data vis colors,
we need to alternate colors when loading them in sequence in the absence
of the definition of series colors overrides. This will avoid confusion
between charts that are very close in color.

For the same reasons, we might want to review and modify some of the
values ascribed to the specific ChartType in `get_timeseries_color.ts`

The bug with the charts being the same colors was introduced in this
[PR](https://github.com/elastic/kibana/pull/207070)

BEFORE


![image](https://github.com/user-attachments/assets/e8ba0797-0ae4-429c-8a43-a6688c3d1b12)

AFTER


![image](https://github.com/user-attachments/assets/bec05099-7c56-47ea-937a-34b85b953f89)


![image](https://github.com/user-attachments/assets/c38556ec-a8cf-4708-a557-de74ab268f6b)


![image](https://github.com/user-attachments/assets/e7f56647-be11-4453-9e49-9c0df607f728)
2025-02-12 11:24:01 +00:00
Ash
60918882ea
[SecuritySolution][Endpoint] Remove hardcoded agent version check for scan test (#210748)
## Summary

> [!NOTE]
> This PR is NOT unskipping the test to minimize conflicts during
backports.
> Manual backports maybe needed as some auto backports may fail as
`security_solution` folder has moved between `8.16` and `8.17`

Removes hardcoded agent version for test setup that was added before
8.15 GA.

refs
https://github.com/elastic/kibana/pull/189174#discussion_r1700257185
closes https://github.com/elastic/kibana/issues/210364

### 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)
- [ ]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials
- [ ] [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
- [ ] 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)
- [ ] 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.
- [ ] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed
- [ ] 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)

### Identify risks

Does this PR introduce any risks? For example, consider risks like hard
to test bugs, performance regression, potential of data loss.

Describe the risk, its severity, and mitigation for each identified
risk. Invite stakeholders and evaluate how to proceed before merging.

- [ ] [See some risk
examples](https://github.com/elastic/kibana/blob/main/RISK_MATRIX.mdx)
- [ ] ...
2025-02-12 12:19:11 +01:00
Ania Kowalska
aa9c4b5369
[OneDiscover][UnifiedDataTable] Apply compact Display options Popover layout (#210180)
## Summary

Closes #203377 

PR changes visual style of data table options popover, as per this
mockup (with couple of adjustments mentioned below):

![image](https://github.com/user-attachments/assets/1f05ce60-7a67-4e64-9362-0cf4f2f0f535)

>[!NOTE]
>**EDIT**
>[showDisplaySelector customRender in
EUI](https://eui.elastic.co/#/tabular-content/data-grid-toolbar#toolbar-props)
allows us to customize position of controls. I've changed
`UnifiedDataTableAdditionalDisplaySettings` to accept density control as
a prop and encapsulated logic for order of controls within this
component.


Changes within this PR:

Change range slider style
1. Change range slider style
2. Make the picker more compact, following EUI pattern (no horizontal
lines, smaller padding)
3. Move `Sample size` up

Things we decided not to solve within this PR:
~~1. Move `Sample size` up~~
2. Rename `Density` to `Cell density`
4. Add `show row stripes` toggle

Old view: 
<img width="444" alt="Screenshot 2025-02-07 at 13 12 49"
src="https://github.com/user-attachments/assets/38ad7246-c8f9-4b87-b787-c7ae1dc4282c"
/>



New view:
<img width="444" alt="Screenshot 2025-02-10 at 13 52 44"
src="https://github.com/user-attachments/assets/e634170a-7aca-4ea2-a7f8-4500421ec064"
/>


### 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)~~
~~- [ ]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials~~
~~- [ ] [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~~
~~- [ ] 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)~~
~~- [ ] 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.~~
~~- [ ] [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)

### Identify risks

Does this PR introduce any risks? For example, consider risks like hard
to test bugs, performance regression, potential of data loss.

Describe the risk, its severity, and mitigation for each identified
risk. Invite stakeholders and evaluate how to proceed before merging.

- [ ] [See some risk
examples](https://github.com/elastic/kibana/blob/main/RISK_MATRIX.mdx)
- [ ] ...

---------

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2025-02-12 12:07:27 +01:00
Robert Oskamp
4bd80160b2
[kbn-scout] add test config category to reporting (#210167)
## Summary

This PR adds a test config category to the scout reporting. This allows
us to distinguish between UI and API FTR tests.
A new property `testConfigCategory` has been added to all FTR configs
that don't already inherit it from a higher level config.
2025-02-12 11:17:04 +01:00
Umberto Pepato
a74066d6f8
[ResponseOps][Alerts] Move the alerts table to a dedicated package (#207878)
## Summary

This PR turns the AlertsTable into a standalone component, making it
independent from the `TriggersActionsUI` plugin.

#### Removes the alerts table registry

All configuration is now managed through the AlertsTable component
props. Shared configurations are handled by giving consumers the ability
to directly provide alerts table wrapper components (see for example the
`renderAlertsTable` prop of `getCases`).

#### Moves the alerts table to dedicated package(s)

Following the feature-driven structure we're introducing for ResponseOps
(alerting) client-side packages:
- `@kbn/response-ops-alerts-table`
- `@kbn/response-ops-alerts-apis`
- `@kbn/response-ops-alerts-fields-browser`

#### Initial work on improving composition and organization

- Reorganizes the table code into a by-entity-type folder structure
(`components/`, `hooks/`, ...)
- Simplifies some components and breaks into smaller units when possible

## To verify

For consumers of the alerts table:
- Check that all your tables have the same behavior as before (columns,
sort, row actions, bulk actions, etc.)
- Check that your "shared" tables (i.e. cases alerts view in O11y and
Security) have the expected configuration and behavior

> [!WARNING]
> This PR moves a lot of files. Git might not always recognize the
correct delete/add file pairs. If you see weird diffs feel free to reach
out for help!

### Checklist

- [x]
[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
- [ ] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed

### Identify risks

| Risk | Description | Severity | Mitigation |
|---|---|---|---|
| Table misconfigurations | Some table configurations might slightly
differ from the previous AlertsTableRegistry-backed version | Low |
Quick fix |

## References

Closes #195180

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Christos Nasikas <xristosnasikas@gmail.com>
2025-02-12 11:07:55 +01:00
Shahzad
d8789819fd
[Synthetics] Fix flaky tests for default rules !! (#210595)
## Summary

Fix flaky tests for custom rule and step detail !!


## Changes

`custom_status_alert.journey.ts
`

Rule name filling was flaky so sometimes it was keeping the default name
value, so i have removed it to simplify and keep default rule name
always which is "Synthetics monitor status rule"

`step_details.journey.ts
`

Monitor wasn't being created due to a bad request on browser monitor
payload, which was causing this test to fail, monitor absence was
causing test to fail.
2025-02-12 10:39:07 +01:00
Ievgen Sorokopud
652385cf80
[SIEM migrations] ES|QL editor: Broken suggestions menu (#11535) (#210603)
## Summary

These changes fix the issue with the shifted suggestion menu of the
ES|QL editor integrated inside the flyout.

This is just a workaround and we will need to remove this once the issue
is fixed by EUI team. Here is the ticket to track:
https://github.com/elastic/eui/issues/8269

**More details regarding the fix**:
Slack conversation: [internal
link](https://elastic.slack.com/archives/C7QC1JV6F/p1736501365531779)

### Screenshots

**Before the fix**

<img width="1653" alt="Screenshot 2025-02-11 at 15 51 42"
src="https://github.com/user-attachments/assets/4925a706-0c31-4730-b37f-acf3bbd0447c"
/>

**After the fix**

<img width="1651" alt="Screenshot 2025-02-11 at 15 52 19"
src="https://github.com/user-attachments/assets/475d45d2-cb42-4a46-ae5c-6e8cef874b40"
/>
2025-02-12 10:04:40 +01:00
Kibana Machine
d126a68aef
[api-docs] 2025-02-12 Daily api_docs build (#210730)
Generated by
https://buildkite.com/elastic/kibana-api-docs-daily/builds/981
2025-02-12 08:25:28 +01:00
Sid
45d9fa01fe
[Session Index] Attach alias to index when index name changes (#210176)
Closes https://github.com/elastic/kibana/issues/210179

## Summary

While attempting to attach an alias to the session index, we were using
`.kibana_security_session_1` as the index name. However, the session
index, if upgraded using the Upgrade assistant gets renamed to
`.kibana_security_session_1-reindexed-for-9` and
`.kibana_security_session_1` is set as an alias pointing to this index.
When we try to reattach the alias using this as the index name, ES
throws an error. This doesn't affect Kibana functionality but it
increases the number of errors thrown in the logs.

**This PR corrects this issue by attaching the alias to the index only
when alias isn't already present. We now only assign the alias if not
present - and not during creation of the index as it is created with the
alias in it's settings.**

### Release note
Fixes the assignment of the Session index alias by only attaching it if
not already present.

## How to test

To see the error in the logs, you'll need at least 7.x and 8.x checked
out locally. Once done, run bootstrap.

#### Step 1: On 7.17
- Start ES with `yarn es snapshot --license trial -E
path.data=/tmp/esdata`
- Start Kibana and login with elastic user
- You can check the contents of Kibana session index:

```
GET .kibana_security_session_1/_search
{
  "query": {
    "match_all": {}
  }
}
```
Should return a single document
- You can now shut kibana and ES


#### Step 2: on 8.x
- Make a backup of the esdata above `cp -r /tmp/esdata /tmp/esdatabkp`
- Start ES as above `yarn es snapshot --license trial -E
path.data=/tmp/esdata`
- Start kibana and login
- Navigate to Upgrade assistant. You should see at least 2 System
indices that require migration (Security and Kibana)
- Start the migrate index process (Step 2 in the UA interface)
- Once done, trigger a local restart of kibana either by restarting
using the start script or just triggering a file save on any file in
your IDE
- You should start seeing the error described above in 100ms increments
till it reaches 10000ms and then it's every 10 seconds
- Navigate to Dev tools and run
```
GET .kibana_security_session/_alias
```
You should see the index as 
```
.kibana_security_session_reindexed-for-9 {
    aliases: {
        // aliases of the index including kibana_security_session_1
    }
}
```

#### Verify the fix
To verify, we have a couple of options - either clone the PR and go
through the same steps as Step 2 above but for 9.0. The easier option is
replace the code of function `attachAliasToIndex` in `session_index.ts`
in 8.x with the changes in this PR. This should restart your kibana
server and you will no longer see the error in the logs.


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

---------

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2025-02-12 08:00:21 +01:00
Julian Gernun
0897d08786
[Response Ops][Cases] Cases with empty string assignees throwing error (#209973)
## Summary
Closes https://github.com/elastic/kibana/issues/209950

Testing steps in referenced issue

## Release note
Fix error message in cases list if case assignee is an empty string
2025-02-12 07:06:44 +01:00
Samiul Monir
19fa1b828c
Make ES models visible in the Inference Flyout (#210699)
## Summary

This PR adds a url/link to the `model_id` field description for
Elasticsearch providers only. This is our own models and the decision
was to make the models visible in the flyout.


https://github.com/user-attachments/assets/eee3c716-dbce-4ae1-b73b-2dceaedb8225




### 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
2025-02-11 23:48:04 -05:00
Tiago Costa
d6e4b15130
chore(NA): update versions after v8.17.3 bump (#210648)
This PR is a simple update of our versions file after the recent bumps.
2025-02-12 01:23:33 +00:00
Tiago Costa
69edf65f8f
chore(NA): update versions after v8.16.5 bump (#210650)
This PR is a simple update of our versions file after the recent bumps.
2025-02-12 01:23:18 +00:00
Philippe Oberti
5f50c8a37d
[Security Solution][Expandable flyout] remove unused state property on flyoutPanelProps (#210697)
## Summary

While working on improving the history feature of the expandable flyout
package, I realized that we've kept a `state` property on. our
`flyoutPanelProps` interface that has been unused since the flyout got
released. This property was intended to be used for some scenario we had
imagined, but over the last couple of years of using the expandable
flyout, it was never needed.
This PR makes a very small cleanup to remove that `state` property. We
can add it back on day if a need arises.

### 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
2025-02-11 23:34:01 +01:00
Candace Park
eac85d4d99
[Defend Workflows][Eui Visual Refresh] Removed transparentize usage in responder (#208457)
## Summary

- [x] Removed use of color calculating function `transparentize()` 
- [x] Begin removal of JSON tokens when possible in favor of colors
tokens

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2025-02-11 23:28:46 +01:00
Tim Sullivan
145d295a75
[Solution nav] Use flyout for Stack management Security Solution (#210471)
This reverts commit 949d5d1762 from
https://github.com/elastic/kibana/pull/208632#issuecomment-2644086780.

## Summary

Closes https://github.com/elastic/kibana/issues/208636
Part of https://github.com/elastic/kibana-team/issues/1439

</details>
<details><summary>Security / Serverless (no longer in this PR)</summary>

![optimized-serverless-security 4 48
01 PM](https://github.com/user-attachments/assets/33df6104-8de7-405e-8fd6-3082fc2dadb6)

</details>
<details><summary>Security / Stateful (no longer in this PR)</summary>

![optimized-stateful-security 4 48
01 PM](https://github.com/user-attachments/assets/4e654a8f-e802-4484-850e-f7b67a4fefa8)

</details>

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

### Identify risks

Does this PR introduce any risks? For example, consider risks like hard
to test bugs, performance regression, potential of data loss.

Describe the risk, its severity, and mitigation for each identified
risk. Invite stakeholders and evaluate how to proceed before merging.

- [ ] New lists of Stack Management navigation items were added for
flyout menus in serverless projects using static declarations. There is
a risk that these lists have missing items, which could hurt user
experience by making the pages harder to navigate to.
2025-02-11 23:04:25 +01:00
Philippe Oberti
161ce34cf7
[Security Solution][THI] remove usages of EUI json tokens (#210482)
## Summary

This PR is probably the final PR that makes the changes to support EUI
Borealis. It focuses on removing all the usage of EUI Json tokens.

You will notice different approaches while removing the tokens:
- for some cases, the changes were done using `css from
'@emotions/react'` as the components using the tokens were already using
`euiTheme` or adding it was straightforward and required the minimal
amount of changes
- for some cases, where the css changes were pretty involved, a hook was
created to be able to import the styles and apply them in the components
- finally for other cases, esepcially if the styled components were
extracted in a different file and were used within many others, I
decided to create reusable components. This allowed to not change all
the files impacted and limit the number of files modified in this PR.

Feel free to comment on any of the approaches and suggest better
options!

https://github.com/elastic/kibana/issues/201889

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2025-02-11 22:11:55 +01:00
Kyle Pollich
6df81592ea
[Fleet] Fix elastic-agent docker image path (#210008)
## Summary

Starting in 9.1-SNAPSHOT, the Elastic Agent image has moved from the
`beats` namespace to its own `elastic-agent` namespace in
docker.elastic.co. This PR updates a few places where the old path is in
use.

### Checklist

Check the PR satisfies following conditions. 

Reviewers should verify this PR satisfies this list as well.

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

### Identify risks

Does this PR introduce any risks? For example, consider risks like hard
to test bugs, performance regression, potential of data loss.

Describe the risk, its severity, and mitigation for each identified
risk. Invite stakeholders and evaluate how to proceed before merging.

- [ ] This was done with a generic find/replace across the Kibana
codebase. I did not test the changes extensively and made a few changes
outside of the Fleet codebase. Codeowners please be aware.
2025-02-11 22:04:03 +01:00
Alberto Blázquez
00388ed2e1
Implement Asset Inventory filters (#207094)
## Summary

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

Implements filters section for Asset Inventory reusing `FilterGroup`
component from `@kbn/alerts-ui-shared` package.

### Screenshot

<img width="1740" alt="Screenshot 2025-01-17 at 16 21 55"
src="https://github.com/user-attachments/assets/bf83d9e8-4919-498d-a0ab-fdc3df711d4e"
/>

### Definition of done

- [x] Add multiple dropdown filters labelled:
  - Type - filter by `asset.category`
  - Criticality - filter by `asset.criticality`
  - Tags -  filter by `asset.tags.name`
  - Name - filter TBD
- [x] Ensure each dropdown allows users to select multiple options to
filter the inventory data.
- [x] Add a button or dropdown labeled "More filters" that exposes
advanced filtering options, including "Reset control" and "Edit
control".
- [x] Verify if the `FilterGroup` component from
`packages/kbn-alerts-ui-shared` can be reused to wrap the required
functionalities.
- It can be reused, but the detection engine uses `AlertFilterControls`
instead, which is a higher-level alternative. And that's what I did in
Asset Inventory too
- [x] Ensure the filters are functional on the front-end and can
interact with placeholder data.

### Out of scope

- Backend data filtering logic
- Implementation of the actual data fetching based on filters

### How to test

Follow the "how to test" instructions written on this PR:
- https://github.com/elastic/kibana/pull/206115

### Checklist

- [x] 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.
- [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)

### Risks

No risks at all.
2025-02-11 12:36:15 -08:00
Nicolas Chaulet
73536e3378
[Fleet] Fix retrieving agent policies accross space to validate outputs (#210474) 2025-02-11 21:18:43 +01:00
Samiul Monir
dc0ccc4b7d
[Search]: Fix Number type field to have correct property (#210462)
## Summary

This PR includes the following updates:  
- Converted `readOnly` fields to `disabled` to ensure consistency across
all view-only fields.
- Added an `isPreconfigured` check to disable the `num_allocations`
field. While `num_allocations` is the only updatable field for
`Elasticsearch` services, it cannot be modified if the endpoint is
preconfigured.

### Not preconfigured
![Screenshot 2025-02-10 at 3 54
32 PM](https://github.com/user-attachments/assets/a70aa6a4-69b5-4f75-95ba-f3793b6992d2)

### Preconfigured
![Screenshot 2025-02-10 at 3 54
19 PM](https://github.com/user-attachments/assets/4e174b33-307a-4707-974e-a91e1ca56649)

### 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-02-11 14:47:13 -05:00
Khristinin Nikita
0007203278
Change filter for rule monitoring gaps (#209983)
## Change filter for rule monitoring gaps

Keep only 1 button, and make selection more clear





https://github.com/user-attachments/assets/f720ce03-fc38-42ef-87aa-99e22accc646

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2025-02-11 19:30:48 +01:00
Davis McPhee
056eba2937
Update Logs Explorer deprecation messages (#201307)
## Summary

It was pointed out in
https://github.com/elastic/kibana/pull/199255#discussion_r1842800664
that the Logs Explorer deprecation messages may no longer be accurate
now that contextual logs features are only available in Discover in the
Observability solution view for 8.x:

![image](https://github.com/user-attachments/assets/d0a63b52-5f6c-44b0-af77-867897e26abb)

I'm not really sure what they should updated to instead, so hopefully
@elastic/obs-ux-logs-team can offer some suggestions.

### 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/packages/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
- [ ] [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
- [ ] 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)
- [ ] 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.
- [ ] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed
- [ ] 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-02-11 14:26:33 -04:00
Sergi Romeu
46cd29e60b
[APM] Remove error.id in getErrorGroupMainStatistics query as it's not used (#210613)
## Summary

Closes #210610

This PR removes `error.id` field from being queried at
`getErrorGroupMainStatistics`, as it was not being used, as it was
required. If we didn't have this field, the endpoint call would crash.
2025-02-11 19:13:51 +01:00
Hannah Mudge
3716441c38
[Embeddable] Fix presentation panel styles (#210113)
## Summary

When https://github.com/elastic/kibana/pull/207275 merged, some Security
Cypress tests started failing because the embeddables were no longer
taking up any width in their containers. This was caused by us switching
over to using the CSS container type `inline-size` on the hover anchor
wrapper, which makes it so that it can no longer be sized to its
contents (see [this
comment](https://stackoverflow.com/a/73980194/28754956) for a really
good explanation). Instead, the width of the `PresentationPanel` needs
to be set **by the parent** - so, by applying the `min-width` to the
Metric wrapper rather than the Lens embeddable, the metric now takes up
the expected width:

| Before | After |
|--------|--------|
|
![image](https://github.com/user-attachments/assets/0aa1d563-e50f-4a3d-a91e-3555b7e0d48d)
|
![image](https://github.com/user-attachments/assets/1fa9d728-b84e-4c1a-958f-76734ff6c95f)
|

When doing this work, I noticed that, because we added a delay to hiding
the hover actions, there was a slightly jarring transition when hovering
over panels without `border` enabled. So, I fixed this by adding a
transition to the border on the panel as well, so that it matches the
animation on the hover actions:

| Before | After |
|--------|--------|
| ![Feb-07-2025
11-09-33](https://github.com/user-attachments/assets/9b2a0c67-47fe-46a5-81e8-42231ed7b0a3)
| ![Feb-07-2025
11-08-26](https://github.com/user-attachments/assets/35d50475-174c-4cba-8c42-76521f79f235)
|



### 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] 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-02-11 11:11:18 -07:00