Commit graph

1713 commits

Author SHA1 Message Date
Sandra G
ba945c9851
[Data Usage] functional tests (#203166)
## Summary

Functional tests for data usage UI.

- `data_streams` route is intercepted, due to filtering out zero size
data streams which will happen because metering api needs time to
aggregate data
- `autoops_api` is using the mock server as there will be no data for it
to return
- tests will only run in local serverless and not MKI due to using the
autoops mock server that won't return data for created data streams
- adds `interceptRequest` functionality to FTR `browser` service

## Tests
- data stream filter dropdown renders with created data streams of
`data_streams` response and are checked
- data stream filter dropdown renders badge with correct number of
selected data streams
- charts render from `data_streams` route response
- chart legends render with correct items
- popover renders for legend items
- links in popovers correctly navigate and update navigation between
different data stream items
2024-12-12 08:08:08 -05:00
Marco Antonio Ghiani
43205c712c
[Observability Onboarding] Remove legacy team ownership (#203808)
## 📓 Summary

The @elastic/obs-ux-onboarding-team is a subset of the wider
@elastic/obs-ux-logs-team, which share the same ownership of the
onboarding plugins.

To reduce the noise and limitations around required team reviews and
pings, we'll remove the onboarding team and leave the logs team as the
unique owner of the onboarding, where these same engineers will cover
its maintenance.

Co-authored-by: Marco Antonio Ghiani <marcoantonio.ghiani@elastic.co>
2024-12-12 13:04:55 +01:00
Gerard Soldevila
50068fd9ba
Sustainable Kibana Architecture: Move modules under x-pack/packages/security-solution (#203522)
## Summary

This PR aims at relocating some of the Kibana modules (plugins and
packages) into a new folder structure, according to the _Sustainable
Kibana Architecture_ initiative.

> [!IMPORTANT]
> * We kindly ask you to:
> * Manually fix the errors in the error section below (if there are
any).
> * Search for the `packages[\/\\]` and `plugins[\/\\]` patterns in the
source code (Babel and Eslint config files), and update them
appropriately.
> * Manually review
`.buildkite/scripts/pipelines/pull_request/pipeline.ts` to ensure that
any CI pipeline customizations continue to be correctly applied after
the changed path names
> * Review all of the updated files, specially the `.ts` and `.js` files
listed in the sections below, as some of them contain relative paths
that have been updated.
> * Think of potential impact of the move, including tooling and
configuration files that can be pointing to the relocated modules. E.g.:
>     * customised eslint rules
>     * docs pointing to source code

> [!NOTE]
> This PR has been auto-generated.
> Do not attempt to push any changes unless you know what you are doing.
> Please use
[#sustainable_kibana_architecture](https://elastic.slack.com/archives/C07TCKTA22E)
Slack channel for feedback.


#### 7 package(s) are going to be relocated:

  | Id | Target folder |
  | -- | ------------- |
| `@kbn/ecs-data-quality-dashboard` |
`x-pack/solutions/security/packages/ecs_data_quality_dashboard` |
| `@kbn/security-solution-distribution-bar` |
`x-pack/solutions/security/packages/distribution_bar` |
| `@kbn/security-solution-features` |
`x-pack/solutions/security/packages/features` |
| `@kbn/security-solution-navigation` |
`x-pack/solutions/security/packages/navigation` |
| `@kbn/security-solution-side-nav` |
`x-pack/solutions/security/packages/side_nav` |
| `@kbn/security-solution-upselling` |
`x-pack/solutions/security/packages/upselling` |
| `@kbn/securitysolution-data-table` |
`x-pack/solutions/security/packages/data_table` |


<details>
<summary>Updated references</summary>

```
./.eslintrc.js
./package.json
./packages/kbn-repo-packages/package-map.json
./packages/kbn-ts-projects/config-paths.json
./tsconfig.base.json
./tsconfig.base.type_check.json
./tsconfig.refs.json
./x-pack/solutions/security/packages/data_table/jest.config.js
./x-pack/solutions/security/packages/distribution_bar/jest.config.js
./x-pack/solutions/security/packages/ecs_data_quality_dashboard/jest.config.js
./x-pack/solutions/security/packages/features/jest.config.js
./x-pack/solutions/security/packages/navigation/jest.config.js
./x-pack/solutions/security/packages/side_nav/jest.config.js
./x-pack/solutions/security/packages/upselling/jest.config.js
./x-pack/solutions/security/plugins/security_solution_serverless/tsconfig.type_check.json
./yarn.lock
```
</details>
<details>
<summary>Updated relative paths</summary>

```
x-pack/solutions/security/packages/data_table/jest.config.js:11
x-pack/solutions/security/packages/data_table/tsconfig.json:2
x-pack/solutions/security/packages/distribution_bar/jest.config.js:11
x-pack/solutions/security/packages/distribution_bar/tsconfig.json:2
x-pack/solutions/security/packages/ecs_data_quality_dashboard/jest.config.js:21
x-pack/solutions/security/packages/ecs_data_quality_dashboard/tsconfig.json:2
x-pack/solutions/security/packages/features/jest.config.js:10
x-pack/solutions/security/packages/features/tsconfig.json:2
x-pack/solutions/security/packages/navigation/jest.config.js:10
x-pack/solutions/security/packages/navigation/tsconfig.json:2
x-pack/solutions/security/packages/side_nav/jest.config.js:10
x-pack/solutions/security/packages/side_nav/src/solution_side_nav.stories.tsx:11
x-pack/solutions/security/packages/side_nav/tsconfig.json:2
x-pack/solutions/security/packages/upselling/jest.config.js:10
x-pack/solutions/security/packages/upselling/tsconfig.json:2
```
</details>
<details>
<summary>Script errors</summary>

```

```
</details>

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Angela Chuang <yi-chun.chuang@elastic.co>
Co-authored-by: Karen Grigoryan <karen.grigoryan@elastic.co>
2024-12-12 12:18:10 +01:00
Gerard Soldevila
84b19ec3ea
Sustainable Kibana Architecture: Move modules owned by @elastic/obs-ai-assistant (#202763)
## Summary

This PR aims at relocating some of the Kibana modules (plugins and
packages) into a new folder structure, according to the _Sustainable
Kibana Architecture_ initiative.

> [!IMPORTANT]
> * We kindly ask you to:
> * Manually fix the errors in the error section below (if there are
any).
> * Search for the `packages[\/\\]` and `plugins[\/\\]` patterns in the
source code (Babel and Eslint config files), and update them
appropriately.
> * Manually review
`.buildkite/scripts/pipelines/pull_request/pipeline.ts` to ensure that
any CI pipeline customizations continue to be correctly applied after
the changed path names
> * Review all of the updated files, specially the `.ts` and `.js` files
listed in the sections below, as some of them contain relative paths
that have been updated.
> * Think of potential impact of the move, including tooling and
configuration files that can be pointing to the relocated modules. E.g.:
>     * customised eslint rules
>     * docs pointing to source code

> [!NOTE]
> * This PR has been auto-generated.
> * Any manual contributions will be lost if the 'relocate' script is
re-run.
> * Try to obtain the missing reviews / approvals before applying manual
fixes, and/or keep your changes in a .patch / git stash.
> * Please use
[#sustainable_kibana_architecture](https://elastic.slack.com/archives/C07TCKTA22E)
Slack channel for feedback.

#### 5 plugin(s) are going to be relocated:

| Id | Target folder |
| -- | ------------- |
| `@kbn/ai-assistant-management-plugin` |
`src/platform/plugins/shared/ai_assistant_management/selection` |
| `@kbn/data-usage-plugin` |
`x-pack/platform/plugins/private/data_usage` |
| `@kbn/observability-ai-assistant-app-plugin` |
`x-pack/solutions/observability/plugins/observability_ai_assistant_app`
|
| `@kbn/observability-ai-assistant-management-plugin` |
`x-pack/solutions/observability/plugins/observability_ai_assistant_management`
|
| `@kbn/observability-ai-assistant-plugin` |
`x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant`
|




#### 2 packages(s) are going to be relocated:

| Id | Target folder |
| -- | ------------- |
| `@kbn/observability-ai-common` |
`x-pack/solutions/observability/packages/observability_ai/observability_ai_common`
|
| `@kbn/observability-ai-server` |
`x-pack/solutions/observability/packages/observability_ai/observability_ai_server`
|


<details >
<summary>Updated references</summary>

```
./.github/paths-labeller.yml
./.i18nrc.json
./docs/developer/plugin-list.asciidoc
./package.json
./packages/kbn-repo-packages/package-map.json
./packages/kbn-ts-projects/config-paths.json
./src/dev/storybook/aliases.ts
./src/platform/plugins/shared/ai_assistant_management/selection/jest.config.js
./src/platform/plugins/shared/discover/tsconfig.type_check.json
./tsconfig.base.json
./tsconfig.base.type_check.json
./tsconfig.refs.json
./x-pack/.i18nrc.json
./x-pack/platform/plugins/private/data_usage/jest.config.js
./x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/jest.config.js
./x-pack/plugins/enterprise_search/kibana.jsonc
./x-pack/plugins/observability_solution/observability_ai_assistant/server/functions/index.ts
./x-pack/plugins/observability_solution/observability_ai_assistant_app/tsconfig.type_check.json
./x-pack/plugins/search_connectors/kibana.jsonc
./x-pack/solutions/observability/packages/observability_ai/observability_ai_common/jest.config.js
./x-pack/solutions/observability/packages/observability_ai/observability_ai_server/jest.config.js
./x-pack/solutions/observability/plugins/observability_ai_assistant_app/jest.config.js
./x-pack/solutions/observability/plugins/observability_ai_assistant_app/scripts/evaluation/README.md
./x-pack/solutions/observability/plugins/observability_ai_assistant_management/jest.config.js
./x-pack/test/tsconfig.type_check.json
./x-pack/test_serverless/tsconfig.type_check.json
./yarn.lock
```

</details><details >
<summary>Updated relative paths</summary>

```
src/platform/plugins/shared/ai_assistant_management/selection/jest.config.js:12
src/platform/plugins/shared/ai_assistant_management/selection/tsconfig.json:2
src/platform/plugins/shared/ai_assistant_management/selection/tsconfig.type_check.json:18
src/platform/plugins/shared/ai_assistant_management/selection/tsconfig.type_check.json:2
src/platform/plugins/shared/ai_assistant_management/selection/tsconfig.type_check.json:21
src/platform/plugins/shared/ai_assistant_management/selection/tsconfig.type_check.json:24
src/platform/plugins/shared/ai_assistant_management/selection/tsconfig.type_check.json:27
src/platform/plugins/shared/ai_assistant_management/selection/tsconfig.type_check.json:30
src/platform/plugins/shared/ai_assistant_management/selection/tsconfig.type_check.json:33
src/platform/plugins/shared/ai_assistant_management/selection/tsconfig.type_check.json:36
src/platform/plugins/shared/ai_assistant_management/selection/tsconfig.type_check.json:39
src/platform/plugins/shared/ai_assistant_management/selection/tsconfig.type_check.json:42
src/platform/plugins/shared/ai_assistant_management/selection/tsconfig.type_check.json:45
src/platform/plugins/shared/ai_assistant_management/selection/tsconfig.type_check.json:48
src/platform/plugins/shared/ai_assistant_management/selection/tsconfig.type_check.json:51
src/platform/plugins/shared/ai_assistant_management/selection/tsconfig.type_check.json:54
src/platform/plugins/shared/ai_assistant_management/selection/tsconfig.type_check.json:57
x-pack/platform/plugins/private/data_usage/jest.config.js:10
x-pack/platform/plugins/private/data_usage/tsconfig.json:11
x-pack/platform/plugins/private/data_usage/tsconfig.json:2
x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/jest.config.js:10
x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.json:2
x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.json:7
x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:100
x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:103
x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:2
x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:22
x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:25
x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:28
x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:31
x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:34
x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:37
x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:40
x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:43
x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:46
x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:49
x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:52
x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:55
x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:58
x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:61
x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:64
x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:67
x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:70
x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:73
x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:76
x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:79
x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:82
x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:85
x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:88
x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:9
x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:91
x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:94
x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:97
x-pack/solutions/observability/packages/observability_ai/observability_ai_common/jest.config.js:10
x-pack/solutions/observability/packages/observability_ai/observability_ai_common/tsconfig.json:2
x-pack/solutions/observability/packages/observability_ai/observability_ai_server/jest.config.js:10
x-pack/solutions/observability/packages/observability_ai/observability_ai_server/tsconfig.json:2
x-pack/solutions/observability/plugins/observability_ai_assistant_app/jest.config.js:10
x-pack/solutions/observability/plugins/observability_ai_assistant_app/scripts/evaluation/read_kibana_config.ts:16
x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.json:2
x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.json:7
x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:100
x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:103
x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:106
x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:109
x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:112
x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:118
x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:121
x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:124
x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:127
x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:130
x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:133
x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:136
x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:139
x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:142
x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:145
x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:148
x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:151
x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:154
x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:157
x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:160
x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:163
x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:166
x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:169
x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:172
x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:175
x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:178
x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:181
x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:184
x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:190
x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:193
x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:2
x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:22
x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:28
x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:31
x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:34
x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:37
x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:40
x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:43
x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:46
x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:49
x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:52
x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:55
x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:58
x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:61
x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:64
x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:67
x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:70
x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:73
x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:76
x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:79
x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:82
x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:85
x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:88
x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:9
x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:91
x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:94
x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:97
x-pack/solutions/observability/plugins/observability_ai_assistant_management/jest.config.js:10
x-pack/solutions/observability/plugins/observability_ai_assistant_management/tsconfig.json:2
x-pack/solutions/observability/plugins/observability_ai_assistant_management/tsconfig.type_check.json:18
x-pack/solutions/observability/plugins/observability_ai_assistant_management/tsconfig.type_check.json:2
x-pack/solutions/observability/plugins/observability_ai_assistant_management/tsconfig.type_check.json:21
x-pack/solutions/observability/plugins/observability_ai_assistant_management/tsconfig.type_check.json:24
x-pack/solutions/observability/plugins/observability_ai_assistant_management/tsconfig.type_check.json:27
x-pack/solutions/observability/plugins/observability_ai_assistant_management/tsconfig.type_check.json:30
x-pack/solutions/observability/plugins/observability_ai_assistant_management/tsconfig.type_check.json:33
x-pack/solutions/observability/plugins/observability_ai_assistant_management/tsconfig.type_check.json:36
x-pack/solutions/observability/plugins/observability_ai_assistant_management/tsconfig.type_check.json:39
x-pack/solutions/observability/plugins/observability_ai_assistant_management/tsconfig.type_check.json:45
x-pack/solutions/observability/plugins/observability_ai_assistant_management/tsconfig.type_check.json:48
x-pack/solutions/observability/plugins/observability_ai_assistant_management/tsconfig.type_check.json:51
x-pack/solutions/observability/plugins/observability_ai_assistant_management/tsconfig.type_check.json:54
x-pack/solutions/observability/plugins/observability_ai_assistant_management/tsconfig.type_check.json:60
x-pack/solutions/observability/plugins/observability_ai_assistant_management/tsconfig.type_check.json:63
```

</details>
2024-12-12 04:35:10 -06:00
Nick Partridge
93122486d0
[Visual Refresh] Borealis visualization palettes (#201015)
Adds support for toggling between the old Amsterdam themed visualizations palettes and the new Borealis themed palettes.
2024-12-11 14:58:56 -06:00
Shahzad
37e107e1dc
[Obs UX Management] Migrate leftover code owner !! (#203814)
## Summary

Migrate leftover code owner !!

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2024-12-11 12:08:52 -07:00
Nick Partridge
122a8d27ce
Sustainable Kibana Architecture: Update all CODEOWNER paths to new destinations (#203682) 2024-12-11 12:59:55 -06:00
Gerard Soldevila
0b9179acbd
Sustainable Kibana Architecture: Add scripts/relocate CLI (beta) (#203803)
## Summary

Adds the `node scripts/relocate` functionality, that helps moving
modules to their intended locations, according to the _Sustainable
Kibana Architecture_.

Please refer to the README.md for further details and usage.

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2024-12-11 17:10:37 +01:00
Jesus Wahrman
c423e3e9d3
Make link to es deprecation logs more useful (#203487)
## Summary

resolves https://github.com/elastic/kibana/issues/201538

Added a profile to the deprecation logs so by default it shows the
columns. Decided to allow this behaviour if the pattern contains
multiple patterns for deprecation logs like:
`.logs-deprecation.abc,.logs-deprecation.def` , this can be easily
changed if we prefer not to do it this way.


### 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: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2024-12-11 13:40:27 +01:00
Dario Gieselaar
fa1998ce92
[RCA] AI-assisted root cause analysis (#197200)
Implements an LLM-based root cause analysis process. At a high level, it
works by investigating entities - which means pulling in alerts, SLOs,
and log patterns. From there, it can inspect related entities to get to
the root cause.

The backend implementation lives in
`x-pack/packages/observability_utils-*` (`service_rca`). It can be
imported into any server-side plugin and executed from there.

The UI changes are mostly contained to
`x-pack/plugins/observability_solution/observabillity_ai_assistant_app`.
This plugin now exports a `RootCauseAnalysisContainer` which takes a
stream of data that is returned by the root cause analysis process.

The current implementation lives in the Investigate app. There, it calls
its own endpoint that kicks off the RCA process, and feeds it into the
`RootCauseAnalysisContainer` exposed by the Observability AI Assistant
app plugin. I've left it in a route there so the investigation itself
can be updated as the process runs - this would allow the user to close
the browser and come back later, and see a full investigation.

> [!NOTE]
> Notes for reviewing teams
> 
> @kbn/es-types:
> - support both types and typesWithBodyKey
> - simplify KeysOfSources type
> 
> @kbn/server-route-repository:
> - abortable streamed responses
> 
> @kbn/sse-utils*:
> - abortable streamed responses
> - serialize errors in specific format for more reliable re-hydration
of errors
> - keep connection open with SSE comments
> 
> @kbn/inference-*:
> - export *Of variants of types, for easier manual inference
> - add automated retries for `output` API
> - add `name` to tool responses for type inference (get type of tool
response via tool name)
> - add `data` to tool responses for transporting internal data (not
sent to the LLM)
> - simplify `chunksIntoMessage`
> - allow consumers of nlToEsql task to add to `system` prompt
> - add toolCallId to validation error message
> 
> @kbn/aiops*:
> - export `categorizationAnalyzer` for use in observability-ai*
> 
> @kbn/observability-ai-assistant*
> - configurable limit (tokens or doc count) for knowledge base recall
> 
> @kbn/slo*:
> - export client that returns summary indices

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Maryam Saeidi <maryam.saeidi@elastic.co>
Co-authored-by: Bena Kansara <bena.kansara@elastic.co>
2024-12-11 12:35:01 +01:00
Gerard Soldevila
9bec521a5e
Sustainable Kibana Architecture: Move modules owned by @elastic/streams-program-team (#203180)
## Summary

This PR aims at relocating some of the Kibana modules (plugins and
packages) into a new folder structure, according to the _Sustainable
Kibana Architecture_ initiative.

> [!IMPORTANT]
> * We kindly ask you to:
> * Manually fix the errors in the error section below (if there are
any).
> * Search for the `packages[\/\\]` and `plugins[\/\\]` patterns in the
source code (Babel and Eslint config files), and update them
appropriately.
> * Manually review
`.buildkite/scripts/pipelines/pull_request/pipeline.ts` to ensure that
any CI pipeline customizations continue to be correctly applied after
the changed path names
> * Review all of the updated files, specially the `.ts` and `.js` files
listed in the sections below, as some of them contain relative paths
that have been updated.
> * Think of potential impact of the move, including tooling and
configuration files that can be pointing to the relocated modules. E.g.:
>     * customised eslint rules
>     * docs pointing to source code

> [!NOTE]
> This PR has been auto-generated.
> Do not attempt to push any changes unless you know what you are doing.
> Please use
[#sustainable_kibana_architecture](https://elastic.slack.com/archives/C07TCKTA22E)
Slack channel for feedback.




#### 2 plugin(s) are going to be relocated:

| Id | Target folder |
| -- | ------------- |
| `@kbn/streams-app-plugin` |
`x-pack/solutions/observability/plugins/streams_app` |
| `@kbn/streams-plugin` |
`x-pack/solutions/observability/plugins/streams` |


<details>
<summary>Updated references</summary>

```
./docs/developer/plugin-list.asciidoc
./package.json
./packages/kbn-repo-packages/package-map.json
./packages/kbn-ts-projects/config-paths.json
./tsconfig.base.json
./x-pack/.i18nrc.json
./x-pack/solutions/observability/plugins/streams/jest.config.js
./x-pack/solutions/observability/plugins/streams_app/jest.config.js
./yarn.lock
```
</details>
<details>
<summary>Updated relative paths</summary>

```
x-pack/solutions/observability/plugins/streams/jest.config.js:10
x-pack/solutions/observability/plugins/streams/tsconfig.json:2
x-pack/solutions/observability/plugins/streams/tsconfig.json:7
x-pack/solutions/observability/plugins/streams_app/jest.config.js:10
x-pack/solutions/observability/plugins/streams_app/tsconfig.json:2
x-pack/solutions/observability/plugins/streams_app/tsconfig.json:7
```
</details>
<details>
<summary>Script errors</summary>

```

```
</details>
2024-12-11 01:49:46 -06:00
Alejandro Fernández Haro
15f453bc4e
[l10n] Fix codeowners (#203650)
## Summary

Updating codeowners to ensure that we don't trigger code reviews from
`@elastic/kibana-localization` when labels are updated.
2024-12-10 12:55:32 -06:00
Gerard Soldevila
c609daa97c
Sustainable Kibana Architecture: Move modules owned by @elastic/kibana-localization (#202725)
## Summary

This PR aims at relocating some of the Kibana modules (plugins and
packages) into a new folder structure, according to the _Sustainable
Kibana Architecture_ initiative.

> [!IMPORTANT]
> * We kindly ask you to:
> * Manually fix the errors in the error section below (if there are
any).
> * Search for the `packages[\/\\]` and `plugins[\/\\]` patterns in the
source code (Babel and Eslint config files), and update them
appropriately.
> * Manually review
`.buildkite/scripts/pipelines/pull_request/pipeline.ts` to ensure that
any CI pipeline customizations continue to be correctly applied after
the changed path names
> * Review all of the updated files, specially the `.ts` and `.js` files
listed in the sections below, as some of them contain relative paths
that have been updated.
> * Think of potential impact of the move, including tooling and
configuration files that can be pointing to the relocated modules. E.g.:
>     * customised eslint rules
>     * docs pointing to source code

> [!NOTE]
> This PR has been auto-generated.
> Do not attempt to push any changes unless you know what you are doing.
> Please use
[#sustainable_kibana_architecture](https://elastic.slack.com/archives/C07TCKTA22E)
Slack channel for feedback.




#### 1 plugin(s) are going to be relocated:

| Id | Target folder |
| -- | ------------- |
| `@kbn/translations-plugin` |
`x-pack/platform/plugins/private/translations` |


<details>
<summary>Updated references</summary>

```
./docs/developer/plugin-list.asciidoc
./package.json
./packages/kbn-repo-packages/package-map.json
./packages/kbn-synthetic-package-map/synthetic-packages.json
./packages/kbn-ts-projects/config-paths.json
./src/dev/i18n_tools/README.md
./tsconfig.base.json
./tsconfig.refs.json
./yarn.lock
```
</details>
<details>
<summary>Updated relative paths</summary>

```
x-pack/platform/plugins/private/translations/tsconfig.json:2
```
</details>
<details>
<summary>Script errors</summary>

```

```
</details>
2024-12-10 06:56:15 -06:00
Gerard Soldevila
a0f5a7f3fc
Sustainable Kibana Architecture: Move modules owned by @elastic/appex-ai-infra (#202410)
## Summary

This PR aims at relocating some of the Kibana modules (plugins and
packages) into a new folder structure, according to the _Sustainable
Kibana Architecture_ initiative.

> [!IMPORTANT]
> * We kindly ask you to:
> * Manually fix the errors in the error section below (if there are
any).
> * Search for the `packages[\/\\]` and `plugins[\/\\]` patterns in the
source code (Babel and Eslint config files), and update them
appropriately.
> * Manually review
`.buildkite/scripts/pipelines/pull_request/pipeline.ts` to ensure that
any CI pipeline customizations continue to be correctly applied after
the changed path names
> * Review all of the updated files, specially the `.ts` and `.js` files
listed in the sections below, as some of them contain relative paths
that have been updated.
> * Think of potential impact of the move, including tooling and
configuration files that can be pointing to the relocated modules. E.g.:
>     * customised eslint rules
>     * docs pointing to source code

> [!NOTE]
> This PR has been auto-generated.
> Do not attempt to push any changes unless you know what you are doing.
> Please use
[#sustainable_kibana_architecture](https://elastic.slack.com/archives/C07TCKTA22E)
Slack channel for feedback.




#### 3 plugin(s) are going to be relocated:

| Id | Target folder |
| -- | ------------- |
| `@kbn/inference-plugin` | `x-pack/platform/plugins/shared/inference` |
| `@kbn/llm-tasks-plugin` |
`x-pack/platform/plugins/shared/ai_infra/llm_tasks` |
| `@kbn/product-doc-base-plugin` |
`x-pack/platform/plugins/shared/ai_infra/product_doc_base` |


#### 2 package(s) are going to be relocated:

  | Id | Target folder |
  | -- | ------------- |
| `@kbn/inference-common` |
`x-pack/platform/packages/shared/ai-infra/inference-common` |
| `@kbn/product-doc-common` |
`x-pack/platform/packages/shared/ai-infra/product-doc-common` |


<details>
<summary>Updated references</summary>

```
./docs/developer/plugin-list.asciidoc
./package.json
./packages/kbn-repo-packages/package-map.json
./packages/kbn-ts-projects/config-paths.json
./tsconfig.base.json
./x-pack/.i18nrc.json
./x-pack/platform/packages/shared/ai-infra/inference-common/jest.config.js
./x-pack/platform/packages/shared/ai-infra/product-doc-common/jest.config.js
./x-pack/platform/plugins/shared/ai_infra/llm_tasks/jest.config.js
./x-pack/platform/plugins/shared/ai_infra/product_doc_base/jest.config.js
./x-pack/platform/plugins/shared/inference/jest.config.js
./x-pack/platform/plugins/shared/inference/scripts/evaluation/README.md
./yarn.lock
```
</details>
<details>
<summary>Updated relative paths</summary>

```
x-pack/platform/packages/shared/ai-infra/inference-common/jest.config.js:10
x-pack/platform/packages/shared/ai-infra/inference-common/tsconfig.json:2
x-pack/platform/packages/shared/ai-infra/product-doc-common/jest.config.js:10
x-pack/platform/packages/shared/ai-infra/product-doc-common/tsconfig.json:2
x-pack/platform/plugins/shared/ai_infra/llm_tasks/jest.config.js:10
x-pack/platform/plugins/shared/ai_infra/llm_tasks/tsconfig.json:2
x-pack/platform/plugins/shared/ai_infra/llm_tasks/tsconfig.json:7
x-pack/platform/plugins/shared/ai_infra/product_doc_base/jest.config.js:10
x-pack/platform/plugins/shared/ai_infra/product_doc_base/tsconfig.json:2
x-pack/platform/plugins/shared/ai_infra/product_doc_base/tsconfig.json:7
x-pack/platform/plugins/shared/inference/jest.config.js:10
x-pack/platform/plugins/shared/inference/scripts/util/read_kibana_config.ts:16
x-pack/platform/plugins/shared/inference/tsconfig.json:2
x-pack/platform/plugins/shared/inference/tsconfig.json:7
```
</details>
<details>
<summary>Script errors</summary>

```

```
</details>

---------

Co-authored-by: pgayvallet <pierre.gayvallet@elastic.co>
2024-12-10 11:36:23 +01:00
Gerard Soldevila
11b27f3016
Sustainable Kibana Architecture: Move modules owned by @elastic/security-asset-management (#202839)
## Summary

This PR aims at relocating some of the Kibana modules (plugins and
packages) into a new folder structure, according to the _Sustainable
Kibana Architecture_ initiative.

> [!IMPORTANT]
> * We kindly ask you to:
> * Manually fix the errors in the error section below (if there are
any).
> * Search for the `packages[\/\\]` and `plugins[\/\\]` patterns in the
source code (Babel and Eslint config files), and update them
appropriately.
> * Manually review
`.buildkite/scripts/pipelines/pull_request/pipeline.ts` to ensure that
any CI pipeline customizations continue to be correctly applied after
the changed path names
> * Review all of the updated files, specially the `.ts` and `.js` files
listed in the sections below, as some of them contain relative paths
that have been updated.
> * Think of potential impact of the move, including tooling and
configuration files that can be pointing to the relocated modules. E.g.:
>     * customised eslint rules
>     * docs pointing to source code

> [!NOTE]
> This PR has been auto-generated.
> Do not attempt to push any changes unless you know what you are doing.
> Please use
[#sustainable_kibana_architecture](https://elastic.slack.com/archives/C07TCKTA22E)
Slack channel for feedback.


#### 1 package(s) are going to be relocated:

  | Id | Target folder |
  | -- | ------------- |
| `@kbn/osquery-io-ts-types` |
`src/platform/packages/shared/kbn-osquery-io-ts-types` |


<details>
<summary>Updated references</summary>

```
./package.json
./packages/kbn-repo-packages/package-map.json
./packages/kbn-ts-projects/config-paths.json
./src/platform/packages/shared/kbn-osquery-io-ts-types/jest.config.js
./tsconfig.base.json
./yarn.lock
```
</details>
<details>
<summary>Updated relative paths</summary>

```
src/platform/packages/shared/kbn-osquery-io-ts-types/jest.config.js:12
src/platform/packages/shared/kbn-osquery-io-ts-types/tsconfig.json:2
```
</details>
<details>
<summary>Script errors</summary>

```

```
</details>
2024-12-10 04:06:05 -06:00
Jatin Kathuria
9619d610d1
[ Security Solution ] One discover security context functional tests (#199818)
## Summary

Fixes https://github.com/elastic/security-team/issues/11112

Follow up to 
- https://github.com/elastic/kibana/pull/199279

Adds functional test for Security Profiles in One Discover.


### Checklist

Delete any items that are not applicable to this PR.

- [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>
2024-12-10 03:38:43 -06:00
Gerard Soldevila
58b8b47928
Sustainable Kibana Architecture: Move modules owned by @elastic/ml-ui (#202764)
## Summary

This PR aims at relocating some of the Kibana modules (plugins and
packages) into a new folder structure, according to the _Sustainable
Kibana Architecture_ initiative.

> [!IMPORTANT]
> * We kindly ask you to:
> * Manually fix the errors in the error section below (if there are
any).
> * Search for the `packages[\/\\]` and `plugins[\/\\]` patterns in the
source code (Babel and Eslint config files), and update them
appropriately.
> * Manually review
`.buildkite/scripts/pipelines/pull_request/pipeline.ts` to ensure that
any CI pipeline customizations continue to be correctly applied after
the changed path names
> * Review all of the updated files, specially the `.ts` and `.js` files
listed in the sections below, as some of them contain relative paths
that have been updated.
> * Think of potential impact of the move, including tooling and
configuration files that can be pointing to the relocated modules. E.g.:
>     * customised eslint rules
>     * docs pointing to source code

> [!NOTE]
> This PR has been auto-generated.
> Do not attempt to push any changes unless you know what you are doing.
> Please use
[#sustainable_kibana_architecture](https://elastic.slack.com/archives/C07TCKTA22E)
Slack channel for feedback.




#### 4 plugin(s) are going to be relocated:

| Id | Target folder |
| -- | ------------- |
| `@kbn/aiops-plugin` | `x-pack/platform/plugins/shared/aiops` |
| `@kbn/data-visualizer-plugin` |
`x-pack/platform/plugins/private/data_visualizer` |
| `@kbn/ml-plugin` | `x-pack/platform/plugins/shared/ml` |
| `@kbn/transform-plugin` | `x-pack/platform/plugins/private/transform`
|


#### 42 package(s) are going to be relocated:

  | Id | Target folder |
  | -- | ------------- |
| `@kbn/aiops-change-point-detection` |
`x-pack/platform/packages/private/ml/aiops_change_point_detection` |
| `@kbn/aiops-common` |
`x-pack/platform/packages/shared/ml/aiops_common` |
| `@kbn/aiops-components` |
`x-pack/platform/packages/private/ml/aiops_components` |
| `@kbn/aiops-log-pattern-analysis` |
`x-pack/platform/packages/shared/ml/aiops_log_pattern_analysis` |
| `@kbn/aiops-log-rate-analysis` |
`x-pack/platform/packages/shared/ml/aiops_log_rate_analysis` |
| `@kbn/aiops-test-utils` |
`x-pack/platform/packages/private/ml/aiops_test_utils` |
| `@kbn/deeplinks-ml` | `src/platform/packages/shared/deeplinks/ml` |
| `@kbn/default-nav-ml` | `src/platform/packages/private/default-nav/ml`
|
| `@kbn/inference_integration_flyout` |
`x-pack/platform/packages/private/ml/inference_integration_flyout` |
| `@kbn/json-schemas` |
`x-pack/platform/packages/private/ml/json_schemas` |
| `@kbn/ml-agg-utils` | `x-pack/platform/packages/private/ml/agg_utils`
|
| `@kbn/ml-anomaly-utils` |
`x-pack/platform/packages/shared/ml/anomaly_utils` |
| `@kbn/ml-cancellable-search` |
`x-pack/platform/packages/private/ml/cancellable_search` |
| `@kbn/ml-category-validator` |
`x-pack/platform/packages/private/ml/category_validator` |
| `@kbn/ml-chi2test` | `x-pack/platform/packages/shared/ml/chi2test` |
| `@kbn/ml-creation-wizard-utils` |
`x-pack/platform/packages/private/ml/creation_wizard_utils` |
| `@kbn/ml-data-frame-analytics-utils` |
`x-pack/platform/packages/private/ml/data_frame_analytics_utils` |
| `@kbn/ml-data-grid` | `x-pack/platform/packages/private/ml/data_grid`
|
| `@kbn/ml-data-view-utils` |
`x-pack/platform/packages/private/ml/data_view_utils` |
| `@kbn/ml-date-picker` |
`x-pack/platform/packages/private/ml/date_picker` |
| `@kbn/ml-date-utils` |
`x-pack/platform/packages/private/ml/date_utils` |
| `@kbn/ml-error-utils` |
`x-pack/platform/packages/shared/ml/error_utils` |
| `@kbn/ml-field-stats-flyout` |
`x-pack/platform/packages/private/ml/field_stats_flyout` |
| `@kbn/ml-in-memory-table` |
`x-pack/platform/packages/private/ml/in_memory_table` |
| `@kbn/ml-is-defined` |
`x-pack/platform/packages/private/ml/is_defined` |
| `@kbn/ml-is-populated-object` |
`x-pack/platform/packages/private/ml/is_populated_object` |
| `@kbn/ml-kibana-theme` |
`x-pack/platform/packages/private/ml/kibana_theme` |
| `@kbn/ml-local-storage` |
`x-pack/platform/packages/private/ml/local_storage` |
| `@kbn/ml-nested-property` |
`x-pack/platform/packages/private/ml/nested_property` |
| `@kbn/ml-number-utils` |
`x-pack/platform/packages/private/ml/number_utils` |
| `@kbn/ml-parse-interval` |
`x-pack/platform/packages/private/ml/parse_interval` |
| `@kbn/ml-query-utils` |
`x-pack/platform/packages/private/ml/query_utils` |
| `@kbn/ml-random-sampler-utils` |
`x-pack/platform/packages/shared/ml/random_sampler_utils` |
| `@kbn/ml-response-stream` |
`x-pack/platform/packages/shared/ml/response_stream` |
| `@kbn/ml-route-utils` |
`x-pack/platform/packages/private/ml/route_utils` |
| `@kbn/ml-runtime-field-utils` |
`x-pack/platform/packages/shared/ml/runtime_field_utils` |
| `@kbn/ml-string-hash` |
`x-pack/platform/packages/private/ml/string_hash` |
| `@kbn/ml-time-buckets` |
`x-pack/platform/packages/private/ml/time_buckets` |
| `@kbn/ml-trained-models-utils` |
`x-pack/platform/packages/shared/ml/trained_models_utils` |
| `@kbn/ml-ui-actions` |
`x-pack/platform/packages/private/ml/ui_actions` |
| `@kbn/ml-url-state` | `x-pack/platform/packages/private/ml/url_state`
|
| `@kbn/ml-validators` |
`x-pack/platform/packages/private/ml/validators` |


<details>
<summary>Updated references</summary>

```
./.eslintrc.js
./docs/developer/plugin-list.asciidoc
./docs/redirects.asciidoc
./oas_docs/scripts/merge_ess_oas.js
./oas_docs/scripts/merge_serverless_oas.js
./package.json
./packages/kbn-repo-packages/package-map.json
./packages/kbn-synthetic-package-map/synthetic-packages.json
./packages/kbn-ts-projects/config-paths.json
./src/platform/packages/private/default-nav/ml/jest.config.js
./src/platform/packages/shared/deeplinks/ml/jest.config.js
./tsconfig.base.json
./tsconfig.refs.json
./x-pack/.i18nrc.json
./x-pack/packages/security-solution/navigation/src/constants.ts
./x-pack/platform/packages/private/ml/agg_utils/jest.config.js
./x-pack/platform/packages/private/ml/aiops_change_point_detection/jest.config.js
./x-pack/platform/packages/private/ml/aiops_components/jest.config.js
./x-pack/platform/packages/private/ml/aiops_test_utils/jest.config.js
./x-pack/platform/packages/private/ml/cancellable_search/jest.config.js
./x-pack/platform/packages/private/ml/category_validator/jest.config.js
./x-pack/platform/packages/private/ml/creation_wizard_utils/jest.config.js
./x-pack/platform/packages/private/ml/data_frame_analytics_utils/jest.config.js
./x-pack/platform/packages/private/ml/data_grid/jest.config.js
./x-pack/platform/packages/private/ml/data_view_utils/jest.config.js
./x-pack/platform/packages/private/ml/date_picker/jest.config.js
./x-pack/platform/packages/private/ml/date_utils/jest.config.js
./x-pack/platform/packages/private/ml/field_stats_flyout/jest.config.js
./x-pack/platform/packages/private/ml/in_memory_table/jest.config.js
./x-pack/platform/packages/private/ml/inference_integration_flyout/jest.config.js
./x-pack/platform/packages/private/ml/is_defined/jest.config.js
./x-pack/platform/packages/private/ml/is_populated_object/jest.config.js
./x-pack/platform/packages/private/ml/json_schemas/jest.config.js
./x-pack/platform/packages/private/ml/kibana_theme/jest.config.js
./x-pack/platform/packages/private/ml/local_storage/jest.config.js
./x-pack/platform/packages/private/ml/nested_property/jest.config.js
./x-pack/platform/packages/private/ml/number_utils/jest.config.js
./x-pack/platform/packages/private/ml/parse_interval/jest.config.js
./x-pack/platform/packages/private/ml/query_utils/jest.config.js
./x-pack/platform/packages/private/ml/route_utils/jest.config.js
./x-pack/platform/packages/private/ml/string_hash/jest.config.js
./x-pack/platform/packages/private/ml/time_buckets/jest.config.js
./x-pack/platform/packages/private/ml/ui_actions/jest.config.js
./x-pack/platform/packages/private/ml/url_state/jest.config.js
./x-pack/platform/packages/private/ml/validators/jest.config.js
./x-pack/platform/packages/shared/ml/aiops_common/jest.config.js
./x-pack/platform/packages/shared/ml/aiops_log_pattern_analysis/jest.config.js
./x-pack/platform/packages/shared/ml/aiops_log_rate_analysis/jest.config.js
./x-pack/platform/packages/shared/ml/anomaly_utils/jest.config.js
./x-pack/platform/packages/shared/ml/chi2test/jest.config.js
./x-pack/platform/packages/shared/ml/error_utils/jest.config.js
./x-pack/platform/packages/shared/ml/random_sampler_utils/jest.config.js
./x-pack/platform/packages/shared/ml/response_stream/jest.config.js
./x-pack/platform/packages/shared/ml/runtime_field_utils/jest.config.js
./x-pack/platform/packages/shared/ml/trained_models_utils/jest.config.js
./x-pack/platform/plugins/private/data_visualizer/jest.config.js
./x-pack/platform/plugins/private/transform/jest.config.js
./x-pack/platform/plugins/private/transform/readme.md
./x-pack/platform/plugins/shared/aiops/README.md
./x-pack/platform/plugins/shared/aiops/jest.config.js
./x-pack/platform/plugins/shared/aiops/public/application/utils/build_extended_base_filter_criteria.ts
./x-pack/platform/plugins/shared/aiops/public/application/utils/search_utils.ts
./x-pack/platform/plugins/shared/ml/jest.config.js
./x-pack/platform/plugins/shared/ml/readme.md
./x-pack/plugins/aiops/README.md
./x-pack/plugins/security_solution/common/machine_learning/affected_job_ids.ts
./x-pack/plugins/security_solution/common/machine_learning/helpers.ts
./yarn.lock
```
</details>
<details>
<summary>Updated relative paths</summary>

```
src/platform/packages/private/default-nav/ml/jest.config.js:12
src/platform/packages/private/default-nav/ml/tsconfig.json:2
src/platform/packages/shared/deeplinks/ml/jest.config.js:12
src/platform/packages/shared/deeplinks/ml/tsconfig.json:2
x-pack/platform/packages/private/ml/agg_utils/jest.config.js:10
x-pack/platform/packages/private/ml/agg_utils/tsconfig.json:2
x-pack/platform/packages/private/ml/aiops_change_point_detection/jest.config.js:10
x-pack/platform/packages/private/ml/aiops_change_point_detection/tsconfig.json:2
x-pack/platform/packages/private/ml/aiops_components/jest.config.js:10
x-pack/platform/packages/private/ml/aiops_components/tsconfig.json:2
x-pack/platform/packages/private/ml/aiops_test_utils/jest.config.js:10
x-pack/platform/packages/private/ml/aiops_test_utils/tsconfig.json:2
x-pack/platform/packages/private/ml/cancellable_search/jest.config.js:10
x-pack/platform/packages/private/ml/cancellable_search/tsconfig.json:2
x-pack/platform/packages/private/ml/category_validator/jest.config.js:10
x-pack/platform/packages/private/ml/category_validator/tsconfig.json:2
x-pack/platform/packages/private/ml/creation_wizard_utils/jest.config.js:10
x-pack/platform/packages/private/ml/creation_wizard_utils/tsconfig.json:2
x-pack/platform/packages/private/ml/data_frame_analytics_utils/jest.config.js:10
x-pack/platform/packages/private/ml/data_frame_analytics_utils/tsconfig.json:2
x-pack/platform/packages/private/ml/data_grid/jest.config.js:10
x-pack/platform/packages/private/ml/data_grid/tsconfig.json:2
x-pack/platform/packages/private/ml/data_view_utils/jest.config.js:10
x-pack/platform/packages/private/ml/data_view_utils/tsconfig.json:2
x-pack/platform/packages/private/ml/date_picker/jest.config.js:10
x-pack/platform/packages/private/ml/date_picker/tsconfig.json:2
x-pack/platform/packages/private/ml/date_utils/jest.config.js:10
x-pack/platform/packages/private/ml/date_utils/tsconfig.json:2
x-pack/platform/packages/private/ml/field_stats_flyout/jest.config.js:10
x-pack/platform/packages/private/ml/field_stats_flyout/tsconfig.json:2
x-pack/platform/packages/private/ml/in_memory_table/jest.config.js:10
x-pack/platform/packages/private/ml/in_memory_table/tsconfig.json:2
x-pack/platform/packages/private/ml/inference_integration_flyout/jest.config.js:10
x-pack/platform/packages/private/ml/inference_integration_flyout/tsconfig.json:2
x-pack/platform/packages/private/ml/is_defined/jest.config.js:10
x-pack/platform/packages/private/ml/is_defined/tsconfig.json:2
x-pack/platform/packages/private/ml/is_populated_object/jest.config.js:10
x-pack/platform/packages/private/ml/is_populated_object/tsconfig.json:2
x-pack/platform/packages/private/ml/json_schemas/jest.config.js:10
x-pack/platform/packages/private/ml/json_schemas/package.json:7
x-pack/platform/packages/private/ml/json_schemas/tsconfig.json:2
x-pack/platform/packages/private/ml/kibana_theme/jest.config.js:10
x-pack/platform/packages/private/ml/kibana_theme/tsconfig.json:2
x-pack/platform/packages/private/ml/local_storage/jest.config.js:10
x-pack/platform/packages/private/ml/local_storage/tsconfig.json:2
x-pack/platform/packages/private/ml/nested_property/jest.config.js:10
x-pack/platform/packages/private/ml/nested_property/tsconfig.json:2
x-pack/platform/packages/private/ml/number_utils/jest.config.js:10
x-pack/platform/packages/private/ml/number_utils/tsconfig.json:2
x-pack/platform/packages/private/ml/parse_interval/jest.config.js:10
x-pack/platform/packages/private/ml/parse_interval/tsconfig.json:2
x-pack/platform/packages/private/ml/query_utils/jest.config.js:10
x-pack/platform/packages/private/ml/query_utils/tsconfig.json:2
x-pack/platform/packages/private/ml/route_utils/jest.config.js:10
x-pack/platform/packages/private/ml/route_utils/tsconfig.json:2
x-pack/platform/packages/private/ml/string_hash/jest.config.js:10
x-pack/platform/packages/private/ml/string_hash/tsconfig.json:2
x-pack/platform/packages/private/ml/time_buckets/jest.config.js:10
x-pack/platform/packages/private/ml/time_buckets/tsconfig.json:2
x-pack/platform/packages/private/ml/ui_actions/jest.config.js:10
x-pack/platform/packages/private/ml/ui_actions/tsconfig.json:2
x-pack/platform/packages/private/ml/url_state/jest.config.js:10
x-pack/platform/packages/private/ml/url_state/tsconfig.json:2
x-pack/platform/packages/private/ml/validators/jest.config.js:10
x-pack/platform/packages/private/ml/validators/tsconfig.json:2
x-pack/platform/packages/shared/ml/aiops_common/jest.config.js:10
x-pack/platform/packages/shared/ml/aiops_common/tsconfig.json:2
x-pack/platform/packages/shared/ml/aiops_log_pattern_analysis/jest.config.js:10
x-pack/platform/packages/shared/ml/aiops_log_pattern_analysis/tsconfig.json:2
x-pack/platform/packages/shared/ml/aiops_log_rate_analysis/jest.config.js:10
x-pack/platform/packages/shared/ml/aiops_log_rate_analysis/tsconfig.json:2
x-pack/platform/packages/shared/ml/anomaly_utils/jest.config.js:10
x-pack/platform/packages/shared/ml/anomaly_utils/tsconfig.json:2
x-pack/platform/packages/shared/ml/chi2test/jest.config.js:10
x-pack/platform/packages/shared/ml/chi2test/tsconfig.json:2
x-pack/platform/packages/shared/ml/error_utils/jest.config.js:10
x-pack/platform/packages/shared/ml/error_utils/tsconfig.json:2
x-pack/platform/packages/shared/ml/random_sampler_utils/jest.config.js:10
x-pack/platform/packages/shared/ml/random_sampler_utils/tsconfig.json:2
x-pack/platform/packages/shared/ml/response_stream/jest.config.js:10
x-pack/platform/packages/shared/ml/response_stream/tsconfig.json:2
x-pack/platform/packages/shared/ml/runtime_field_utils/jest.config.js:10
x-pack/platform/packages/shared/ml/runtime_field_utils/tsconfig.json:2
x-pack/platform/packages/shared/ml/trained_models_utils/jest.config.js:10
x-pack/platform/packages/shared/ml/trained_models_utils/tsconfig.json:2
x-pack/platform/plugins/private/data_visualizer/jest.config.js:10
x-pack/platform/plugins/private/data_visualizer/tsconfig.json:2
x-pack/platform/plugins/private/data_visualizer/tsconfig.json:7
x-pack/platform/plugins/private/transform/jest.config.js:10
x-pack/platform/plugins/private/transform/tsconfig.json:10
x-pack/platform/plugins/private/transform/tsconfig.json:2
x-pack/platform/plugins/shared/aiops/jest.config.js:10
x-pack/platform/plugins/shared/aiops/tsconfig.json:2
x-pack/platform/plugins/shared/aiops/tsconfig.json:7
x-pack/platform/plugins/shared/ml/jest.config.js:10
x-pack/platform/plugins/shared/ml/readme.md:186
x-pack/platform/plugins/shared/ml/readme.md:192
x-pack/platform/plugins/shared/ml/tsconfig.json:12
x-pack/platform/plugins/shared/ml/tsconfig.json:2
x-pack/platform/plugins/shared/ml/tsconfig.json:24
```
</details>
<details>
<summary>Script errors</summary>

```

```
</details>

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Walter Rafelsberger <walter.rafelsberger@elastic.co>
2024-12-09 17:36:25 +01:00
Jean-Louis Leysens
55d5c7ab6b
[UA] kibana-core ownership (#203410)
## Summary

As Core will be driving a lot of the development for UA for 8->9 this PR
makes `kibana-core` the temporary code owners for UA until we've
completed the 9.0 release.
2024-12-09 08:47:27 -06:00
David Olaru
ad4e8efd0f
[kbn-scout] Custom event-oriented test reporter & persistence (#202906) 2024-12-09 14:34:25 +00:00
Clint Andrew Hall
d0fde5f8e1
[React@18] Env variable to use React@18 (#193113)
Part of
https://github.com/elastic/kibana-team/issues/1016#issuecomment-2454845292

Our plan for React@18 packages upgrade is to let kibana contributors now
that we're going to bump React packages couple weeks in advance. In
addtion to the final PR with green tests and Kibana deployed, we want to
give simple instructions on how to run React@18 locally easilly:

This PR allows to quickly toggle between version of React locally
without having to do anything beyond an environment variable.

`REACT_18=true yarn bootstrap` will alias `react` and `react-dom` to v18
in the build.

I check that this works as expected when starting from: 

- local dev server `yarn start` 
- local ftr `node scripts/functional_tests_server.js`
- local unit tests `REACT_18=true yarn test:jest ...`

Please note: 
- **This PR doesn't implement this switch for dist build, as I don't
think we need this for our purposes.**
- The plan is that we remove this switch soon after we merge React@18
upgrade to main.

In addition to the switch this PR mutes a very noisy warning from
React@18 about legacy root `Warning: ReactDOM.render is no longer
supported in React 18. Use createRoot instead. Until you switch to the
new API, your app will behave as if it's running React 17.`. This
warning is expected as after we upgrade to React@18 packages (Phase 1)
we will be in the process of migrating to the new createRoot API (Phase
2). However, it is very noisy and we want to mute it for now.


Co-authored-by: Anton Dosov <anton.dosov@elastic.co>
2024-12-09 13:55:14 +01:00
Gerard Soldevila
313f973aec
Sustainable Kibana Architecture: Move modules owned by @elastic/kibana-esql (#202722)
## Summary

This PR aims at relocating some of the Kibana modules (plugins and
packages) into a new folder structure, according to the _Sustainable
Kibana Architecture_ initiative.

> [!IMPORTANT]
> * We kindly ask you to:
> * Manually fix the errors in the error section below (if there are
any).
> * Search for the `packages[\/\\]` and `plugins[\/\\]` patterns in the
source code (Babel and Eslint config files), and update them
appropriately.
> * Manually review
`.buildkite/scripts/pipelines/pull_request/pipeline.ts` to ensure that
any CI pipeline customizations continue to be correctly applied after
the changed path names
> * Review all of the updated files, specially the `.ts` and `.js` files
listed in the sections below, as some of them contain relative paths
that have been updated.
> * Think of potential impact of the move, including tooling and
configuration files that can be pointing to the relocated modules. E.g.:
>     * customised eslint rules
>     * docs pointing to source code

> [!NOTE]
> This PR has been auto-generated.
> Do not attempt to push any changes unless you know what you are doing.
> Please use
[#sustainable_kibana_architecture](https://elastic.slack.com/archives/C07TCKTA22E)
Slack channel for feedback.




#### 2 plugin(s) are going to be relocated:

| Id | Target folder |
| -- | ------------- |
| `@kbn/esql` | `src/platform/plugins/shared/esql` |
| `@kbn/esql-datagrid` | `src/platform/plugins/shared/esql_datagrid` |


#### 5 package(s) are going to be relocated:

  | Id | Target folder |
  | -- | ------------- |
  | `@kbn/esql-ast` | `src/platform/packages/shared/kbn-esql-ast` |
| `@kbn/esql-editor` | `src/platform/packages/private/kbn-esql-editor` |
| `@kbn/esql-utils` | `src/platform/packages/shared/kbn-esql-utils` |
| `@kbn/esql-validation-autocomplete` |
`src/platform/packages/shared/kbn-esql-validation-autocomplete` |
| `@kbn/language-documentation` |
`src/platform/packages/private/kbn-language-documentation` |


<details>
<summary>Updated references</summary>

```
./.buildkite/scripts/steps/esql_generate_function_metadata.sh
./.buildkite/scripts/steps/esql_grammar_sync.sh
./.eslintignore
./.eslintrc.js
./.i18nrc.json
./docs/developer/plugin-list.asciidoc
./examples/esql_ast_inspector/public/plugin.ts
./examples/esql_validation_example/public/plugin.ts
./package.json
./packages/kbn-esql-validation-autocomplete/src/validation/validation.test.ts
./packages/kbn-monaco/BUILD.bazel
./packages/kbn-repo-packages/package-map.json
./packages/kbn-ts-projects/config-paths.json
./packages/kbn-ui-shared-deps-src/BUILD.bazel
./src/dev/storybook/aliases.ts
./src/platform/packages/private/kbn-esql-editor/jest.config.js
./src/platform/packages/private/kbn-language-documentation/jest.config.js
./src/platform/packages/private/kbn-language-documentation/package.json
./src/platform/packages/shared/kbn-esql-ast/jest.config.js
./src/platform/packages/shared/kbn-esql-utils/jest.config.js
./src/platform/packages/shared/kbn-esql-validation-autocomplete/README.md
./src/platform/packages/shared/kbn-esql-validation-autocomplete/jest.config.js
./src/platform/packages/shared/kbn-esql-validation-autocomplete/jest.integration.config.js
./src/platform/packages/shared/kbn-esql-validation-autocomplete/package.json
./src/platform/packages/shared/kbn-esql-validation-autocomplete/src/autocomplete/helper.ts
./src/platform/plugins/shared/esql/jest.config.js
./src/platform/plugins/shared/esql_datagrid/jest.config.js
./tsconfig.base.json
./yarn.lock
```
</details>
<details>
<summary>Updated relative paths</summary>

```
src/platform/packages/private/kbn-esql-editor/jest.config.js:12
src/platform/packages/private/kbn-esql-editor/tsconfig.json:2
src/platform/packages/private/kbn-language-documentation/jest.config.js:12
src/platform/packages/private/kbn-language-documentation/package.json:12
src/platform/packages/private/kbn-language-documentation/tsconfig.json:2
src/platform/packages/shared/kbn-esql-ast/jest.config.js:12
src/platform/packages/shared/kbn-esql-ast/tsconfig.json:2
src/platform/packages/shared/kbn-esql-utils/jest.config.js:12
src/platform/packages/shared/kbn-esql-utils/tsconfig.json:2
src/platform/packages/shared/kbn-esql-validation-autocomplete/jest.config.js:12
src/platform/packages/shared/kbn-esql-validation-autocomplete/jest.integration.config.js:12
src/platform/packages/shared/kbn-esql-validation-autocomplete/package.json:10
src/platform/packages/shared/kbn-esql-validation-autocomplete/package.json:11
src/platform/packages/shared/kbn-esql-validation-autocomplete/scripts/generate_function_definitions.ts:389
src/platform/packages/shared/kbn-esql-validation-autocomplete/tsconfig.json:2
src/platform/plugins/shared/esql/jest.config.js:12
src/platform/plugins/shared/esql/tsconfig.json:2
src/platform/plugins/shared/esql/tsconfig.json:7
src/platform/plugins/shared/esql_datagrid/jest.config.js:12
src/platform/plugins/shared/esql_datagrid/tsconfig.json:2
src/platform/plugins/shared/esql_datagrid/tsconfig.json:7
```
</details>
<details>
<summary>Script errors</summary>

```

```
</details>

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Rudolf Meijering <skaapgif@gmail.com>
2024-12-09 11:33:55 +01:00
Gerard Soldevila
df3b18214f
Sustainable Kibana Architecture: Move modules owned by @elastic/obs-entities (#202713)
## Summary

This PR aims at relocating some of the Kibana modules (plugins and
packages) into a new folder structure, according to the _Sustainable
Kibana Architecture_ initiative.

> [!IMPORTANT]
> * We kindly ask you to:
> * Manually fix the errors in the error section below (if there are
any).
> * Search for the `packages[\/\\]` and `plugins[\/\\]` patterns in the
source code (Babel and Eslint config files), and update them
appropriately.
> * Manually review
`.buildkite/scripts/pipelines/pull_request/pipeline.ts` to ensure that
any CI pipeline customizations continue to be correctly applied after
the changed path names
> * Review all of the updated files, specially the `.ts` and `.js` files
listed in the sections below, as some of them contain relative paths
that have been updated.
> * Think of potential impact of the move, including tooling and
configuration files that can be pointing to the relocated modules. E.g.:
>     * customised eslint rules
>     * docs pointing to source code

> [!NOTE]
> This PR has been auto-generated.
> Do not attempt to push any changes unless you know what you are doing.
> Please use
[#sustainable_kibana_architecture](https://elastic.slack.com/archives/C07TCKTA22E)
Slack channel for feedback.




#### 3 plugin(s) are going to be relocated:

| Id | Target folder |
| -- | ------------- |
| `@kbn/entities-data-access-plugin` |
`x-pack/solutions/observability/plugins/observability_solution/entities_data_access`
|
| `@kbn/entityManager-app-plugin` |
`x-pack/solutions/observability/plugins/observability_solution/entity_manager_app`
|
| `@kbn/entityManager-plugin` |
`x-pack/platform/plugins/shared/entity_manager` |


#### 1 package(s) are going to be relocated:

  | Id | Target folder |
  | -- | ------------- |
| `@kbn/entities-schema` |
`x-pack/platform/packages/shared/kbn-entities-schema` |


<details>
<summary>Updated references</summary>

```
./docs/developer/plugin-list.asciidoc
./package.json
./packages/kbn-repo-packages/package-map.json
./packages/kbn-ts-projects/config-paths.json
./tsconfig.base.json
./x-pack/platform/packages/shared/kbn-entities-schema/jest.config.js
./x-pack/platform/plugins/shared/entity_manager/jest.config.js
./x-pack/plugins/entity_manager/docs/entity_definitions.md
./x-pack/solutions/observability/plugins/observability_solution/entities_data_access/jest.config.js
./x-pack/solutions/observability/plugins/observability_solution/entity_manager_app/jest.config.js
./yarn.lock
```
</details>
<details>
<summary>Updated relative paths</summary>

```
x-pack/platform/packages/shared/kbn-entities-schema/jest.config.js:10
x-pack/platform/packages/shared/kbn-entities-schema/scripts/generate.js:8
x-pack/platform/packages/shared/kbn-entities-schema/scripts/generate_oas.js:65
x-pack/platform/packages/shared/kbn-entities-schema/scripts/generate_oas.js:8
x-pack/platform/packages/shared/kbn-entities-schema/scripts/serve_oas_ui.js:8
x-pack/platform/packages/shared/kbn-entities-schema/tsconfig.json:2
x-pack/platform/plugins/shared/entity_manager/jest.config.js:10
x-pack/platform/plugins/shared/entity_manager/tsconfig.json:2
x-pack/platform/plugins/shared/entity_manager/tsconfig.json:7
x-pack/solutions/observability/plugins/observability_solution/entities_data_access/jest.config.js:12
x-pack/solutions/observability/plugins/observability_solution/entities_data_access/tsconfig.json:2
x-pack/solutions/observability/plugins/observability_solution/entity_manager_app/jest.config.js:12
x-pack/solutions/observability/plugins/observability_solution/entity_manager_app/tsconfig.json:2
x-pack/solutions/observability/plugins/observability_solution/entity_manager_app/tsconfig.json:7
```
</details>
<details>
<summary>Script errors</summary>

```

```
</details>

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Rudolf Meijering <skaapgif@gmail.com>
2024-12-06 12:59:17 -06:00
Maxim Palenov
b0c7a8ce4f
[Security Solution] Allow users to save rule query with non critical validation errors (#202544)
**Addresses:** https://github.com/elastic/kibana/issues/171520

## Summary

This PR adds functionality to allow users save EQL and ES|QL queries in Prebuilt Rule Customization workflow by displaying a confirmation modal with non critical validation errors (a.k.a warnings). It also refactors confirmation modal usage in rule creation/editing forms for better reusability.

## Screenshots

<img width="1909" alt="Screenshot 2024-12-03 at 14 01 36" src="https://github.com/user-attachments/assets/c0054fc1-b52b-400f-80d7-af42391f4e18">

https://github.com/user-attachments/assets/2a20fcfe-ffc0-4547-8621-7ac6873c8dc9

https://github.com/user-attachments/assets/50b5cf5a-ea3f-4c22-a443-b5d4056a92c8

<img width="2541" alt="Screenshot 2024-12-03 at 14 06 29" src="https://github.com/user-attachments/assets/dde3fd60-6c69-4f8e-a65a-837b2319e4ac">

<img width="2552" alt="Screenshot 2024-12-03 at 14 06 51" src="https://github.com/user-attachments/assets/220817a6-991f-4361-88d2-ee3a47a36ad6">

<img width="2555" alt="Screenshot 2024-12-03 at 14 07 52" src="https://github.com/user-attachments/assets/c46fc49c-9ce1-4472-bdea-f9507aa62ece">

<img width="2553" alt="Screenshot 2024-12-03 at 14 08 18" src="https://github.com/user-attachments/assets/92388c56-8644-4c54-8727-b9a73b3497d1">
2024-12-06 06:06:39 -06:00
Bharat Pasupula
5145d76fb1
[Automatic Import] Add serverless availability cypress test (#202872) 2024-12-05 21:25:07 +01:00
Gerard Soldevila
b2d49b8beb
Sustainable Kibana Architecture: Move modules owned by @elastic/docs (#202416)
## Summary

This PR aims at relocating some of the Kibana modules (plugins and
packages) into a new folder structure, according to the _Sustainable
Kibana Architecture_ initiative. We kindly ask you to:

* Review the moved files, as some of them contain relative paths that
have been updated.
* Review the updated files, as some of them contain references that have
been updated.
* Think of potential impact of the move, including tooling and
configuration files that can be pointing to the relocated modules. E.g.:
  * customised eslint rules
  * docs pointing to source code
* We kindly ask you to:
* Search for the `packages[\/\\]` and `plugins[\/\\]` patterns in the
source code (Babel and Eslint config files), and update them
appropriately.
* Manually review .buildkite/scripts/pipelines/pull_request/pipeline.ts
to ensure that any CI pipeline customizations continue to be correctly
applied after the changed path names
* Review all of the updated files, specially the `.ts` and `.js` files
listed in the sections below.


#### 1 package(s) are going to be relocated:

  | Id | Target folder |
  | -- | ------------- |
  | `@kbn/doc-links` | `src/platform/packages/shared/kbn-doc-links` |


<details>
<summary>Updated references</summary>

```
./docs/upgrade-notes.asciidoc
./package.json
./packages/kbn-repo-packages/package-map.json
./packages/kbn-ts-projects/config-paths.json
./src/core/tsconfig.type_check.json
./src/platform/packages/shared/kbn-doc-links/jest.config.js
./src/plugins/ai_assistant_management/selection/tsconfig.type_check.json
./tsconfig.base.json
./tsconfig.base.type_check.json
./tsconfig.refs.json
./x-pack/plugins/alerting/tsconfig.type_check.json
./x-pack/plugins/search_connectors/tsconfig.type_check.json
./x-pack/plugins/search_inference_endpoints/tsconfig.type_check.json
./x-pack/plugins/search_playground/tsconfig.type_check.json
./x-pack/plugins/security_solution/tsconfig.type_check.json
./x-pack/plugins/serverless_search/tsconfig.type_check.json
./x-pack/plugins/threat_intelligence/tsconfig.type_check.json
./yarn.lock
```
</details>
<details>
<summary>Updated relative paths</summary>

```
src/platform/packages/shared/kbn-doc-links/jest.config.js:12
src/platform/packages/shared/kbn-doc-links/tsconfig.json:2
src/platform/packages/shared/kbn-doc-links/tsconfig.type_check.json:2
```
</details>
<details>
<summary>Script errors</summary>

```

```
</details>
2024-12-05 14:54:58 +01:00
Pierre Gayvallet
14ad13b6a3
Add base FTR test coverage for inference APIs (#198000)
## Summary

Part of https://github.com/elastic/kibana-team/issues/1271

This PR introduces the first set of end to end integration test for the
inference APIs, and the tooling required to do so (see issue for more
context)

- Add a dedicated pipeline for ai-infra GenAI tests. pipeline is
triggered when:
  - genAI stack connectors, or ai-infra owned code is changed
  - when the `ci:all-gen-ai-suites` label is present on a PR
  - on merge
- adapt the `ftr_configs.sh` script to load GenAI connector
configuration from vault when a specific var env is set
- create the `@kbn/gen-ai-functional-testing` package, which for now
only contains utilities to load the GenAI connector configuration in FTR
tests
- Add FTR integration tests for the `chatComplete` API of the
`inference` plugin

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2024-12-04 06:39:45 -06:00
Zacqary Adam Xeper
8f267fd83c
[ResponseOps][Rules] Move Rule Form code into @kbn/response-ops-rule-form (#198725)
## Summary

Part of #195211

Moves Rule Form code out of `@kbn/alerts-ui-shared` and into a new
package called `@kbn/response-ops-rule-form`.

Some types and hooks that are used by multiple features or solutions are
still in `@kbn/alerts-ui-shared` and have been rerouted. The bulk of
Rule Form-specific code is in this new package.


### 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>
Co-authored-by: Kevin Delemme <kevin.delemme@elastic.co>
2024-12-03 12:40:48 -06:00
Joe Reuter
56f2e2258a
🌊 Adjust codeowners for streams code (#202367)
Pending on adding the team to the repo

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2024-12-03 17:16:14 +01:00
Bharat Pasupula
6ef0284bce
[Automatic Import] Add base for ftr api tests (#200169)
## Summary

This PR adds a baseline for FTR API tests for Automatic Import.

- Relates https://github.com/elastic/kibana/issues/196063

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2024-12-03 15:56:10 +01:00
Alberto Blázquez
e5b1773971
Create the "Asset Inventory" Kibana Plugin (#202291)
## Summary

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

Create an empty "Asset Inventory" plugin with the minimal boilerplate
required to set it up, install it and run it on Kibana with a blank
slate.

I generated the files using the `node scripts/generate_plugin <NAME>`
script as per [this documentation
page](https://docs.elastic.dev/kibana-dev-docs/getting-started/hello-world-app#2-option-2---use-the-automatic-plugin-generator).

### Screenshots


<details><summary>Main page (Sample page)</summary>
<img width="2498" alt="Screenshot 2024-11-29 at 14 20 57"
src="https://github.com/user-attachments/assets/9d8a3751-519b-4661-bc90-cbb1e836b111">
</details> 

### Implementation details

- [x] Generated a new Kibana plugin with minimal boilerplate and zero
dependencies
- [x] Use [Cloud Security
Posture](https://github.com/elastic/kibana/tree/main/x-pack/plugins/cloud_security_posture)
plugin as configuration reference
- [x] Render "Inventory" title on the main page
- [x] Ensure the plugin is properly integrated into Kibana's build and
can be loaded without errors
- [x] Place the plugin under the `x-pack/plugins` directory
- [x] Include Readme file
- [x] Introduce placeholders for initialization of pipelines and
transforms following [Cloud Security
Posture](https://github.com/elastic/kibana/blob/main/x-pack/plugins/cloud_security_posture/server/plugin.ts)
plugin initialize function.

### PR Checklist

- [ ] No docs for now
~~[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials~~
- [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 since this is totally green-field and will be hidden by
a feature toggle.

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Paulo Silva <paulo.henrique@elastic.co>
2024-12-03 11:29:53 +01:00
seanrathier
acba610c67
[Cloud Security] Fix serverless quality gate tests and introduce a better solution tests that are only run in MKI Serverless Quality Gates (#202038) 2024-12-02 21:11:30 -08:00
Michael Olorunnisola
78842b7c1c
[Security Solution] - Update codeowners (#202046)
As part of the EUI update work here:
https://github.com/elastic/kibana/issues/199715, we've been asked to
more specifically identify files owned by sub teams of security
solution. This is an initial pass at that work. Please let me know if
any of the files identified for your team are innaccurate
2024-12-02 15:18:59 -06:00
Kerry Gallagher
b0122f547d
[Discover / Logs] Add new "Saved Search component" (#199787)
## Summary

Implements
https://github.com/elastic/logs-dev/issues/111#issuecomment-2446470635.

This adds a new "Saved Search component". The component is a wrapper
around the current Saved Search Embeddable, but uses
`ReactEmbeddableRenderer` directly to render the embeddable outside of
Dashboard contexts. It monitors changes to things like `index`,
`filters` etc and communicates these changes through the embeddable API.

For this PoC two locations were changed to use this component 1) Logs
Overview flyout 2) APM Logs tab (when the Logs Overview isn't enabled
via advanced settings).

The component itself is technically beyond a PoC, and resides in it's
own package. ~I'd like to get eyes from the Discover folks etc on the
approach, and if we're happy I can fix the remaining known issues (apart
from the mixing of columns point as I believe this exists on the roadmap
anyway) and we can merge this for the initial two replacement points.~
[Thanks Davis
👌](https://github.com/elastic/logs-dev/issues/111#issuecomment-2475350199).

`nonPersistedDisplayOptions` is added to facilitate some configurable
options via runtime state, but without the complexity of altering the
actual saved search saved object.

On the whole I've tried to keep this as clean as possible whilst working
within the embeddable framework, outside of a dashboard context.

## Known issues

- ~"Flyout on flyout" in the logs overview flyout (e.g. triggering the
table's flyout in this context).~ Fixed with `enableFlyout` option.
- ~Filter buttons should be disabled via pills (e.g. in Summary
column).~ Fixed with `enableFilters` option.
- Summary (`_source`) column cannot be used alongside other columns,
e.g. log level, so column customisation isn't currently enabled. You'll
just get timestamp and summary. This requires changes in the Unified
Data Table. **Won't be fixed in this PR**

- We are left with this panel button that technically doesn't do
anything outside of a dashboard. I don't *think* there's an easy way to
disable this. **Won't be fixed in this PR**
![Screenshot 2024-11-20 at 11 50
43](https://github.com/user-attachments/assets/e43a47cd-e36e-4511-ba88-c928a4acd634)


## Followups

- ~The Logs Overview details state machine can be cleaned up (it doesn't
need to fetch documents etc anymore).~ The state machine no longer
fetches it's own documents. Some scaffolding is left in place as it'll
be needed for showing category details anyway.

## Example

![Screenshot 2024-11-20 at 12 20
08](https://github.com/user-attachments/assets/3b25d591-e3e2-4e8a-98a8-1bfc849d3bc1)
![Screenshot 2024-11-20 at 12 23
34](https://github.com/user-attachments/assets/a2d28036-98c5-4404-934e-2298cf4a66bf)

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2024-11-29 23:09:24 +00:00
Carlos Crespo
bedc0660d8
[Infra] Unskip infra serverless tests (#202146)
fixes [191809](https://github.com/elastic/kibana/issues/191809)

## Summary

Unskip infra e2e serverless tests
2024-11-29 11:45:48 -06:00
Elena Shostak
976b94ffa5
Dependency Ownership CLI (#201773)
## Summary

1. Show all packages owned by a specific team
```
node scripts/dependency_ownership -o <owner>
```
2. Identify owners of a specific dependency
```
node scripts/dependency_ownership -d <dependency>
```

3. List dependencies without an owner
```
node scripts/dependency_ownership --missing-owner
```

4. Generate a full dependency ownership report
```
node scripts/dependency_ownership
```

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


__Closes: https://github.com/elastic/kibana/issues/196767__

---------

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2024-11-29 17:18:36 +01:00
Milton Hultgren
38c9c6728a
Reduce obs knowledge code ownership (#202010)
Trying again, by changing the plugin files...

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2024-11-29 14:51:16 +01:00
Tre
c011bc7be6
[Ownership] Assign test files to obs team (#201985)
## Summary

Assign test files to obs team

Contributes to: #192979
2024-11-29 12:25:05 +00:00
Tre
0544f35355
[Ownership] Assign more to security solution (#200996)
## Summary

Assign test files to security solution team

Contributes to: #192979

---------

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2024-11-29 09:37:18 +00:00
Davis McPhee
be7d748845
[Discover] Add context awareness telemetry tests for Observability profiles (#201310)
## Summary

As suggested in
https://github.com/elastic/kibana/pull/199255#discussion_r1842804292,
I've copied and modified the existing Discover context awareness
telemetry tests to work for Observability profiles. This helps test that
solution root profiles are picked up as expected, as well as giving us
some serverless coverage.

@elastic/appex-qa It didn't seem like there were any config specific
services for serverless tests yet, so I added the EBT to services to the
main serverless config. If there's a better way to do this, please let
me know and I can update it.

### 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
- [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
- [ ] 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)
2024-11-28 20:12:26 -04:00
Alberto Blázquez
e3027cf1e1
Reorganize references to folders owned by CSP team in CODEOWNERS file (#202036)
## Summary

Reorganize references to folders owned by the CSP team in `CODEOWNERS`
file.

### Details

- Removed duplicated reference to
`x-pack/plugins/security_solution/public/cloud_security_posture` folder
- Removed redundant references to `basic.ts` and `essentials.ts` in
`x-pack/test_serverless/functional/test_suites/security/config.cloud_security_posture`
folder when whole of it is owned
- ~~Removed redundant references to `common`, `graph` and `public`
folders in CSP package when whole package is owned (and missed an
explicit reference to the `storybook` subfolder too)~~
- ~~Grouped and sorted references to all folders owned by our team to
avoid spreading them and to have them in a single part of the file~~ CI
autogenerates part of the file, so I could only group and sort some
references

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

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2024-11-27 12:41:50 -06:00
Tre
01c18c2795
[Ownership] Assign test files to shared ux team (#201988)
## Summary

Assign test files to shared ux team

Contributes to: #192979
2024-11-27 12:06:52 -06:00
Tre
9e75f1838e
[Ownership] Assign test files to presentation team (#201919)
## Summary

Assign test files to presentation team

Contributes to: #192979

---------

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2024-11-27 16:24:18 +00:00
Tre
2c6c33ce7e
[Ownership] Assign test files to fleet team (#201918)
## Summary

Assign test files to fleet team

Contributes to: #192979
2024-11-27 11:48:16 +00:00
Tre
d0774144f0
[Ownership] Assign test files to data discovery team (#201648)
## Summary

Assign test files to data discovery team

Contributes to: #192979

---------

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Julia Rechkunova <julia.rechkunova@gmail.com>
2024-11-27 05:29:47 -06:00
Sandra G
fa16ab3151
[Ownership] add security-solution to data usage tests (#201822)
security-solution also needs to be a part of data usage as they need to
review the PRs.
2024-11-26 13:39:42 -06:00
Dzmitry Lemechko
310d922f13
[kbn-scout] initial package implementation (playwright-test POC) (#194006)
## Summary

This PR introduces a new package, **kbn-scout**, designed to streamline
the setup and execution of Playwright tests for Kibana. The `kbn-scout`
package consolidates server management and testing capabilities by
wrapping both the Kibana/Elasticsearch server launcher and the
Playwright test runner. It includes:

- Test and worker-scoped fixtures for reliable setup across test suites
- Page objects combined into the fixture for Kibana UI interactions
- Configurations for seamless test execution in both local and CI
environments (`Cloud` execution is out of scope)
- This package aims to simplify test setup and enhance modularity,
making it easier to create, run, and maintain deployment-agnostic tests,
that are located in the plugin they actually test.

Tests example is available in `x-pack/plugins/discover_enhanced` plugin
under `ui_tests` folder

How to run:
1) As a single script (servers + tests): 
```
node scripts/scout_test.js --config=x-pack/plugins/discover_enhanced/ui_tests/playwright.config.ts --serverless=es
```

2) Start servers first
```
node scripts/scout_start_servers.js --serverless=es
```
then run tests:
```
npx playwright test --config=x-pack/plugins/discover_enhanced/ui_tests/playwright.config.ts
```
if you have Playwright plugin in IDEA, just use it to run tests files

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2024-11-26 17:33:49 +01:00
Tre
f43a8608da
[Ownership] Assign test screenshots to presentation team (#201646)
## Summary

Assign test screenshots to presentation team


Contributes to: #192979
2024-11-26 05:20:12 -06:00
Tre
97a43f7c90
[Ownership] Assign test files to security-detections-response team (#200998)
## Summary

Assign test files to security-detections-response team

Contributes to: #192979

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2024-11-26 10:26:12 +00:00
Tre
2f6af2d884
[Ownership] Assign test files to ml team (#200946)
## Summary

Assign test files to ml team

Contributes to: #192979
2024-11-26 09:28:34 +00:00
Tre
553556d466
[Ownership] Assign test files to logstash team (#201005)
## Summary

Assign test files to logstash team
 
Contributes to: #192979

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2024-11-26 09:24:18 +00:00