Commit graph

3485 commits

Author SHA1 Message Date
Elena Shostak
34bf83b54f
Dependency usage CLI (#198920)
## Summary


[dependency-cruiser](https://github.com/sverweij/dependency-cruiser/tree/main)
is used for building dependency graph.

### Show all dependencies for a specific package/plugin or directory

#### Run for all plugins
```bash
bash scripts/dependency_usage.sh -p x-pack/plugins -o ./tmp/deps-result-all.json
```

#### Run for single plugin
```bash
bash scripts/dependency_usage.sh -p x-pack/plugins/security_solution -o ./tmp/deps-result-single.json
```

#### Run for multiple plugins
```bash
bash scripts/dependency_usage.sh -p x-pack/plugins/security_solution x-pack/plugins/security -o ./tmp/deps-result-multiple.json
```

#### Run for `x-pack/packages`
```bash
bash scripts/dependency_usage.sh -p x-pack/packages -o ./tmp/deps-packages-1.json
```

#### Run for `packages`
```bash
bash scripts/dependency_usage.sh -p packages -o ./tmp/deps-packages-2.json
```

#### Benchmark

| Analysis              | Real Time   | User Time   | Sys Time   |
|-----------------------|-------------|-------------|------------|
| All plugins           | 7m 21.126s  | 7m 53.099s  | 20.581s    |
| Single plugin         | 31.360s     | 45.352s     | 2.208s     |
| Multiple plugins      | 36.403s     | 50.563s     | 2.814s     |
| x-pack/packages       | 6.638s      | 12.646s     | 0.654s     |
| packages              | 25.744s     | 39.073s     | 2.191s     |


#### Show all packages/plugins within a directory that use a specific
dependency

```sh
bash scripts/dependency_usage.sh -d rxjs -p x-pack/plugins/security_solution
```
---
#### Show all packages/plugins within a directory grouped by code owner
```sh
bash scripts/dependency_usage.sh -d rxjs -p x-pack/plugins -g owner
```
---

#### Group by code owner with adjustable collapse depth for fine-grained
grouping
**Fine-grained grouping**:
```sh
bash scripts/dependency_usage.sh -p x-pack/plugins/security_solution -g owner --collapse-depth 4
```
**Collapsed grouping**: groups the results under a higher-level owner
(e.g., `security_solution` as a single group).
```bash
bash scripts/dependency_usage.sh -p x-pack/plugins/security_solution -g owner --collapse-depth 1
```
---

#### Show all dependencies matching a pattern (e.g., `react-*`) within a
package
```bash
bash scripts/dependency_usage.sh -p x-pack/plugins/security_solution -d 'react-*' -o ./tmp/result.json
```

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

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

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2024-11-25 14:07:40 +01:00
elastic-renovate-prod[bot]
15160b8d8b
Update dependency re2js to v0.4.3 (main) (#200831) 2024-11-25 05:26:51 -06:00
elastic-renovate-prod[bot]
c6976b4fd0
Update dependency @testing-library/jest-dom to ^6.6.3 (main) (#191816)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
|
[@testing-library/jest-dom](https://togithub.com/testing-library/jest-dom)
| devDependencies | minor | [`^6.5.0` ->
`^6.6.3`](https://renovatebot.com/diffs/npm/@testing-library%2fjest-dom/6.5.0/6.6.3)
|

---

### Release Notes

<details>
<summary>testing-library/jest-dom
(@&#8203;testing-library/jest-dom)</summary>

###
[`v6.6.3`](https://togithub.com/testing-library/jest-dom/releases/tag/v6.6.3)

[Compare
Source](https://togithub.com/testing-library/jest-dom/compare/v6.6.2...v6.6.3)

##### Bug Fixes

- add vitest import when extending vitest matchers
([#&#8203;646](https://togithub.com/testing-library/jest-dom/issues/646))
([5ba0156](5ba015651c))

###
[`v6.6.2`](https://togithub.com/testing-library/jest-dom/releases/tag/v6.6.2)

[Compare
Source](https://togithub.com/testing-library/jest-dom/compare/v6.6.1...v6.6.2)

##### Bug Fixes

- remove recursive type reference in vitest types
([#&#8203;636](https://togithub.com/testing-library/jest-dom/issues/636))
([4468378](4468378fb4))

###
[`v6.6.1`](https://togithub.com/testing-library/jest-dom/releases/tag/v6.6.1)

[Compare
Source](https://togithub.com/testing-library/jest-dom/compare/v6.6.0...v6.6.1)

##### Bug Fixes

- fix lodash import in to-have-selection.js
([#&#8203;642](https://togithub.com/testing-library/jest-dom/issues/642))
([ced792e](ced792e2f2))

###
[`v6.6.0`](https://togithub.com/testing-library/jest-dom/releases/tag/v6.6.0)

[Compare
Source](https://togithub.com/testing-library/jest-dom/compare/v6.5.0...v6.6.0)

##### Features

- implement toHaveSelection
([#&#8203;637](https://togithub.com/testing-library/jest-dom/issues/637))
([9b14804](9b148043d0))

</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:eyJjcmVhdGVkSW5WZXIiOiIzNy40MjUuMSIsInVwZGF0ZWRJblZlciI6IjM3LjQyNS4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJUZWFtOk9wZXJhdGlvbnMiLCJyZWxlYXNlX25vdGU6c2tpcCJdfQ==-->

Co-authored-by: elastic-renovate-prod[bot] <174716857+elastic-renovate-prod[bot]@users.noreply.github.com>
Co-authored-by: Brad White <Ikuni17@users.noreply.github.com>
2024-11-22 16:17:57 -06:00
Tiago Costa
4f7fd39b65
chore(NA): bump and update archiver, pac-resolver dependencies (#201447)
This PR simply bumps and updates the mentioned dependencies.
2024-11-22 20:04:33 +00:00
Kevin Lacabane
0b3f4fbd3c
[eem] _search endpoint / initial entity manager UI (#199609)
## Summary

- create `_search` endpoint to discover entities with esql queries. It
currently reads sources of the provided `type` from
`kibana_entity_definitions` index. Run this query to insert a
definition:
```
POST kibana_entity_definitions/_doc
{
    "entity_type": "service",
    "index_patterns": ["remote_cluster:logs-*"],
    "metadata_fields": [],
    "identity_fields": ["service.name"],
    "filters": [],
    "timestamp_field": "@timestamp"
}
```

By default `_search` will look at data in the last 5m. The lookup period
can be overriden by providing `start`/`end` parameters in ISO format. It
also accepts a `limit` to specify the number of entities returned which
defaults to 10

```
POST kbn:/internal/entities/v2/_search
{
    "type": "service",
    "start": "2024-11-19T20:40:00.000Z",
    "end": "2024-11-19T20:50:00.000Z",
    "limit": 20
}
```

- create `_search/preview` endpoint to preview output of entity sources
without persisting them
 
- create UI to preview results of an entity definition at
`/app/entity_manager`. The application is living in its own plugin at
`observability_solution/entity_manager_app`
![Screenshot 2024-11-11 at 11 37
18](https://github.com/user-attachments/assets/f284342d-21a3-4ba1-be94-38cff311266c)

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Milton Hultgren <miltonhultgren@gmail.com>
2024-11-22 16:12:04 +01:00
Rodney Norris
a84122c4ca
[Search] Introduce search navigation plugin (#200314) 2024-11-22 08:35:49 -06:00
Gerard Soldevila
b24fdf5d3f
Sustainable Kibana Architecture: Categorise straightforward packages (#199630)
## Summary

This PR is part of the Kibana Sustainable Architecture effort.

The goal is to start categorising Kibana packages into _generic
platform_ (`group: "platform"`) vs _solution-specific_.

```
group?: 'search' | 'security' | 'observability' | 'platform'
visibility?: 'private' | 'shared'
```
Uncategorised modules are considered to be `group: 'common', visibility:
'shared'` by default.

We want to prevent code from solution A to depend on code from solution
B.
Thus, the rules are pretty simple:

* Modules can only depend on:
  * Modules in the same group
  * OR modules with 'shared' visibility
* Modules in `'observability', 'security', 'search'` groups are
mandatorily `visibility: "private"`.

Long term, the goal is to re-organise packages into dedicated folders,
e.g.:

```
x-pack/platform/plugins/private
x-pack/observability/packages
```

For this first wave, we have categorised packages that seem
"straightforward":
* Any packages that have:
  * at least one dependant module
  * all dependants belong to the same group
* Categorise all Core packages:
  * `@kbn/core-...-internal` => _platform/private_
  * everything else => _platform/shared_
* Categorise as _platform/shared_ those packages that:
  * Have at least one dependant in the _platform_ group.
  * Don't have any `devOnly: true` dependants.

### What we ask from you, as CODEOWNERS of the _package manifests_, is
that you confirm that the categorisation is correct:

* `group: "platform", visibility: "private"` if it's a package that
should only be used from platform code, not from any solution code. It
will be loaded systematically in all serverless flavors, but solution
plugins and packages won't be able to `import` from it.
* `group: "platform", visibility: "shared"` if it's a package that can
be consumed by both platform and solutions code. It will be loaded
systematically in all serverless flavors, and anybody can import / use
code from it.
* `group: "observability" | "security" | "search", visibility:
"private"` if it's a package that is intented to be used exclusively
from a given solution. It won't be accessible nor loaded from other
solutions nor platform code.

Please refer to
[#kibana-sustainable-architecture](https://elastic.slack.com/archives/C07TCKTA22E)
for any related questions.

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2024-11-22 10:33:25 +01:00
Dzmitry Lemechko
88a280c250
[chore] remove unused nyc configs and dependencies (#200909)
## Summary

nyc (istanbuljs) cleanup as we no longer collect code coverage for
functional tests
2024-11-20 16:41:30 +01:00
elastic-renovate-prod[bot]
942848413a
Update dependency @elastic/request-converter to ^8.16.1 (main) (#200885) 2024-11-20 14:51:34 +01:00
elastic-renovate-prod[bot]
78f4d75c3b
Update dependency terser to ^5.36.0 (main) (#197476)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [terser](https://terser.org)
([source](https://togithub.com/terser/terser)) | devDependencies | minor
| [`^5.34.0` ->
`^5.36.0`](https://renovatebot.com/diffs/npm/terser/5.34.1/5.36.0) |

---

### Release Notes

<details>
<summary>terser/terser (terser)</summary>

###
[`v5.36.0`](https://togithub.com/terser/terser/blob/HEAD/CHANGELOG.md#v5360)

[Compare
Source](https://togithub.com/terser/terser/compare/v5.35.0...v5.36.0)

-   Support import attributes `with` syntax

###
[`v5.35.0`](https://togithub.com/terser/terser/blob/HEAD/CHANGELOG.md#v5350)

[Compare
Source](https://togithub.com/terser/terser/compare/v5.34.1...v5.35.0)

- Ensure parent directory exists when using --output on CLI
([#&#8203;1530](https://togithub.com/terser/terser/issues/1530))

</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:eyJjcmVhdGVkSW5WZXIiOiIzNy40MjUuMSIsInVwZGF0ZWRJblZlciI6IjM3LjQyNS4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJUZWFtOk9wZXJhdGlvbnMiLCJyZWxlYXNlX25vdGU6c2tpcCJdfQ==-->

---------

Co-authored-by: elastic-renovate-prod[bot] <174716857+elastic-renovate-prod[bot]@users.noreply.github.com>
Co-authored-by: Brad White <Ikuni17@users.noreply.github.com>
Co-authored-by: Brad White <brad.white@elastic.co>
2024-11-19 17:32:36 -06:00
elastic-renovate-prod[bot]
69dc8a21f3
Update dependency eslint-plugin-depend to ^0.12.0 (main) (#199593)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
|
[eslint-plugin-depend](https://togithub.com/es-tooling/eslint-plugin-depend)
| devDependencies | minor | [`^0.11.0` ->
`^0.12.0`](https://renovatebot.com/diffs/npm/eslint-plugin-depend/0.11.0/0.12.0)
|

---

### Release Notes

<details>
<summary>es-tooling/eslint-plugin-depend
(eslint-plugin-depend)</summary>

###
[`v0.12.0`](https://togithub.com/es-tooling/eslint-plugin-depend/releases/tag/0.12.0)

[Compare
Source](https://togithub.com/es-tooling/eslint-plugin-depend/compare/0.11.0...0.12.0)

#### What's Changed

- chore: bump module-replacements by
[@&#8203;43081j](https://togithub.com/43081j) in
[https://github.com/es-tooling/eslint-plugin-depend/pull/37](https://togithub.com/es-tooling/eslint-plugin-depend/pull/37)

**Full Changelog**:
https://github.com/es-tooling/eslint-plugin-depend/compare/0.11.0...0.12.0

</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:eyJjcmVhdGVkSW5WZXIiOiIzNy40MjUuMSIsInVwZGF0ZWRJblZlciI6IjM3LjQyNS4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJUZWFtOk9wZXJhdGlvbnMiLCJyZWxlYXNlX25vdGU6c2tpcCJdfQ==-->

Co-authored-by: elastic-renovate-prod[bot] <174716857+elastic-renovate-prod[bot]@users.noreply.github.com>
Co-authored-by: Brad White <Ikuni17@users.noreply.github.com>
2024-11-19 15:48:29 -06:00
Steph Milovic
755ef312f2
[Security solution] ChatBedrockConverse (#200042) 2024-11-19 14:45:31 -06:00
Lene Gadewoll
ee49986876
[Visual Refresh] Add Borealis theme (#199993)
## Summary

This PR introduces the first internal version of the new theme
`Borealis` and ensures that:
- themes can be switched between "Amsterdam" and "Borealis"
- theme-specific Sass files are available and can be loaded with
`KBN_OPTIMIZER_THEMES=experimental`
- legacy JSON variable usage accounts for both themes
- static template styles account for both themes


## Running locally

```yml
// kibana.dev.yml or kibana.yml
uiSettings.experimental.themeSwitcherEnabled: true
```

Start kibana
```
KBN_OPTIMIZER_THEMES='v8light,v8dark,borealislight,borealisdark' yarn start

or

KBN_OPTIMIZER_THEMES=experimental yarn start
```

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

---------

Co-authored-by: Tomasz Kajtoch <tomasz.kajtoch@elastic.co>
2024-11-19 16:35:10 +01:00
Pierre Gayvallet
455c781c6d
[LLM tasks] Add product documentation retrieval task (#194379)
## Summary

Close https://github.com/elastic/kibana/issues/193473
Close https://github.com/elastic/kibana/issues/193474

This PR utilize the documentation packages that are build via the tool
introduced by https://github.com/elastic/kibana/pull/193847, allowing to
install them in Kibana and expose documentation retrieval as an LLM task
that AI assistants (or other consumers) can call.

Users can now decide to install the Elastic documentation from the
assistant's config screen, which will expose a new tool for the
assistant, `retrieve_documentation` (only implemented for the o11y
assistant in the current PR, shall be done for security as a follow up).

For more information, please refer to the self-review.

## General architecture

<img width="1118" alt="Screenshot 2024-10-17 at 09 22 32"
src="https://github.com/user-attachments/assets/3df8c30a-9ccc-49ab-92ce-c204b96d6fc4">

## What this PR does

Adds two plugin:
- `productDocBase`: contains all the logic related to product
documentation installation, status, and search. This is meant to be a
"low level" components only responsible for this specific part.
- `llmTasks`: an higher level plugin that will contain various LLM tasks
to be used by assistants and genAI consumers. The intent is not to have
a single place to put all llm tasks, but more to have a default place
where we can introduce new tasks from. (fwiw, the `nlToEsql` task will
probably be moved to that plugin).

- Add a `retrieve_documentation` tool registration for the o11y
assistant
- Add a component on the o11y assistant configuration page to install
the product doc

(wiring the feature to the o11y assistant was done for testing purposes
mostly, any addition / changes / enhancement should be done by the
owning team - either in this PR or as a follow-up)

## What is NOT included in this PR:

- Wire product base feature to the security assistant (should be done by
the owning team as a follow-up)
  - installation
  - utilization as tool

- FTR tests: this is somewhat blocked by the same things we need to
figure out for https://github.com/elastic/kibana-team/issues/1271

## Screenshots 

### Installation from o11y assistant configuration page

<img width="1476" alt="Screenshot 2024-10-17 at 09 41 24"
src="https://github.com/user-attachments/assets/31daa585-9fb2-400a-a2d1-5917a262367a">

### Example of output

#### Without product documentation installed 

<img width="739" alt="Screenshot 2024-10-10 at 09 59 41"
src="https://github.com/user-attachments/assets/993fb216-6c9a-433f-bf44-f6e383d20d9d">

#### With product documentation installed

<img width="718" alt="Screenshot 2024-10-10 at 09 55 38"
src="https://github.com/user-attachments/assets/805ea4ca-8bc9-4355-a434-0ba81f8228a9">

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Alex Szabo <alex.szabo@elastic.co>
Co-authored-by: Matthias Wilhelm <matthias.wilhelm@elastic.co>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2024-11-19 08:28:26 -06:00
elastic-renovate-prod[bot]
75be9c30bf
Update dependency @xyflow/react to ^12.3.5 (main) (#200571)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [@xyflow/react](https://reactflow.dev)
([source](https://togithub.com/xyflow/xyflow/tree/HEAD/packages/react))
| dependencies | patch | [`^12.3.4` ->
`^12.3.5`](https://renovatebot.com/diffs/npm/@xyflow%2freact/12.3.4/12.3.5)
|

---

### Release Notes

<details>
<summary>xyflow/xyflow (@&#8203;xyflow/react)</summary>

###
[`v12.3.5`](https://togithub.com/xyflow/xyflow/blob/HEAD/packages/react/CHANGELOG.md#1235)

[Compare
Source](https://togithub.com/xyflow/xyflow/compare/@xyflow/react@12.3.4...@xyflow/react@12.3.5)

##### Patch Changes

- [#&#8203;4789](https://togithub.com/xyflow/xyflow/pull/4789)
[`358eb355`](358eb355e0)
Thanks [@&#8203;peterkogo](https://togithub.com/peterkogo)! - Support
key combinations which include '+' (e.g., 'Control++' resolves to the
combination 'Control' and '+').

- [#&#8203;4796](https://togithub.com/xyflow/xyflow/pull/4796)
[`73402779`](7340277987)
Thanks [@&#8203;Aki-7](https://togithub.com/Aki-7)! - Fix number of
issues connected to batching node & edge updates.

- [#&#8203;4790](https://togithub.com/xyflow/xyflow/pull/4790)
[`2fa9a920`](2fa9a92042)
Thanks [@&#8203;peterkogo](https://togithub.com/peterkogo)! - Fix node
dragging & resizing while zooming on flow that does not cover whole
browser window.

- [#&#8203;4782](https://togithub.com/xyflow/xyflow/pull/4782)
[`323e1b35`](323e1b35c5)
Thanks [@&#8203;peterkogo](https://togithub.com/peterkogo)! - Fix node
intersections in nested flow.

- Updated dependencies
\[[`2fa9a920`](2fa9a92042),
[`323e1b35`](323e1b35c5)]:
-
[@&#8203;xyflow/system](https://togithub.com/xyflow/system)[@&#8203;0](https://togithub.com/0).0.46

</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:eyJjcmVhdGVkSW5WZXIiOiIzNy40MjUuMSIsInVwZGF0ZWRJblZlciI6IjM3LjQyNS4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJUZWFtOkNsb3VkIFNlY3VyaXR5IiwiYmFja3BvcnQ6c2tpcCIsInJlbGVhc2Vfbm90ZTpza2lwIl19-->

Co-authored-by: elastic-renovate-prod[bot] <174716857+elastic-renovate-prod[bot]@users.noreply.github.com>
2024-11-19 06:09:06 -06:00
Anton Dosov
45972374f0
[ES|QL] Starred queries in the editor (#198362)
## Summary

close https://github.com/elastic/kibana/issues/194165
close https://github.com/elastic/kibana-team/issues/1245

### User-facing

<img width="1680" alt="image"
src="https://github.com/user-attachments/assets/6df4ee9f-1b4d-404c-a764-592998a1d430">

This PRs adds a new tab in the editor history component. You can star
your query from the history and then you will see it in the Starred
list. The started queries are scoped to a user and a space.


### Server

To allow starring ESQL query, this PR extends [favorites
service](https://github.com/elastic/kibana/pull/189285) with ability to
store metadata in addition to an id. To make metadata strict and in
future to support proper metadata migrations if needed, metadata needs
to be defined as schema:

```
plugins.contentManagement.favorites.registerFavoriteType('esql_query', {
       typeMetadataSchema: schema.object({ query: schema.string(), timeRange:...., etc... }),
})
```

Notable changes: 

- Add support for registering a favorite type and a schema for favorite
type metadata. Previosly the `dashboard` type was the only supported
type and was hardcoded
- Add `favoriteMetadata` property to a saved object mapping and make it
`enabled:false` we don't want to index it, but just want to store
metadata in addition to an id.
[code](https://github.com/elastic/kibana/pull/198362/files#diff-d1a39e36f1de11a1110520d7607e6aee7d506c76626993842cb58db012b760a2R74-R87)
- Add a 100 favorite items limit (per type per space per user). Just do
it for sanity to prevent too large objects due to metadata stored in
addtion to ids.

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Stratoula Kalafateli <efstratia.kalafateli@elastic.co>
Co-authored-by: Stratoula Kalafateli <stratoula1@gmail.com>
2024-11-18 21:53:46 +01:00
Nathan Reese
9f545039ab
fix dashboard grid item performs 2 DOM queries every render (#199390)
Closes https://github.com/elastic/kibana/issues/199361

While investigating, I found that fetching DOM element with id
`app-fixed-viewport` is a common pattern. I created the hook
`useAppFixedViewport` to consolidate this logic into a single location.
The hook only performs the DOM look-up on first render and then avoids
the DOM look-up on each additional render.

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2024-11-18 11:32:53 -07:00
Gerard Soldevila
ab0375f56f
Kibana Sustainable Architecture: Expose StatusResponse in core-status-common (#200524)
## Summary

- Exposes the interfaces that define the format of the response of the
`/api/status` endpoint.
- Moves them from `@kbn/core-status-common-internal` to
`@kbn/core-status-common`.
- Removes the former package, as it no longer contains anything.
- Fixes some of the illegal dependencies uncovered by
https://github.com/elastic/kibana/pull/199630.

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2024-11-18 14:34:54 +01:00
elastic-renovate-prod[bot]
d2f07b3a06
Update ftr (main) (#199090)
This PR contains the following updates:

| Package | Type | Update | Change | Pending |
|---|---|---|---|---|
|
[@types/selenium-webdriver](https://togithub.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/selenium-webdriver)
([source](https://togithub.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/selenium-webdriver))
| devDependencies | patch | [`^4.1.26` ->
`^4.1.27`](https://renovatebot.com/diffs/npm/@types%2fselenium-webdriver/4.1.26/4.1.27)
| |
| [chromedriver](https://togithub.com/giggio/node-chromedriver) |
devDependencies | patch | [`^130.0.1` ->
`^130.0.4`](https://renovatebot.com/diffs/npm/chromedriver/130.0.1/130.0.4)
| `131.0.0` |
|
[geckodriver](https://togithub.com/webdriverio-community/node-geckodriver)
| devDependencies | major | [`^4.5.1` ->
`^5.0.0`](https://renovatebot.com/diffs/npm/geckodriver/4.5.1/5.0.0) | |
|
[selenium-webdriver](https://togithub.com/SeleniumHQ/selenium/tree/trunk/javascript/node/selenium-webdriver#readme)
([source](https://togithub.com/SeleniumHQ/selenium)) | devDependencies |
minor | [`^4.25.0` ->
`^4.26.0`](https://renovatebot.com/diffs/npm/selenium-webdriver/4.25.0/4.26.0)
| |

---

### Release Notes

<details>
<summary>giggio/node-chromedriver (chromedriver)</summary>

###
[`v130.0.4`](https://togithub.com/giggio/node-chromedriver/compare/130.0.3...130.0.4)

[Compare
Source](https://togithub.com/giggio/node-chromedriver/compare/130.0.3...130.0.4)

###
[`v130.0.3`](https://togithub.com/giggio/node-chromedriver/compare/130.0.2...130.0.3)

[Compare
Source](https://togithub.com/giggio/node-chromedriver/compare/130.0.2...130.0.3)

###
[`v130.0.2`](https://togithub.com/giggio/node-chromedriver/compare/130.0.1...130.0.2)

[Compare
Source](https://togithub.com/giggio/node-chromedriver/compare/130.0.1...130.0.2)

</details>

<details>
<summary>webdriverio-community/node-geckodriver (geckodriver)</summary>

###
[`v5.0.0`](https://togithub.com/webdriverio-community/node-geckodriver/releases/tag/v5.0.0):
Release 5.0.0

[Compare
Source](https://togithub.com/webdriverio-community/node-geckodriver/compare/v4.5.1...v5.0.0)

#### 💥 Breaking

- update license from MLP to MIT
([`9ecf5e2`](9ecf5e2))
- require Node.js v18
([`366cbb6`](366cbb6))

#### 🧹 Chore

- set gitattributes
([`5f26dc7`](5f26dc7))
- fix husky
([`29d87c5`](29d87c5))
-   update various dependencies

</details>

<details>
<summary>SeleniumHQ/selenium (selenium-webdriver)</summary>

###
[`v4.26.0`](8a8aea2337...8ccf0219d7)

[Compare
Source](8a8aea2337...8ccf0219d7)

</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.

👻 **Immortal**: This PR will be recreated if closed unmerged. Get
[config help](https://togithub.com/renovatebot/renovate/discussions) if
that's undesired.

---

- [ ] <!-- 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:eyJjcmVhdGVkSW5WZXIiOiIzNy40MjUuMSIsInVwZGF0ZWRJblZlciI6IjM3LjQyNS4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJUZWFtOk9wZXJhdGlvbnMiLCJyZWxlYXNlX25vdGU6c2tpcCJdfQ==-->

Co-authored-by: elastic-renovate-prod[bot] <174716857+elastic-renovate-prod[bot]@users.noreply.github.com>
Co-authored-by: Brad White <Ikuni17@users.noreply.github.com>
2024-11-14 21:18:10 -06:00
elastic-renovate-prod[bot]
31994854d2
Update dependency @launchdarkly/node-server-sdk to ^9.7.1 (main) (#199836) 2024-11-14 18:47:38 -06:00
Sid
cffa49773c
Upgrade cross-spawn to v7.0.5 (#199794)
Update `cross-spawn` v7.x to v7.0.5.

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2024-11-14 13:37:59 +01:00
Dario Gieselaar
11a752da87
[Observability] Split up observability-utils package (#199801)
Split up observability-utils package in browser, common, server. Also
made a small change to `withSpan` to automatically log operation times
when the debug level for the logger is enabled.

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2024-11-13 19:51:42 +01:00
Chris Cowan
b86dc8102a
[Streams] Introducing the new Streams plugin (#198713)
## Summary

This PR introduces the new experimental "Streams" plugin into the Kibana
project. The Streams project aims to simplify workflows around dealing
with messy logs in Elasticsearch. Our current offering is either
extremely opinionated with integrations or leaves the user alone with
the high flexibility of Elasticsearch concepts like index templates,
component templates and so on, which make it challenging to configure
everything correctly for good performance and controlling search speed
and cost.

### Scope of PR
- Provides an API for the user to "enable" the streams framework which
creates the "root" entity `logs` with all the backing Elasticsearch
assets
- Provides an API for the user to "fork" a stream
- Provides an API for the user to "read" a stream and all of it's
Elasticsearch assets.
- Provides an API for the user to upsert a stream (and implicitly child
streams that are mentioned)
- Part of this API is placing grok and disscect processing steps as well
as fields to the mapping
- Implements the Stream Naming Schema (SNS) which uses dots to express
the index patterns and stream IDs. Example: `logs.nginx.errors`
- The APIs will fully manage the `index_template`, `component_template`,
and `ingest_pipelines`.

### Out of scope
- Integration tests (coming in a follow-up)

### Reviewer Notes
- I haven't implemented tests beyond a unit test for converting the
filter conditions to Painless. I wanted to get a PR up so we can start
iterating on the interface and functionality before we invest in
testing.
- You might need to add `server.versioned.versionResolution: oldest` to
your `config/kibana.dev.yaml` to play with the requests below in the
Kibana "Dev console".

### Example API Calls

Enable the root stream (and set the mapping for the internal `.streams`
index)
```
POST kbn:/api/streams/_enable
```

Read the root entity "logs"
```
GET kbn:/api/streams/logs
```

Fork the "root" entity "logs" and create "logs.nginx" based on a
condition
```
POST kbn:/api/streams/logs/_fork
{
  "stream": {
    "id": "logs.nginx",
    "children": [],
    "processing": [],
    "fields": [],
  },
  "condition": {
    "field": "log.logger",
    "operator": "eq",
    "value": "nginx_proxy"
  }
}
```

Fork the entity "logs.nginx" and create "logs.nginx.errors" based on a
condition
```
POST kbn:/api/streams/logs.nginx/_fork
{
  "stream": {
    "id": "logs.nginx.error",
    "children": [],
   "processing": [],
   "fields": [],
  },
  "condition": {
    "or": [
      { "field": "log.level", "operator": "eq", "value": "error" },
      { "field": "log.level", "operator": "eq", "value": "ERROR" }
    ]
  }
}
```

Set some processing on a stream and map the generated field
```
PUT kbn:/api/streams/logs.nginx
{
    "children": [],
    "processing": [
       { "config": { "type": "grok", "patterns": ["^%{IP:ip} – –"], "field": "message" } }
    ],
    "fields": [
       { "name": "ip", "type": "ip" }
    ],
  }
}
```

Field definitions are checked for both descendants and ancestors for
incompatibilities to ensure they stay additive.

If children are defined in the `PUT /api/streams/<name>` API,
sub-streams are created implicitly. If a stream is `PUT`, it's added to
the parent as well with a condition that is never true (can be edited
subsequently).

`POST /api/streams/_resync` can be used to re-sync all streams from
their meta data in case the Elasticsearch objects got messed up by some
external change - not sure whether we want to keep that.


Follow-ups

* API integration tests 
* Check read permissions on data streams to determine whether a user is
allowed to read certain streams

---------

Co-authored-by: Joe Reuter <johannes.reuter@elastic.co>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2024-11-13 11:52:59 +01:00
Sergi Massaneda
9a9f02c931
[IndexAdapter] Extract index-adapter package from data-stream-adapter (#199575)
## Summary

Extracts `IndexAdapter` from `DataStreamAdapter` and
`IndexPatternAdapter` from `DataStreamSpaceAdapter`.

There are no breaking changes for the _data-stream-adapter_ package; the
behavior of both the `DataStreamAdapter` and `DataStreamSpaceAdapter`
remains unchanged.

The new _index-adapter_ package exports `IndexAdapter` and
`IndexPatternAdapter` to manage individual indices without using data
streams.

This is needed for SIEM rule migrations.

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2024-11-12 18:16:32 +01:00
elastic-renovate-prod[bot]
84d79e1442
Update dependency @elastic/elasticsearch to ^8.15.2 (main) (#199705)
Co-authored-by: elastic-renovate-prod[bot] <174716857+elastic-renovate-prod[bot]@users.noreply.github.com>
Co-authored-by: Alejandro Fernández Haro <alejandro.haro@elastic.co>
2024-11-12 11:41:15 +01:00
Cee Chen
4e65ae9b1e
Upgrade EUI to v97.3.1 (#199186)
`v97.3.0``v97.3.1`

_[Questions? Please see our Kibana upgrade
FAQ.](https://github.com/elastic/eui/blob/main/wiki/eui-team-processes/upgrading-kibana.md#faq-for-kibana-teams)_

---

## [`v97.3.1`](https://github.com/elastic/eui/releases/v97.3.1)

**Bug fixes**

- Fixed an `EuiComboBox` bug where Enter keypresses were not working
correctly on selection clear buttons
([#8105](https://github.com/elastic/eui/pull/8105))
- Fixed an `EuiSuperDatePicker` bug where inputs would overflow out of
smaller widths instead of truncating
([#8109](https://github.com/elastic/eui/pull/8109))
- Fixed a bug with `EuiPageHeader`'s `rightSideItems` responsiveness
where single items could overflow past the intended max width
([#8110](https://github.com/elastic/eui/pull/8110))
2024-11-11 19:02:34 -06:00
elastic-renovate-prod[bot]
f54b95179f
Update dependency @redocly/cli to ^1.25.11 (main) (#199647) 2024-11-11 17:28:14 -06:00
elastic-renovate-prod[bot]
4f53a11347
Update dependency @elastic/elasticsearch to ^8.15.1 (main) (#196478) 2024-11-11 21:08:40 +01:00
Anton Dosov
c8227a2694
[React@18] Upgrade @testing-library/react (#198918) 2024-11-11 02:31:15 -06:00
Matthew Kime
d805546507
[ilm] Remove observability solution dependency on index lifecycle management plugin bundle (#199383)
Create package for observability solution's dependencies from index
lifecycle management. Previously it relied on the plugin bundle but
thats best avoided with our sustainable architecture efforts.

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

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2024-11-10 20:18:49 -06:00
elastic-renovate-prod[bot]
e27f3d9ad6
Update dependency @xyflow/react to ^12.3.3 (main) (#199193)
This PR contains the following updates:

| Package | Type | Update | Change | Pending |
|---|---|---|---|---|
| [@xyflow/react](https://reactflow.dev)
([source](https://togithub.com/xyflow/xyflow/tree/HEAD/packages/react))
| dependencies | patch | [`^12.3.2` ->
`^12.3.3`](https://renovatebot.com/diffs/npm/@xyflow%2freact/12.3.2/12.3.3)
| `12.3.4` |

---

### Release Notes

<details>
<summary>xyflow/xyflow (@&#8203;xyflow/react)</summary>

###
[`v12.3.3`](https://togithub.com/xyflow/xyflow/blob/HEAD/packages/react/CHANGELOG.md#1233)

[Compare
Source](https://togithub.com/xyflow/xyflow/compare/@xyflow/react@12.3.2...@xyflow/react@12.3.3)

##### Patch Changes

- [#&#8203;4755](https://togithub.com/xyflow/xyflow/pull/4755)
[`005ae1c0`](005ae1c05f)
Thanks [@&#8203;peterkogo](https://togithub.com/peterkogo)! - Add module
to exports in package.json. This should resolve possible issues with
Webpack ESM Module Resolution.

- [#&#8203;4730](https://togithub.com/xyflow/xyflow/pull/4730)
[`2c590b90`](2c590b9078)
Thanks [@&#8203;peterkogo](https://togithub.com/peterkogo)! - Fixed rare
crash while dragging

- Updated dependencies
\[[`005ae1c0`](005ae1c05f),
[`2c590b90`](2c590b9078)]:
-
[@&#8203;xyflow/system](https://togithub.com/xyflow/system)[@&#8203;0](https://togithub.com/0).0.44

</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:eyJjcmVhdGVkSW5WZXIiOiIzNy40MjUuMSIsInVwZGF0ZWRJblZlciI6IjM3LjQyNS4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJUZWFtOkNsb3VkIFNlY3VyaXR5IiwiYmFja3BvcnQ6c2tpcCIsInJlbGVhc2Vfbm90ZTpza2lwIl19-->

Co-authored-by: elastic-renovate-prod[bot] <174716857+elastic-renovate-prod[bot]@users.noreply.github.com>
2024-11-08 12:12:58 -06:00
Sébastien Loix
1761047b27
[Reporting] update puppeteer to version 23.7.0 (#199304) 2024-11-07 17:49:12 +00:00
Michael Olorunnisola
3f236b1499
[WIP] - Unskip threat hunting tests (#195662)
1. Added `cypress-network-idle` to better wait for a full page load as a
loading indicator flicker could cause flakiness.

2. List of addressed open issues:

Resolves https://github.com/elastic/kibana/issues/191819
Resolves https://github.com/elastic/kibana/issues/178367
Resolves https://github.com/elastic/kibana/issues/176757
Resolves https://github.com/elastic/kibana/issues/176759
Resolves https://github.com/elastic/kibana/issues/176758
Resolves https://github.com/elastic/kibana/issues/193840
Resolves https://github.com/elastic/kibana/issues/182206
Resolves https://github.com/elastic/kibana/issues/181977
Resolves https://github.com/elastic/kibana/issues/168768
Resolves https://github.com/elastic/kibana/issues/168769
Resolves https://github.com/elastic/kibana/issues/168770
Resolves https://github.com/elastic/kibana/issues/168771
Resolves https://github.com/elastic/kibana/issues/168772
Resolves https://github.com/elastic/kibana/issues/183104
Resolves https://github.com/elastic/kibana/issues/173854

Successful Flaky Test Runner:
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/7267

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2024-11-07 11:30:23 -05:00
elastic-renovate-prod[bot]
a2c94d87c4
Update dependency @redocly/cli to ^1.25.10 (main) (#199300)
Co-authored-by: elastic-renovate-prod[bot] <174716857+elastic-renovate-prod[bot]@users.noreply.github.com>
2024-11-07 10:17:04 -06:00
Paulo Silva
5ab59fba40
[Fleet] [Cloud Security] Add Testing Library ESLint for handling waitFor (#198735)
## Summary

This PR aims to fix Flaky tests related to agentless detected by
https://github.com/elastic/kibana/issues/189038 and
https://github.com/elastic/kibana/issues/192126 by adding proper
handling of the `waitFor` methods.

It was also detected with
https://github.com/elastic/security-team/issues/10979 that some other
methods were not proper handled by `waitFor`, leading to the assertions
inside those unhandled `waitFor` being skipped by Jest.

This PR also introduces ESLint to enforce proper handling of waitFor
methods in tests files for Fleet and Cloud Security plugins.

Additional note: These changes should also unblock the failing tests on
the [React18 use waitFor with assertion callbacks in place of
waitForNextUpdate](https://github.com/elastic/kibana/pull/195087) PR


**Fleet changes**

- ESLint rule added to enforce handling `waitFor` on React Testing
Library.
- `useSetupTechnology` hook tests reviewed and updated to handle the
waitFor. Fixed issue identified when reviewing the tests.
- step_define_package_policy.test.tsx: Added package policy vars to the
mock to proper handle the use cases
- step_select_hosts.test.tsx: Handled waitFor, identified outdated test
- step_edit_hosts.test.tsx: Handled waitFor, identified outdated test
With the introduction of the ESLint rule other tests were triggering
ESLint errors, I attempted to fix them while retaining the same
intention, let me know if more changes are needed.

**Cloud Security changes**

- ESLint rule added to enforce handling `waitFor` on React Testing
Library.
- Updated cloud security posture version to include agentless global
tags on End to End tests

**@elastic/kibana-operations changes**

- Added
[eslint-plugin-testing-library](https://testing-library.com/docs/ecosystem-eslint-plugin-testing-library/)
an ESLint plugin for Testing Library that helps users to follow best
practices and anticipate common mistakes when writing tests.
- The adoption and enablement of the rules are opt-in.
2024-11-05 14:34:18 -08:00
elastic-renovate-prod[bot]
79b9454d36
Update OpenFeature (main) (#199039) 2024-11-05 15:52:36 -06:00
elastic-renovate-prod[bot]
16979cd50c
Update dependency @redocly/cli to ^1.25.9 (main) (#198949) 2024-11-05 15:49:08 -06:00
elastic-renovate-prod[bot]
e04d214e48
Update dependency express to ^4.21.1 (main) (#195495)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [express](http://expressjs.com/)
([source](https://togithub.com/expressjs/express)) | devDependencies |
patch | [`^4.21.0` ->
`^4.21.1`](https://renovatebot.com/diffs/npm/express/4.21.0/4.21.1) |

---

### Release Notes

<details>
<summary>expressjs/express (express)</summary>

###
[`v4.21.1`](https://togithub.com/expressjs/express/releases/tag/4.21.1)

[Compare
Source](https://togithub.com/expressjs/express/compare/4.21.0...4.21.1)

#### What's Changed

- Backport a fix for CVE-2024-47764 to the 4.x branch by
[@&#8203;joshbuker](https://togithub.com/joshbuker) in
[https://github.com/expressjs/express/pull/6029](https://togithub.com/expressjs/express/pull/6029)
- Release: 4.21.1 by
[@&#8203;UlisesGascon](https://togithub.com/UlisesGascon) in
[https://github.com/expressjs/express/pull/6031](https://togithub.com/expressjs/express/pull/6031)

**Full Changelog**:
https://github.com/expressjs/express/compare/4.21.0...4.21.1

</details>

---

### Configuration

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

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

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

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

---

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

---

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

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MjUuMSIsInVwZGF0ZWRJblZlciI6IjM3LjQyNS4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJyZWxlYXNlX25vdGU6c2tpcCIsInRlYW06b2JzLWVudGl0aWVzIl19-->

Co-authored-by: elastic-renovate-prod[bot] <174716857+elastic-renovate-prod[bot]@users.noreply.github.com>
Co-authored-by: Milton Hultgren <milton.hultgren@elastic.co>
2024-11-05 08:57:58 -06:00
elastic-renovate-prod[bot]
d312358b4b
Update dependency elastic-apm-node to ^4.8.1 (main) (#198847)
Co-authored-by: elastic-renovate-prod[bot] <174716857+elastic-renovate-prod[bot]@users.noreply.github.com>
2024-11-05 07:55:02 -06:00
elastic-renovate-prod[bot]
43daa7ee07
Update dependency @redocly/cli to ^1.25.8 (main) (#197990)
Co-authored-by: elastic-renovate-prod[bot] <174716857+elastic-renovate-prod[bot]@users.noreply.github.com>
2024-11-05 07:42:04 -06:00
Steph Milovic
0744b13ee0
[Security solution] Update LangChain packages to latest (#198622) 2024-11-04 10:18:37 -07:00
Jatin Kathuria
641d0e2d47
[Security Solution] Revert security_solution_common package which is unnecessary (#198294)
## Summary

This PR reverts https://github.com/elastic/kibana/pull/189633.

### Background

PR : https://github.com/elastic/kibana/pull/189633 had created a package
`security_solution_common` so that security components can be easily
used in Discover plugins.

But because of recent direction change, I have decided to revert that
change which mainly moved `flyout` code to the
`security_solution_common` package.

Most of the changes that you will see will be path changes replacing
`security_solution_common`.


## TL;DR

`security_solution_common` is being removed as the reason it was created
does not exists any more.

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2024-11-04 15:39:32 +01:00
Pierre Gayvallet
631ccb031c
[Inference] create the @kbn/inference-common package (#193464)
## Summary

At the moment, all inference API related types and utilities
(`chatComplete`, `output` and more) are living inside the `inference`
plugin's common folder.

This is somewhat problematic because it forces any consumers of those
types to explicitly depends on the `inference` plugin (via plugin dep or
ts ref), which could lead to any kind of cyclic dependency issues, in
addition to being overall a bad design pattern.

This also makes it more complicated that it should to try to split the
inference logic / task framework / task implementation into distinct
packages or plugins, due to some (concrete) utilities living in the
inference plugin's code.

It's also a bad experience for consumers, as it's quite difficult to
easily resolve imports they need (we're mixing internal and public
exports atm, plus not all types are exported from a single entry point,
making it very tedious to find the right path for each individual import
we need to consume the inference APIs)

This PR addresses most of those points, by introducing a new
`@kbn/inference-common` package and moving all the low level types and
utilities to it, while exposing all of them from the package's
entrypoint.

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2024-11-01 04:08:44 -05:00
elastic-renovate-prod[bot]
d1531e351e
Update LaunchDarkly (main) (#198163)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
|
[@launchdarkly/node-server-sdk](https://togithub.com/launchdarkly/js-core/tree/main/packages/sdk/server-node)
([source](https://togithub.com/launchdarkly/js-core)) | dependencies |
patch | [`^9.6.1` ->
`^9.7.0`](https://renovatebot.com/diffs/npm/@launchdarkly%2fnode-server-sdk/9.7.0/9.7.0)
|
|
[launchdarkly-js-client-sdk](https://togithub.com/launchdarkly/js-client-sdk)
| dependencies | minor | [`^3.4.0` ->
`^3.5.0`](https://renovatebot.com/diffs/npm/launchdarkly-js-client-sdk/3.4.0/3.5.0)
|

---

### Release Notes

<details>
<summary>launchdarkly/js-client-sdk
(launchdarkly-js-client-sdk)</summary>

###
[`v3.5.0`](https://togithub.com/launchdarkly/js-client-sdk/blob/HEAD/CHANGELOG.md#350-2024-10-18)

[Compare
Source](https://togithub.com/launchdarkly/js-client-sdk/compare/3.4.0...3.5.0)

##### Features

- Add support for client-side prerequisite events.
([#&#8203;306](https://togithub.com/launchdarkly/js-client-sdk/issues/306))
([fe51da0](fe51da0c2b))

</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.

👻 **Immortal**: This PR will be recreated if closed unmerged. Get
[config help](https://togithub.com/renovatebot/renovate/discussions) if
that's undesired.

---

- [ ] <!-- 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:eyJjcmVhdGVkSW5WZXIiOiIzNy40MjUuMSIsInVwZGF0ZWRJblZlciI6IjM3LjQyNS4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJUZWFtOkNvcmUiLCJUZWFtOlNlY3VyaXR5IiwiYmFja3BvcnQ6cHJldi1taW5vciIsInJlbGVhc2Vfbm90ZTpza2lwIl19-->

---------

Co-authored-by: elastic-renovate-prod[bot] <174716857+elastic-renovate-prod[bot]@users.noreply.github.com>
Co-authored-by: Alex Szabo <alex.szabo@elastic.co>
2024-10-31 18:08:16 +00:00
elastic-renovate-prod[bot]
a3d90cfcf6
Update ftr (main) (#198455)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [chromedriver](https://togithub.com/giggio/node-chromedriver) |
devDependencies | major | [`^129.0.0` ->
`^130.0.1`](https://renovatebot.com/diffs/npm/chromedriver/129.0.1/130.0.1)
|
|
[geckodriver](https://togithub.com/webdriverio-community/node-geckodriver)
| devDependencies | minor | [`^4.4.4` ->
`^4.5.1`](https://renovatebot.com/diffs/npm/geckodriver/4.4.4/4.5.1) |

---

### Release Notes

<details>
<summary>giggio/node-chromedriver (chromedriver)</summary>

###
[`v130.0.1`](https://togithub.com/giggio/node-chromedriver/compare/130.0.0...130.0.1)

[Compare
Source](https://togithub.com/giggio/node-chromedriver/compare/130.0.0...130.0.1)

###
[`v130.0.0`](https://togithub.com/giggio/node-chromedriver/compare/129.0.4...130.0.0)

[Compare
Source](https://togithub.com/giggio/node-chromedriver/compare/129.0.4...130.0.0)

###
[`v129.0.4`](https://togithub.com/giggio/node-chromedriver/compare/129.0.3...129.0.4)

[Compare
Source](https://togithub.com/giggio/node-chromedriver/compare/129.0.3...129.0.4)

###
[`v129.0.3`](https://togithub.com/giggio/node-chromedriver/compare/129.0.2...129.0.3)

[Compare
Source](https://togithub.com/giggio/node-chromedriver/compare/129.0.2...129.0.3)

###
[`v129.0.2`](https://togithub.com/giggio/node-chromedriver/compare/129.0.1...129.0.2)

[Compare
Source](https://togithub.com/giggio/node-chromedriver/compare/129.0.1...129.0.2)

</details>

<details>
<summary>webdriverio-community/node-geckodriver (geckodriver)</summary>

###
[`v4.5.1`](https://togithub.com/webdriverio-community/node-geckodriver/releases/tag/v4.5.1):
Release 4.5.1

[Compare
Source](https://togithub.com/webdriverio-community/node-geckodriver/compare/v4.5.0...v4.5.1)

- fix: correct type on gecko driver params to be logNoTruncate instead
of logNoTruncated
([#&#8203;567](https://togithub.com/webdriverio-community/node-geckodriver/issues/567))
([`138fde4`](138fde4))
- chore(deps-dev): bump
[@&#8203;vitest/coverage-v8](https://togithub.com/vitest/coverage-v8)
from 2.1.1 to 2.1.2
([#&#8203;562](https://togithub.com/webdriverio-community/node-geckodriver/issues/562))
([`c67f71f`](c67f71f))
- chore(deps-dev): bump eslint-plugin-unicorn from 55.0.0 to 56.0.0
([#&#8203;563](https://togithub.com/webdriverio-community/node-geckodriver/issues/563))
([`8976f2c`](8976f2c))
- chore(deps-dev): bump release-it from 17.6.0 to 17.7.0
([#&#8203;559](https://togithub.com/webdriverio-community/node-geckodriver/issues/559))
([`81cee91`](81cee91))
- chore(deps-dev): bump eslint-plugin-import from 2.30.0 to 2.31.0
([#&#8203;561](https://togithub.com/webdriverio-community/node-geckodriver/issues/561))
([`17fc269`](17fc269))
- chore(deps-dev): bump
[@&#8203;typescript-eslint/eslint-plugin](https://togithub.com/typescript-eslint/eslint-plugin)
([#&#8203;557](https://togithub.com/webdriverio-community/node-geckodriver/issues/557))
([`0adbf99`](0adbf99))
- chore(deps-dev): bump webdriverio from 9.0.9 to 9.1.2
([#&#8203;555](https://togithub.com/webdriverio-community/node-geckodriver/issues/555))
([`82d20c7`](82d20c7))
- chore(deps-dev): bump
[@&#8203;types/node](https://togithub.com/types/node) from 22.5.5 to
22.7.4
([#&#8203;554](https://togithub.com/webdriverio-community/node-geckodriver/issues/554))
([`15a13a8`](15a13a8))
- chore(deps-dev): bump
[@&#8203;typescript-eslint/parser](https://togithub.com/typescript-eslint/parser)
from 8.6.0 to 8.7.0
([#&#8203;556](https://togithub.com/webdriverio-community/node-geckodriver/issues/556))
([`a15da9a`](a15da9a))

###
[`v4.5.0`](https://togithub.com/webdriverio-community/node-geckodriver/releases/tag/v4.5.0):
Release 4.5.0

[Compare
Source](https://togithub.com/webdriverio-community/node-geckodriver/compare/v4.4.4...v4.5.0)

- feat: support spawnOpts for geckodriver child process
([#&#8203;552](https://togithub.com/webdriverio-community/node-geckodriver/issues/552))
([`3edaf8e`](3edaf8e))
- chore(deps): bump rollup from 4.21.3 to 4.22.4
([#&#8203;551](https://togithub.com/webdriverio-community/node-geckodriver/issues/551))
([`2b429a4`](2b429a4))
- chore(deps-dev): bump
[@&#8203;typescript-eslint/parser](https://togithub.com/typescript-eslint/parser)
from 8.5.0 to 8.6.0
([#&#8203;548](https://togithub.com/webdriverio-community/node-geckodriver/issues/548))
([`c24a4c6`](c24a4c6))
- chore(deps-dev): bump
[@&#8203;typescript-eslint/eslint-plugin](https://togithub.com/typescript-eslint/eslint-plugin)
([#&#8203;549](https://togithub.com/webdriverio-community/node-geckodriver/issues/549))
([`6437865`](6437865))
- chore(deps): bump vite from 5.4.5 to 5.4.6
([#&#8203;546](https://togithub.com/webdriverio-community/node-geckodriver/issues/546))
([`9ad9e72`](9ad9e72))
- chore(deps-dev): bump husky from 9.1.5 to 9.1.6
([#&#8203;540](https://togithub.com/webdriverio-community/node-geckodriver/issues/540))
([`590a837`](590a837))
- chore(deps-dev): bump
[@&#8203;types/node](https://togithub.com/types/node) from 22.5.4 to
22.5.5
([#&#8203;543](https://togithub.com/webdriverio-community/node-geckodriver/issues/543))
([`e5f91da`](e5f91da))
- chore(deps-dev): bump
[@&#8203;vitest/coverage-v8](https://togithub.com/vitest/coverage-v8)
from 2.0.5 to 2.1.1
([#&#8203;544](https://togithub.com/webdriverio-community/node-geckodriver/issues/544))
([`cc5c1aa`](cc5c1aa))
- chore(deps-dev): bump npm-run-all2 from 6.2.2 to 6.2.3
([#&#8203;538](https://togithub.com/webdriverio-community/node-geckodriver/issues/538))
([`26d8383`](26d8383))
- chore(deps-dev): bump typescript from 5.5.4 to 5.6.2
([#&#8203;542](https://togithub.com/webdriverio-community/node-geckodriver/issues/542))
([`9c97480`](9c97480))
- chore(deps-dev): bump
[@&#8203;typescript-eslint/parser](https://togithub.com/typescript-eslint/parser)
from 8.4.0 to 8.5.0
([#&#8203;541](https://togithub.com/webdriverio-community/node-geckodriver/issues/541))
([`4bd169d`](4bd169d))
- chore(deps-dev): bump tsx from 4.19.0 to 4.19.1
([#&#8203;539](https://togithub.com/webdriverio-community/node-geckodriver/issues/539))
([`2e366a9`](2e366a9))
- chore(deps-dev): bump
[@&#8203;types/node](https://togithub.com/types/node) from 22.5.2 to
22.5.4
([#&#8203;537](https://togithub.com/webdriverio-community/node-geckodriver/issues/537))
([`78502e3`](78502e3))
- chore(deps-dev): bump
[@&#8203;typescript-eslint/parser](https://togithub.com/typescript-eslint/parser)
from 8.3.0 to 8.4.0
([#&#8203;533](https://togithub.com/webdriverio-community/node-geckodriver/issues/533))
([`9f71ec5`](9f71ec5))
- chore(deps-dev): bump
[@&#8203;typescript-eslint/eslint-plugin](https://togithub.com/typescript-eslint/eslint-plugin)
([#&#8203;531](https://togithub.com/webdriverio-community/node-geckodriver/issues/531))
([`94aed15`](94aed15))
- chore(deps-dev): bump webdriverio from 9.0.7 to 9.0.9
([#&#8203;534](https://togithub.com/webdriverio-community/node-geckodriver/issues/534))
([`fd6c4a6`](fd6c4a6))
- chore(deps-dev): bump eslint-plugin-import from 2.29.1 to 2.30.0
([#&#8203;532](https://togithub.com/webdriverio-community/node-geckodriver/issues/532))
([`ae42ebd`](ae42ebd))

</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.

👻 **Immortal**: This PR will be recreated if closed unmerged. Get
[config help](https://togithub.com/renovatebot/renovate/discussions) if
that's undesired.

---

- [ ] <!-- 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:eyJjcmVhdGVkSW5WZXIiOiIzNy40MjUuMSIsInVwZGF0ZWRJblZlciI6IjM3LjQyNS4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJUZWFtOk9wZXJhdGlvbnMiLCJyZWxlYXNlX25vdGU6c2tpcCJdfQ==-->

Co-authored-by: elastic-renovate-prod[bot] <174716857+elastic-renovate-prod[bot]@users.noreply.github.com>
Co-authored-by: Jon <jon@elastic.co>
2024-10-31 09:12:46 -05:00
Cee Chen
4e7d43a031
Upgrade EUI to v97.3.0 (#198087)
`v97.2.0``v97.3.0`

_[Questions? Please see our Kibana upgrade
FAQ.](https://github.com/elastic/eui/blob/main/wiki/eui-team-processes/upgrading-kibana.md#faq-for-kibana-teams)_

---

## [`v97.3.0`](https://github.com/elastic/eui/releases/v97.3.0)

- `EuiDataGrid` now supports a new
`toolbarVisibility.showDisplaySelector.customRender` function that
allows completely customizing the rendering of the display selector
popover ([#8080](https://github.com/elastic/eui/pull/8080))
- `EuiDataGrid`'s row height/lines per row setting has been streamlined
in both UI and UX ([#8080](https://github.com/elastic/eui/pull/8080))
- `EuiDataGrid` now accepts consumer-passed display setting updates even
after users have changed their display preferences via UI
([#8080](https://github.com/elastic/eui/pull/8080))
- Updated `EuiDataGrid` to vertically center all
`toolbarVisibility.additionalControls` nodes
([#8085](https://github.com/elastic/eui/pull/8085))
- Updated `EuiDataGrid` with a beta
`rowHeightsOptions.autoBelowLineCount` feature flag
([#8096](https://github.com/elastic/eui/pull/8096))
- Updated `EuiContextMenuPanel` to allow disabling initial focus via
`initialFocusedItemIndex={-1}`
([#8101](https://github.com/elastic/eui/pull/8101))

**Bug fixes**

- Fixed `EuiComment`'s typing to correctly reflect all accepted props
([#8089](https://github.com/elastic/eui/pull/8089))
- Fixed `EuiSelectableTemplateSitewide`s within dark-themed `EuiHeader`s
missing input borders
([#8100](https://github.com/elastic/eui/pull/8100))
2024-10-30 19:41:45 -07:00
elastic-renovate-prod[bot]
b7beae8e19
Update dependency @types/lodash to ^4.17.13 (main) (#198275)
Co-authored-by: elastic-renovate-prod[bot] <174716857+elastic-renovate-prod[bot]@users.noreply.github.com>
2024-10-30 08:27:14 -05:00
elastic-renovate-prod[bot]
88ebb55fc7
Update dependency @launchdarkly/node-server-sdk to ^9.6.1 (main) (#196897) 2024-10-29 06:36:48 -05:00
elastic-renovate-prod[bot]
0de1f95d0e
Update dependency msw to ^2.4.12 (main) (#198060)
This PR contains the following updates:

| Package | Type | Update | Change | Pending |
|---|---|---|---|---|
| [msw](https://mswjs.io) ([source](https://togithub.com/mswjs/msw)) |
devDependencies | patch | [`^2.4.11` ->
`^2.4.12`](https://renovatebot.com/diffs/npm/msw/2.4.11/2.4.12) |
`2.5.2` (+3) |

---

### Release Notes

<details>
<summary>mswjs/msw (msw)</summary>

### [`v2.4.12`](https://togithub.com/mswjs/msw/releases/tag/v2.4.12)

[Compare
Source](https://togithub.com/mswjs/msw/compare/v2.4.11...v2.4.12)

#### v2.4.12 (2024-10-21)

##### Bug Fixes

- **node:** preserve headers instanceof when recording raw headers
([#&#8203;2321](https://togithub.com/mswjs/msw/issues/2321))
([`a58a300`](a58a300687))
[@&#8203;paoloricciuti](https://togithub.com/paoloricciuti)

</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:eyJjcmVhdGVkSW5WZXIiOiIzNy40MjUuMSIsInVwZGF0ZWRJblZlciI6IjM3LjQyNS4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJUZWFtOkNsb3VkIFNlY3VyaXR5IiwiYmFja3BvcnQ6c2tpcCIsInJlbGVhc2Vfbm90ZTpza2lwIl19-->

Co-authored-by: elastic-renovate-prod[bot] <174716857+elastic-renovate-prod[bot]@users.noreply.github.com>
2024-10-28 18:47:42 -05:00
Mike Côté
c31f11e7d8
Set mget task claim strategy as the default (#197070)
Resolves https://github.com/elastic/kibana/issues/194625

In this PR, I'm setting `mget` as the default task claiming strategy
along the following changes:
- Given we no longer need the 8.16 specific PRs
(https://github.com/elastic/kibana/pull/196317 and
https://github.com/elastic/kibana/pull/196757), I've also reverted them.
- Given we now use `met` as the default, I've renamed
`task_manager_claimer_mget` to `task_manager_claimer_update_by_query`
and made tests in that folder test using the `update_by_query` claim
strategy.
- Stabilize flaky tests caused by mget + polling for tasks more
frequently

Flaky test runners:
-
[[59b71bc](59b71bcdbe)]
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/7197
-
[[aea910e](aea910e36d)]
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/7199
-
[[4723ced](4723ced751)]
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/7206
-
[[d28c8c5](d28c8c56f6)]
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/7209
-
[[dd7773a](dd7773aeba)]
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/7224

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2024-10-25 08:57:46 -04:00