Commit graph

2903 commits

Author SHA1 Message Date
Patrick Mueller
1f3426942c
[examples] add routes to access v8 profiling (#155956)
Adds routes to run v8 profiling tools, when running the examples plugins
via `--run-examples`

See the included README.md for more info
2023-06-30 08:42:38 -04:00
Ignacio Rivas
ec620e7fb3
[Deployment Management] Add cards navigation in management landing page for serverless (#160096) 2023-06-30 11:27:56 +02:00
Devon Thomson
d0fe5e93b6
[Dashboard] 404 page (#160213)
Adds a 404 page, and ensures that errors are properly surfaced both if
they happen at dashboard container creation time and if they happen when
navigating from one dashboard to the next.
2023-06-29 13:33:58 -04:00
renovate[bot]
a5ff6e6c76
Update dependency @elastic/charts to v59 (main) (#160700)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [@elastic/charts](https://togithub.com/elastic/elastic-charts) |
[`58.2.0` ->
`59.0.0`](https://renovatebot.com/diffs/npm/@elastic%2fcharts/58.2.0/59.0.0)
|
[![age](https://badges.renovateapi.com/packages/npm/@elastic%2fcharts/59.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/@elastic%2fcharts/59.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/@elastic%2fcharts/59.0.0/compatibility-slim/58.2.0)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/@elastic%2fcharts/59.0.0/confidence-slim/58.2.0)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>elastic/elastic-charts (@&#8203;elastic/charts)</summary>

###
[`v59.0.0`](https://togithub.com/elastic/elastic-charts/blob/HEAD/CHANGELOG.md#&#8203;5900-httpsgithubcomelasticelastic-chartscomparev5821v5900-2023-06-27)

[Compare
Source](https://togithub.com/elastic/elastic-charts/compare/v58.2.1...v59.0.0)

##### Bug Fixes

- **legend:** use reading direction sorting for stacked bar charts
([#&#8203;2080](https://togithub.com/elastic/elastic-charts/issues/2080))
([be9c839](be9c83906a))

##### BREAKING CHANGES

- **legend:** the sorting order of the legend is now inverted for
stacked charts, following the reading direction of the legend
(top-to-bottom in insertion order)

####
[58.2.1](https://togithub.com/elastic/elastic-charts/compare/v58.2.0...v58.2.1)
(2023-06-23)

##### Bug Fixes

- remove unused redux dev tools
([#&#8203;2079](https://togithub.com/elastic/elastic-charts/issues/2079))
([1870303](1870303880))

###
[`v58.2.1`](https://togithub.com/elastic/elastic-charts/blob/HEAD/CHANGELOG.md#&#8203;5821-httpsgithubcomelasticelastic-chartscomparev5820v5821-2023-06-23)

[Compare
Source](https://togithub.com/elastic/elastic-charts/compare/v58.2.0...v58.2.1)

##### Bug Fixes

- remove unused redux dev tools
([#&#8203;2079](https://togithub.com/elastic/elastic-charts/issues/2079))
([1870303](1870303880))

</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 [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/elastic/kibana).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4xNDEuMyIsInVwZGF0ZWRJblZlciI6IjM1LjE0MS4zIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Marco Vettorello <marco.vettorello@elastic.co>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-06-28 23:36:06 -03:00
Marco Antonio Ghiani
6a0d6deaa6
[Logs+] Implement Logs Dataset selector (#159907)
## 📓  Summary

Closes https://github.com/elastic/observability-dev/issues/2655

This PR introduces a customized log consumption experience in the
Discover plugin. By leveraging the new `discover_log_explorer` plugin
and utilizing the `discover.customize` functionality, we have curated a
more tailored user experience.

The key feature of this implementation is the `DatasetSelector`
component, which replaces the original Discover `DataViewPicker`. It
handles the retrieval, rendering, and navigation of integrations and
data streams related to logs, providing an improved user interface.

This PR involves significant development efforts, including the creation
of the `discover_log_explorer` plugin, implementation of services, state
machines, custom hooks, and enhancements to presentational components.
The following overview will help reviewers understand the
responsibilities of each component in this implementation.


d725b699-452e-4718-8189-8dc1fab4d044

## DatasetsService & DatasetsClient

The DatasetsService is introduced, a crucial component that mediates
access to the newly implemented DatasetsClient. During the plugin's
lifecycle, the DatasetsService exposes a client property through its
start() method, providing convenient access to a DatasetsClient
instance.

The DatasetsClient is responsible for abstracting the data fetching
process for two endpoints: the integrations endpoint and the data
streams listing endpoint. These endpoints are utilized to populate the
selector options in the user interface. To facilitate this, the
DatasetsClient exposes the findIntegrations and findDatasets methods,
which handle the respective data fetching.

## Discover Customization

The critical part of this work consists of where the customization is
applied.
Inside the `public/plugin.tsx`, we lazy load and create, injecting the
required dependencies, the `CustomDatasetSelector`, which already
encapsulates all the logic required to make the selector work with the
external APIs.
We kept separating the data fetching logic from how the selector works,
and all the data and events are passed into the UI component with
properties.

```ts
discover.customize(
  DISCOVER_LOG_EXPLORER_PROFILE_ID,
  ({ customizations, stateContainer }) => {

    customizations.set({
      id: 'search_bar',
      CustomDataViewPicker: createLazyCustomDatasetSelector({
        datasetsClient: datasetsService.client,
        stateContainer,
      }),
    });
    ...
```

## Data fetching state machines & custom hooks

To handle the data fetching of integrations and unmanaged data streams,
we created two different state machines to separately handle the related
action for each dataset, such as remote search, in-memory search, error
handling etc.

### Integration machine and useIntegrations

The integrations state machine handles automatic data fetching of the
resources and additionally provides transitions for loading more
integrations, searching integrations by HTTP request, searching locally
into integration streams, and all the related loading and error handling
states.

It is then interpreted inside the `useIntegrations` custom hook, which
exposes the fetched data and handlers for all the above-mentioned
actions.

<img width="1975" alt="Screenshot 2023-05-30 at 09 44 42"
src="6daeca9f-826d-4a0f-bd90-eb4826ed1bde">


### Datasets machine and useDatasets

Similar to the integrations state machine, but simplified since the data
streams search can only happen with HTTP requests and there is no
pagination that requires to handle the load of more entries.

It is interpreted inside the `useDatasets` custom hook, which also
exposes the fetched data and handlers for the available actions.

<img width="1692" alt="Screenshot 2023-05-30 at 09 45 11"
src="5f9690e2-4e8f-439e-9ffd-f3b34cf3eaf5">

## DatasetSelector

The `DatasetSelector` component contains all the logic that manages the
navigation and searches across the different panels that render
integrations, integrations' streams or unmanaged streams.
As the datasets come from different APIs or are performed in-memory, the
search work follow this logic:
- When listing the integrations list (first level of the
`EuiContextMenu`), the search is done with an HTTP request.
- When listing the data streams list for a specific integration (second
level of the `EuiContextMenu`), the search is done in-memory, filtering
and sorting directly in the client.
- When listing the unmanaged data streams list (second level of the
`EuiContextMenu`), the search is done again with an HTTP request.

To handle these possible user journeys correctly without side effects,
we created another state machine and exposed its actions with an
internal `useDatasetSelector` custom hook.

<img width="1978" alt="Screenshot 2023-05-30 at 09 46 04"
src="84aa4247-c65d-40de-9eb6-6117bee731f8">

## Next steps

This component will change quite a lot until we won't get to a final
design. As soon as a first solid mvp is defined for production, a
complete test for the component will be implemented, among with a more
generic functional test for the core customization features.

---------

Co-authored-by: Marco Antonio Ghiani <marcoantonio.ghiani@elastic.co>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Stratoula Kalafateli <efstratia.kalafateli@elastic.co>
Co-authored-by: Felix Stürmer <weltenwort@users.noreply.github.com>
2023-06-28 15:20:44 +02:00
Aleh Zasypkin
b15ea1ed7a
Upgrade semver dependency (7.3.27.5.3). (#160589)
## Summary
Upgrade `semver` dependency (`7.3.2` → `7.5.3`).

Change log: https://github.com/npm/node-semver/blob/main/CHANGELOG.md

There are no breaking or notable changes in the release, mostly
bugfixes.
2023-06-27 20:26:49 +02:00
Aleh Zasypkin
2d8e7ffdb1
Upgrade vinyl-fs dependency (3.0.34.0.0). (#160591) 2023-06-27 13:21:13 +02:00
renovate[bot]
b2c6c71a8d
Update dependency @elastic/charts to v58 (main) (#159082)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [@elastic/charts](https://togithub.com/elastic/elastic-charts) |
[`57.0.1` ->
`58.2.0`](https://renovatebot.com/diffs/npm/@elastic%2fcharts/57.0.1/58.2.0)
|
[![age](https://badges.renovateapi.com/packages/npm/@elastic%2fcharts/58.2.0/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/@elastic%2fcharts/58.2.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/@elastic%2fcharts/58.2.0/compatibility-slim/57.0.1)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/@elastic%2fcharts/58.2.0/confidence-slim/57.0.1)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>elastic/elastic-charts</summary>

#
[58.2.0](https://github.com/elastic/elastic-charts/compare/v58.1.0...v58.2.0)
(2023-06-23)


### Bug Fixes

* `Chart` component `children` type
([#2071](https://github.com/elastic/elastic-charts/issues/2071))
([525c782](525c782829))
* **deps:** update dependency @elastic/eui to v82
([#2074](https://github.com/elastic/elastic-charts/issues/2074))
([69a655f](69a655f0da))


### Features

* **flame:** expose search field text and search text change listener
([#2068](https://github.com/elastic/elastic-charts/issues/2068))
([c339947](c339947c39))
* support native chart title and description
([#2002](https://github.com/elastic/elastic-charts/issues/2002))
([341a990](341a990c5d))

#
[58.1.0](https://github.com/elastic/elastic-charts/compare/v58.0.0...v58.1.0)
(2023-06-08)


### Features

* **flame:** expose search control
([#2064](https://github.com/elastic/elastic-charts/issues/2064))
([011b56b](011b56b3f5))

#
[58.0.0](https://github.com/elastic/elastic-charts/compare/v57.0.1...v58.0.0)
(2023-06-06)


### Bug Fixes

* **axis:** reduce number of y axis ticks on linear scale
([#2005](https://github.com/elastic/elastic-charts/issues/2005))
([0ef828b](0ef828b535))
* **deps:** update dependency @elastic/eui to v81
([#2052](https://github.com/elastic/elastic-charts/issues/2052))
([4c55e01](4c55e0119e))


### BREAKING CHANGES

* **axis:** the default number of desired ticks in the Y-Axis was
changed from `10` to `5`

</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 [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://app.renovatebot.com/dashboard#github/elastic/kibana).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4xMTAuMCIsInVwZGF0ZWRJblZlciI6IjM1LjExMC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: nickofthyme <nicholas.partridge@elastic.co>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Nick Partridge <nick.ryan.partridge@gmail.com>
Co-authored-by: Marco Vettorello <marco.vettorello@elastic.co>
2023-06-26 11:41:49 -07:00
Shahzad
1ca19ce2c7
[Synthetics/Uptime] Better code separation (#160245)
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-06-26 17:47:04 +02:00
Yulia Čech
0a7ee08362
[Console] Use ES specification for autocomplete definitions (#159241)
## Summary
Fixes https://github.com/elastic/kibana/issues/159410 

This PR adds a new package `kbn-generate-console-definitions` that will
eventually replace the package `kbn-spec-to-console`. It also adds a new
command to use the script in the new package. The new command can be
used as following:
- `node scripts/generate_console_definitions.js --source
<PATH_TO_ES_SPECIFICATION_REPO>` where `PATH_TO_ES_SPECIFICATION_FOLDER`
is the absolute path to the root of the [ES specification
repo](https://github.com/elastic/elasticsearch-specification), for
example `/Users/yulia/elastic/elasticsearch-specification`. This command
will generate autocomplete definitions in the folder
`KIBANA_ROOT/src/plugins/console/server/lib/json/generated`.
- Optionally `--dest` parameter can be passed to generate definitions in
a different folder, relative to `KIBANA_ROOT`.

Basic script functionality was implemented in this PR: 

- [x] Create the folder if doesn't exist yet
- [x] Remove all files in the folder before generating definitions
- [x] Load the specification schema and parse each endpoint 
- [x] Create a file for each endpoint with the endpoint name, methods,
patterns and doc urls.

Functionality that will be added in follow up PRs:

- Url paramaters
- Request body parameters
- Availability property
- Unit test for script functions

### How to test
1. Checkout ES specification repo
2. Run the command with `node scripts/generate_console_definitions.js
--source <ES_SPECIFICATION_REPO> --emptyDest` where
`<ES_SPECIFICATION_REPO>` is the absolute path to the root of the ES
specification repo
3. Check the changes to the generated files in the folder
`/KIBANA_REPO/src/plugins/console/server/lib/spec_definitions/json/generated`
and make sure they have a correct endpoint name, patterns, methods and
doc links. We are not generating any url params, request body params or
availability property for now.
4. Change the constant in the file
`KIBANA_REPO/src/plugins/console/common/constants/autocomplete_definitions.ts`
to a non-existent folder. Run the script `node
scripts/generate_console_definitions.js --source
<ES_SPECIFICATION_REPO>` and check that the folder has been created
successfully
5. Re-run the command without `--emptyDest` flag targeting a folder that
already contain some files. Check that the script fails and doesn't
silently remove existing files
6. Run the help command `node scripts/generate_console_definitions.js
--help` and check if the help message makes sense

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Alison Goryachev <alisonmllr20@gmail.com>
2023-06-23 12:05:25 -07:00
Julia Rechkunova
7f0d57d9fd
[UnifiedFieldList] Convert from a plugin into a package (#158718)
- Closes https://github.com/elastic/kibana/issues/149336

## Summary

This PR converts `unifiedFieldList` plugin into a new
`@kbn/unified-field-list` package.

Had to also move some deps:
- from `uiActions` plugin to the existing `@kbn/ui-actions-browser`
package
- from `data` plugin to a new `@kbn/data-service` package

Please test that Field Stats from the package are still working on your
pages.

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-06-23 14:28:12 +02:00
renovate[bot]
1b1be4795d
Update dependency elastic-apm-node to ^3.47.0 (main) (#160223)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [elastic-apm-node](https://togithub.com/elastic/apm-agent-nodejs) |
[`^3.46.0` ->
`^3.47.0`](https://renovatebot.com/diffs/npm/elastic-apm-node/3.46.0/3.47.0)
|
[![age](https://badges.renovateapi.com/packages/npm/elastic-apm-node/3.47.0/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/elastic-apm-node/3.47.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/elastic-apm-node/3.47.0/compatibility-slim/3.46.0)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/elastic-apm-node/3.47.0/confidence-slim/3.46.0)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>elastic/apm-agent-nodejs</summary>

###
[`v3.47.0`](https://togithub.com/elastic/apm-agent-nodejs/releases/tag/v3.47.0)

[Compare
Source](https://togithub.com/elastic/apm-agent-nodejs/compare/v3.46.0...v3.47.0)

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

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

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

|af-south-1|arn:aws:lambda:af-south-1:267093732750:layer:elastic-apm-node-ver-3-47-0:1|

|ap-east-1|arn:aws:lambda:ap-east-1:267093732750:layer:elastic-apm-node-ver-3-47-0:1|

|ap-northeast-1|arn:aws:lambda:ap-northeast-1:267093732750:layer:elastic-apm-node-ver-3-47-0:1|

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

|ap-northeast-3|arn:aws:lambda:ap-northeast-3:267093732750:layer:elastic-apm-node-ver-3-47-0:1|

|ap-south-1|arn:aws:lambda:ap-south-1:267093732750:layer:elastic-apm-node-ver-3-47-0:1|

|ap-southeast-1|arn:aws:lambda:ap-southeast-1:267093732750:layer:elastic-apm-node-ver-3-47-0:1|

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

|ap-southeast-3|arn:aws:lambda:ap-southeast-3:267093732750:layer:elastic-apm-node-ver-3-47-0:1|

|ca-central-1|arn:aws:lambda:ca-central-1:267093732750:layer:elastic-apm-node-ver-3-47-0:1|

|eu-central-1|arn:aws:lambda:eu-central-1:267093732750:layer:elastic-apm-node-ver-3-47-0:1|

|eu-north-1|arn:aws:lambda:eu-north-1:267093732750:layer:elastic-apm-node-ver-3-47-0:1|

|eu-south-1|arn:aws:lambda:eu-south-1:267093732750:layer:elastic-apm-node-ver-3-47-0:1|

|eu-west-1|arn:aws:lambda:eu-west-1:267093732750:layer:elastic-apm-node-ver-3-47-0:1|

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

|eu-west-3|arn:aws:lambda:eu-west-3:267093732750:layer:elastic-apm-node-ver-3-47-0:1|

|me-south-1|arn:aws:lambda:me-south-1:267093732750:layer:elastic-apm-node-ver-3-47-0:1|

|sa-east-1|arn:aws:lambda:sa-east-1:267093732750:layer:elastic-apm-node-ver-3-47-0:1|

|us-east-1|arn:aws:lambda:us-east-1:267093732750:layer:elastic-apm-node-ver-3-47-0:1|

|us-east-2|arn:aws:lambda:us-east-2:267093732750:layer:elastic-apm-node-ver-3-47-0:1|

|us-west-1|arn:aws:lambda:us-west-1:267093732750:layer:elastic-apm-node-ver-3-47-0:1|

|us-west-2|arn:aws:lambda:us-west-2:267093732750:layer:elastic-apm-node-ver-3-47-0: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 [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/elastic/kibana).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4xMzEuMCIsInVwZGF0ZWRJblZlciI6IjM1LjEzMS4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: pgayvallet <pierre.gayvallet@elastic.co>
2023-06-23 10:15:38 +02:00
Jon
768bae7817
Upgrade core-js to 3.31.0 (#160181)
https://github.com/zloirock/core-js/blob/master/CHANGELOG.md
2023-06-21 16:51:54 -05:00
Bree Hall
e82fa7ff79
Upgrade EUI to v82.1.0 (#159744)
eui@81.3.0  eui@82.1.0

## [`82.1.0`](https://github.com/elastic/eui/tree/v82.1.0)

- Added ability for `EuiMarkdownEditor` plugins to disable toolbar
buttons ([#6840](https://github.com/elastic/eui/pull/6840))

## [`82.0.0`](https://github.com/elastic/eui/tree/v82.0.0)

**Bug fixes**

- Fixed `EuiPopover`'s types to omit `panelProps.hasBorder` and
`panelProps.hasShadow` - these props are not customizable on popovers
for visual consistency
([#6836](https://github.com/elastic/eui/pull/6836))

**Breaking changes**

- `EuiRange` & `EuiDualRange` no longer have a hard limit of 20
displayed ticks. The component now instead detects the width available,
and throws an error if each tick has less than 5 pixels of width. We
recommend testing your tick usage at smaller screens to ensure they
always display legibly to users.
([#6829](https://github.com/elastic/eui/pull/6829))
2023-06-14 17:53:50 -04:00
Davis McPhee
b78c798971
[Discover] Implement Discover customization framework (#158603)
## Summary

This PR includes the initial implementation of the Discover
customization framework based on the `2023-04 Discover Customizations`
RFC.


![customizations](db8202d1-666d-44da-84b0-dce4fd1118e5)

Notes:
- I've included two initial extension points in this PR: `top_nav` and
`search_bar`. To my knowledge, these are the ones o11y want to start
with, but we don't yet have product alignment on these decisions. ~~I've
left them in for now for testing purposes, but I'll need to update this
PR before merging to either add tests for these extensions points if we
decide to include them, or remove them if we decide not to include
them.~~ Tests have now been added for these customizations.
- I'm planning to open a separate PR with documentation about the
framework once this is merged, but merging this first will unblock o11y.
- In order to enable customization profiles, Discover has been updated
to user locators for all of its navigation, which will allow the current
profile to be maintained when navigating between routes. This is because
the current customization profile is stored in the URL path as
`/p/{profile_name}/{discover_route}`.

Resolves #158625.

### 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
- [x] Any UI touched in this PR is usable by keyboard only (learn more
about [keyboard accessibility](https://webaim.org/techniques/keyboard/))
- [ ] ~Any UI touched in this PR does not create any new axe failures
(run axe in browser:
[FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/),
[Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US))~
- [ ] ~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 renders correctly on smaller devices using a responsive
layout. (You can test this [in your
browser](https://www.browserstack.com/guide/responsive-testing-on-local-server))~
- [x] This was checked for [cross-browser
compatibility](https://www.elastic.co/support/matrix#matrix_browsers)

### For maintainers

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

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-06-14 15:09:13 -03:00
Jon
02fab4dece
Update chromedriver to 114.0.2 (#159624) 2023-06-14 09:21:02 -05:00
Kevin Delemme
685b0ea636
chore(slo): Move slo schema into x-pack (#159594) 2023-06-14 08:53:57 -04:00
Patryk Kopyciński
09577fa0af
Add react-router-dom-v5-compat (#159173)
## Summary

Prep work for bumping react-router to v6
Following https://github.com/remix-run/react-router/discussions/8753

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-06-14 05:13:15 -07:00
Drew Tate
6553ebbdd5
[Lens][Visualizations] library annotation groups listing page (#157988) 2023-06-13 20:09:01 -05:00
Sébastien Loix
fb41ca56f9
[SharedUxChromeNavigation] Use deeplink id instead of href (#159125) 2023-06-13 10:10:10 -07:00
renovate[bot]
beb8713960
Update react-query to ^4.29.12 (main) (#152162)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [@tanstack/react-query](https://tanstack.com/query)
([source](https://togithub.com/tanstack/query)) | [`^4.24.6` ->
`^4.29.12`](https://renovatebot.com/diffs/npm/@tanstack%2freact-query/4.24.9/4.29.12)
|
[![age](https://badges.renovateapi.com/packages/npm/@tanstack%2freact-query/4.29.12/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/@tanstack%2freact-query/4.29.12/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/@tanstack%2freact-query/4.29.12/compatibility-slim/4.24.9)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/@tanstack%2freact-query/4.29.12/confidence-slim/4.24.9)](https://docs.renovatebot.com/merge-confidence/)
|
| [@tanstack/react-query-devtools](https://tanstack.com/query)
([source](https://togithub.com/tanstack/query)) | [`^4.24.6` ->
`^4.29.12`](https://renovatebot.com/diffs/npm/@tanstack%2freact-query-devtools/4.24.9/4.29.12)
|
[![age](https://badges.renovateapi.com/packages/npm/@tanstack%2freact-query-devtools/4.29.12/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/@tanstack%2freact-query-devtools/4.29.12/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/@tanstack%2freact-query-devtools/4.29.12/compatibility-slim/4.24.9)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/@tanstack%2freact-query-devtools/4.29.12/confidence-slim/4.24.9)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>tanstack/query</summary>

###
[`v4.29.12`](https://togithub.com/TanStack/query/releases/tag/v4.29.12)

[Compare
Source](https://togithub.com/tanstack/query/compare/v4.29.11...v4.29.12)

Version 4.29.12 - 5/29/2023, 11:31 AM

#### Changes

##### Fix

- react-query: fix missed updates between creation and subscription
([#&#8203;5474](https://togithub.com/tanstack/query/issues/5474))
([`c290906`](c290906d)) by
Dominik Dorfmeister

#### Packages

-
[@&#8203;tanstack/react-query-persist-client](https://togithub.com/tanstack/react-query-persist-client)[@&#8203;4](https://togithub.com/4).29.12
-
[@&#8203;tanstack/react-query](https://togithub.com/tanstack/react-query)[@&#8203;4](https://togithub.com/4).29.12
-
[@&#8203;tanstack/react-query-devtools](https://togithub.com/tanstack/react-query-devtools)[@&#8203;4](https://togithub.com/4).29.12

###
[`v4.29.11`](https://togithub.com/TanStack/query/releases/tag/v4.29.11)

[Compare
Source](https://togithub.com/tanstack/query/compare/v4.29.10...v4.29.11)

Version 4.29.11 - 5/27/2023, 8:51 AM

#### Changes

##### Refactor

- query-core: replace `indexOf` with `includes`
([#&#8203;5431](https://togithub.com/tanstack/query/issues/5431))
([`5188ae3`](5188ae3f)) by
[@&#8203;Juneezee](https://togithub.com/Juneezee)

#### Packages

-
[@&#8203;tanstack/query-core](https://togithub.com/tanstack/query-core)[@&#8203;4](https://togithub.com/4).29.11
-
[@&#8203;tanstack/query-persist-client-core](https://togithub.com/tanstack/query-persist-client-core)[@&#8203;4](https://togithub.com/4).29.11
-
[@&#8203;tanstack/query-async-storage-persister](https://togithub.com/tanstack/query-async-storage-persister)[@&#8203;4](https://togithub.com/4).29.11
-
[@&#8203;tanstack/query-broadcast-client-experimental](https://togithub.com/tanstack/query-broadcast-client-experimental)[@&#8203;4](https://togithub.com/4).29.11
-
[@&#8203;tanstack/query-sync-storage-persister](https://togithub.com/tanstack/query-sync-storage-persister)[@&#8203;4](https://togithub.com/4).29.11
-
[@&#8203;tanstack/react-query](https://togithub.com/tanstack/react-query)[@&#8203;4](https://togithub.com/4).29.11
-
[@&#8203;tanstack/react-query-devtools](https://togithub.com/tanstack/react-query-devtools)[@&#8203;4](https://togithub.com/4).29.11
-
[@&#8203;tanstack/react-query-persist-client](https://togithub.com/tanstack/react-query-persist-client)[@&#8203;4](https://togithub.com/4).29.11
-
[@&#8203;tanstack/solid-query](https://togithub.com/tanstack/solid-query)[@&#8203;4](https://togithub.com/4).29.11
-
[@&#8203;tanstack/svelte-query](https://togithub.com/tanstack/svelte-query)[@&#8203;4](https://togithub.com/4).29.11
-
[@&#8203;tanstack/vue-query](https://togithub.com/tanstack/vue-query)[@&#8203;4](https://togithub.com/4).29.11

###
[`v4.29.10`](https://togithub.com/TanStack/query/releases/tag/v4.29.10)

[Compare
Source](https://togithub.com/tanstack/query/compare/v4.29.7...v4.29.10)

Version 4.29.10 - 5/27/2023, 8:27 AM

#### Changes

##### Refactor

- query-core: optimization window.removeEventListener
([#&#8203;5475](https://togithub.com/tanstack/query/issues/5475))
([`00319a1`](00319a14)) by
[@&#8203;li-jia-nan](https://togithub.com/li-jia-nan)

##### Chore

- Update to pnpm v8
([#&#8203;5476](https://togithub.com/tanstack/query/issues/5476))
([`6c3abf7`](6c3abf7c)) by
Lachlan Collins

##### Docs

- Update useQuery.md
([#&#8203;5454](https://togithub.com/tanstack/query/issues/5454))
([`dd5b64a`](dd5b64a9)) by
Matthew Day

#### Packages

-
[@&#8203;tanstack/query-core](https://togithub.com/tanstack/query-core)[@&#8203;4](https://togithub.com/4).29.10
-
[@&#8203;tanstack/query-persist-client-core](https://togithub.com/tanstack/query-persist-client-core)[@&#8203;4](https://togithub.com/4).29.10
-
[@&#8203;tanstack/query-async-storage-persister](https://togithub.com/tanstack/query-async-storage-persister)[@&#8203;4](https://togithub.com/4).29.10
-
[@&#8203;tanstack/query-broadcast-client-experimental](https://togithub.com/tanstack/query-broadcast-client-experimental)[@&#8203;4](https://togithub.com/4).29.10
-
[@&#8203;tanstack/query-sync-storage-persister](https://togithub.com/tanstack/query-sync-storage-persister)[@&#8203;4](https://togithub.com/4).29.10
-
[@&#8203;tanstack/react-query](https://togithub.com/tanstack/react-query)[@&#8203;4](https://togithub.com/4).29.10
-
[@&#8203;tanstack/react-query-devtools](https://togithub.com/tanstack/react-query-devtools)[@&#8203;4](https://togithub.com/4).29.10
-
[@&#8203;tanstack/react-query-persist-client](https://togithub.com/tanstack/react-query-persist-client)[@&#8203;4](https://togithub.com/4).29.10
-
[@&#8203;tanstack/solid-query](https://togithub.com/tanstack/solid-query)[@&#8203;4](https://togithub.com/4).29.10
-
[@&#8203;tanstack/svelte-query](https://togithub.com/tanstack/svelte-query)[@&#8203;4](https://togithub.com/4).29.10
-
[@&#8203;tanstack/vue-query](https://togithub.com/tanstack/vue-query)[@&#8203;4](https://togithub.com/4).29.10

###
[`v4.29.7`](https://togithub.com/TanStack/query/releases/tag/v4.29.7)

[Compare
Source](https://togithub.com/tanstack/query/compare/v4.29.5...v4.29.7)

Version 4.29.7 - 5/14/2023, 2:09 PM

##### Changes

##### Fix

- perf: optimized perf of listeners removal
([#&#8203;5402](https://togithub.com/tanstack/query/issues/5402))
([`3816c9d`](3816c9d4)) by
[@&#8203;Andarist](https://togithub.com/Andarist)

##### Chore

- Validate "exports" field in package.json
([#&#8203;5350](https://togithub.com/tanstack/query/issues/5350))
([`f1ac845`](f1ac8457)) by
Lachlan Collins
- nx 16 migration
([#&#8203;5354](https://togithub.com/tanstack/query/issues/5354))
([`5e43e00`](5e43e00e)) by
[@&#8203;ZackDeRose](https://togithub.com/ZackDeRose)

##### Docs

- deprecate callbacks on `useQuery`
([#&#8203;5407](https://togithub.com/tanstack/query/issues/5407))
([`5608a04`](5608a04a)) by
Minh Nguyen
- Removed "Experimental" Text for the next.js app dir
([#&#8203;5381](https://togithub.com/tanstack/query/issues/5381))
([`8d13ad8`](8d13ad85)) by
hamzah syed
- batching docs
([#&#8203;5385](https://togithub.com/tanstack/query/issues/5385))
([`235f3c6`](235f3c67)) by
Yornaath
- fix the react example for infinite queries
([#&#8203;5361](https://togithub.com/tanstack/query/issues/5361))
([`53813e4`](53813e45)) by
[@&#8203;seriousManual](https://togithub.com/seriousManual)
- deprecate callbacks on useQuery
([#&#8203;5353](https://togithub.com/tanstack/query/issues/5353))
([`802a288`](802a2889)) by
Dominik Dorfmeister
- a11y: adding titles to the video iframes
([#&#8203;5346](https://togithub.com/tanstack/query/issues/5346))
([`2552c4b`](2552c4bb)) by
Nicholas Griffin
- svelte-query: Use API wrapper to simplify SSR logic
([#&#8203;5322](https://togithub.com/tanstack/query/issues/5322))
([`7fd50a7`](7fd50a7c)) by
Lachlan Collins

##### Packages

-
[@&#8203;tanstack/query-core](https://togithub.com/tanstack/query-core)[@&#8203;4](https://togithub.com/4).29.7
-
[@&#8203;tanstack/react-query](https://togithub.com/tanstack/react-query)[@&#8203;4](https://togithub.com/4).29.7
-
[@&#8203;tanstack/solid-query](https://togithub.com/tanstack/solid-query)[@&#8203;4](https://togithub.com/4).29.7
-
[@&#8203;tanstack/svelte-query](https://togithub.com/tanstack/svelte-query)[@&#8203;4](https://togithub.com/4).29.7
-
[@&#8203;tanstack/query-persist-client-core](https://togithub.com/tanstack/query-persist-client-core)[@&#8203;4](https://togithub.com/4).29.7
-
[@&#8203;tanstack/query-async-storage-persister](https://togithub.com/tanstack/query-async-storage-persister)[@&#8203;4](https://togithub.com/4).29.7
-
[@&#8203;tanstack/query-broadcast-client-experimental](https://togithub.com/tanstack/query-broadcast-client-experimental)[@&#8203;4](https://togithub.com/4).29.7
-
[@&#8203;tanstack/query-sync-storage-persister](https://togithub.com/tanstack/query-sync-storage-persister)[@&#8203;4](https://togithub.com/4).29.7
-
[@&#8203;tanstack/react-query-devtools](https://togithub.com/tanstack/react-query-devtools)[@&#8203;4](https://togithub.com/4).29.7
-
[@&#8203;tanstack/react-query-persist-client](https://togithub.com/tanstack/react-query-persist-client)[@&#8203;4](https://togithub.com/4).29.7
-
[@&#8203;tanstack/vue-query](https://togithub.com/tanstack/vue-query)[@&#8203;4](https://togithub.com/4).29.7

###
[`v4.29.5`](https://togithub.com/TanStack/query/releases/tag/v4.29.5)

[Compare
Source](https://togithub.com/tanstack/query/compare/v4.29.3...v4.29.5)

Version 4.29.5 - 4/24/2023, 3:19 PM

##### Changes

##### Refactor

- enhance error undefined message
([#&#8203;5253](https://togithub.com/tanstack/query/issues/5253))
([`dc2af81`](dc2af816)) by
Dylan

##### Chore

- build: Includes declaration maps
([#&#8203;5231](https://togithub.com/tanstack/query/issues/5231))
([`7cd2d19`](7cd2d192)) by
Eric Kwoka
- svelte-query: Update
[@&#8203;sveltejs/package](https://togithub.com/sveltejs/package) to v2
([#&#8203;5242](https://togithub.com/tanstack/query/issues/5242))
([`195772e`](195772e8)) by
Lachlan Collins

##### Packages

-
[@&#8203;tanstack/query-core](https://togithub.com/tanstack/query-core)[@&#8203;4](https://togithub.com/4).29.5
-
[@&#8203;tanstack/query-persist-client-core](https://togithub.com/tanstack/query-persist-client-core)[@&#8203;4](https://togithub.com/4).29.5
-
[@&#8203;tanstack/query-async-storage-persister](https://togithub.com/tanstack/query-async-storage-persister)[@&#8203;4](https://togithub.com/4).29.5
-
[@&#8203;tanstack/query-broadcast-client-experimental](https://togithub.com/tanstack/query-broadcast-client-experimental)[@&#8203;4](https://togithub.com/4).29.5
-
[@&#8203;tanstack/query-sync-storage-persister](https://togithub.com/tanstack/query-sync-storage-persister)[@&#8203;4](https://togithub.com/4).29.5
-
[@&#8203;tanstack/react-query](https://togithub.com/tanstack/react-query)[@&#8203;4](https://togithub.com/4).29.5
-
[@&#8203;tanstack/react-query-devtools](https://togithub.com/tanstack/react-query-devtools)[@&#8203;4](https://togithub.com/4).29.5
-
[@&#8203;tanstack/react-query-persist-client](https://togithub.com/tanstack/react-query-persist-client)[@&#8203;4](https://togithub.com/4).29.5
-
[@&#8203;tanstack/solid-query](https://togithub.com/tanstack/solid-query)[@&#8203;4](https://togithub.com/4).29.5
-
[@&#8203;tanstack/svelte-query](https://togithub.com/tanstack/svelte-query)[@&#8203;4](https://togithub.com/4).29.5
-
[@&#8203;tanstack/vue-query](https://togithub.com/tanstack/vue-query)[@&#8203;4](https://togithub.com/4).29.5

###
[`v4.29.3`](https://togithub.com/TanStack/query/releases/tag/v4.29.3)

[Compare
Source](https://togithub.com/tanstack/query/compare/v4.29.2...v4.29.3)

Version 4.29.3 - 4/15/2023, 6:39 PM

#### Changes

##### Fix

- useQueries: check error boundary before retry to prevent infinite
refetch
([#&#8203;5271](https://togithub.com/tanstack/query/issues/5271))
([`98be9ec`](98be9ec4)) by
Matthew Hancock

#### Packages

-
[@&#8203;tanstack/react-query](https://togithub.com/tanstack/react-query)[@&#8203;4](https://togithub.com/4).29.3
-
[@&#8203;tanstack/react-query-devtools](https://togithub.com/tanstack/react-query-devtools)[@&#8203;4](https://togithub.com/4).29.3
-
[@&#8203;tanstack/react-query-persist-client](https://togithub.com/tanstack/react-query-persist-client)[@&#8203;4](https://togithub.com/4).29.3

###
[`v4.29.2`](https://togithub.com/TanStack/query/releases/tag/v4.29.2)

[Compare
Source](https://togithub.com/tanstack/query/compare/v4.29.1...v4.29.2)

Version 4.29.2 - 4/15/2023, 9:10 AM

#### Changes

##### Perf

- useQueries: optimize excessive invocations of getQueries in useQueries
([#&#8203;5255](https://togithub.com/tanstack/query/issues/5255))
([`e66a285`](e66a2850)) by
Ahmed Hamed

##### Chore

- removing docs from default inputs
([#&#8203;5212](https://togithub.com/tanstack/query/issues/5212))
([`5335294`](5335294c)) by
[@&#8203;ZackDeRose](https://togithub.com/ZackDeRose)

##### Docs

- svelte-query: Fix SSR example and update svelte templates
([#&#8203;5243](https://togithub.com/tanstack/query/issues/5243))
([`5be2530`](5be25301)) by
Lachlan Collins

#### Packages

-
[@&#8203;tanstack/react-query](https://togithub.com/tanstack/react-query)[@&#8203;4](https://togithub.com/4).29.2
-
[@&#8203;tanstack/react-query-devtools](https://togithub.com/tanstack/react-query-devtools)[@&#8203;4](https://togithub.com/4).29.2
-
[@&#8203;tanstack/react-query-persist-client](https://togithub.com/tanstack/react-query-persist-client)[@&#8203;4](https://togithub.com/4).29.2

###
[`v4.29.1`](https://togithub.com/TanStack/query/releases/tag/v4.29.1)

[Compare
Source](https://togithub.com/tanstack/query/compare/v4.28.0...v4.29.1)

Version 4.29.1 - 4/10/2023, 9:44 AM

##### Changes

##### Perf

- useQueries: optimize findMatchingObservers fn in queriesObserver for
large datasets
([#&#8203;5247](https://togithub.com/tanstack/query/issues/5247))
([`a317633`](a317633b)) by
Ahmed Hamed

##### Packages

-
[@&#8203;tanstack/query-core](https://togithub.com/tanstack/query-core)[@&#8203;4](https://togithub.com/4).29.1
-
[@&#8203;tanstack/query-persist-client-core](https://togithub.com/tanstack/query-persist-client-core)[@&#8203;4](https://togithub.com/4).29.1
-
[@&#8203;tanstack/query-async-storage-persister](https://togithub.com/tanstack/query-async-storage-persister)[@&#8203;4](https://togithub.com/4).29.1
-
[@&#8203;tanstack/query-broadcast-client-experimental](https://togithub.com/tanstack/query-broadcast-client-experimental)[@&#8203;4](https://togithub.com/4).29.1
-
[@&#8203;tanstack/query-sync-storage-persister](https://togithub.com/tanstack/query-sync-storage-persister)[@&#8203;4](https://togithub.com/4).29.1
-
[@&#8203;tanstack/react-query](https://togithub.com/tanstack/react-query)[@&#8203;4](https://togithub.com/4).29.1
-
[@&#8203;tanstack/react-query-devtools](https://togithub.com/tanstack/react-query-devtools)[@&#8203;4](https://togithub.com/4).29.1
-
[@&#8203;tanstack/react-query-persist-client](https://togithub.com/tanstack/react-query-persist-client)[@&#8203;4](https://togithub.com/4).29.1
-
[@&#8203;tanstack/solid-query](https://togithub.com/tanstack/solid-query)[@&#8203;4](https://togithub.com/4).29.1
-
[@&#8203;tanstack/svelte-query](https://togithub.com/tanstack/svelte-query)[@&#8203;4](https://togithub.com/4).29.1
-
[@&#8203;tanstack/vue-query](https://togithub.com/tanstack/vue-query)[@&#8203;4](https://togithub.com/4).29.1

###
[`v4.28.0`](https://togithub.com/TanStack/query/releases/tag/v4.28.0)

[Compare
Source](https://togithub.com/tanstack/query/compare/v4.27.0...v4.28.0)

Version 4.28.0 - 3/20/2023, 8:33 AM

#### Changes

##### Feat

- react-query: preserve "use client" directives
([#&#8203;5161](https://togithub.com/tanstack/query/issues/5161))
([`017867e`](017867ef)) by
Fredrik Höglund

#### Packages

-
[@&#8203;tanstack/react-query](https://togithub.com/tanstack/react-query)[@&#8203;4](https://togithub.com/4).28.0
-
[@&#8203;tanstack/react-query-devtools](https://togithub.com/tanstack/react-query-devtools)[@&#8203;4](https://togithub.com/4).28.0
-
[@&#8203;tanstack/react-query-persist-client](https://togithub.com/tanstack/react-query-persist-client)[@&#8203;4](https://togithub.com/4).28.0

###
[`v4.27.0`](https://togithub.com/TanStack/query/releases/tag/v4.27.0)

[Compare
Source](https://togithub.com/tanstack/query/compare/v4.26.1...v4.27.0)

Version 4.27.0 - 3/17/2023, 3:43 PM

#### Changes

##### Feat

- react-query-devtools: enable setting loading/error via devtools
([#&#8203;4352](https://togithub.com/tanstack/query/issues/4352))
([`b7089d1`](b7089d10)) by
Paul Sachs

##### Fix

- eslint-plugin: ignore internal properties
([#&#8203;5119](https://togithub.com/tanstack/query/issues/5119))
([`33338ad`](33338ad1)) by
Eliya Cohen

##### Chore

- fix test:format task giving false positives
([#&#8203;5147](https://togithub.com/tanstack/query/issues/5147))
([`e25259d`](e25259de)) by
[@&#8203;ZackDeRose](https://togithub.com/ZackDeRose)
- fix publish script
([`62a7c38`](62a7c38e)) by
Dominik Dorfmeister
- Local Task Caching for all Revelant tasks
([#&#8203;5134](https://togithub.com/tanstack/query/issues/5134))
([`8e13afa`](8e13afa2)) by
[@&#8203;ZackDeRose](https://togithub.com/ZackDeRose)
- downgrade chalk to v4 because v5 is ESM only
([#&#8203;5130](https://togithub.com/tanstack/query/issues/5130))
([`ed7d9f8`](ed7d9f82)) by
Dominik Dorfmeister
- turning off Nx daemon in CI
([#&#8203;5128](https://togithub.com/tanstack/query/issues/5128))
([`fcb4170`](fcb4170e)) by
[@&#8203;ZackDeRose](https://togithub.com/ZackDeRose)
- fix missing dependencies
([#&#8203;5127](https://togithub.com/tanstack/query/issues/5127))
([`6fc51dd`](6fc51ddf)) by
Dominik Dorfmeister
- `test:lib` task-caching w/ Nx
([#&#8203;5116](https://togithub.com/tanstack/query/issues/5116))
([`19a8e98`](19a8e98b)) by
Zachary DeRose

##### Docs

- queries: rename `success`
([#&#8203;5110](https://togithub.com/tanstack/query/issues/5110))
([`b8b0562`](b8b05623)) by
Leon Fong
- add adapter dropdown to issue template
([#&#8203;5108](https://togithub.com/tanstack/query/issues/5108))
([`b974268`](b974268b)) by
Damian Osipiuk

#### Packages

-
[@&#8203;tanstack/eslint-plugin-query](https://togithub.com/tanstack/eslint-plugin-query)[@&#8203;4](https://togithub.com/4).27.0
-
[@&#8203;tanstack/query-core](https://togithub.com/tanstack/query-core)[@&#8203;4](https://togithub.com/4).27.0
-
[@&#8203;tanstack/react-query-devtools](https://togithub.com/tanstack/react-query-devtools)[@&#8203;4](https://togithub.com/4).27.0
-
[@&#8203;tanstack/query-persist-client-core](https://togithub.com/tanstack/query-persist-client-core)[@&#8203;4](https://togithub.com/4).27.0
-
[@&#8203;tanstack/query-async-storage-persister](https://togithub.com/tanstack/query-async-storage-persister)[@&#8203;4](https://togithub.com/4).27.0
-
[@&#8203;tanstack/query-broadcast-client-experimental](https://togithub.com/tanstack/query-broadcast-client-experimental)[@&#8203;4](https://togithub.com/4).27.0
-
[@&#8203;tanstack/query-sync-storage-persister](https://togithub.com/tanstack/query-sync-storage-persister)[@&#8203;4](https://togithub.com/4).27.0
-
[@&#8203;tanstack/react-query](https://togithub.com/tanstack/react-query)[@&#8203;4](https://togithub.com/4).27.0
-
[@&#8203;tanstack/react-query-persist-client](https://togithub.com/tanstack/react-query-persist-client)[@&#8203;4](https://togithub.com/4).27.0
-
[@&#8203;tanstack/solid-query](https://togithub.com/tanstack/solid-query)[@&#8203;4](https://togithub.com/4).27.0
-
[@&#8203;tanstack/svelte-query](https://togithub.com/tanstack/svelte-query)[@&#8203;4](https://togithub.com/4).27.0
-
[@&#8203;tanstack/vue-query](https://togithub.com/tanstack/vue-query)[@&#8203;4](https://togithub.com/4).27.0

###
[`v4.26.1`](https://togithub.com/TanStack/query/releases/tag/v4.26.1)

[Compare
Source](https://togithub.com/tanstack/query/compare/v4.26.0...v4.26.1)

Version 4.26.1 - 3/6/2023, 3:00 PM

#### Changes

##### Fix

- core: make sure mutations get updated options
([#&#8203;5085](https://togithub.com/tanstack/query/issues/5085))
([`aac9488`](aac94889)) by
Dominik Dorfmeister

#### Packages

-
[@&#8203;tanstack/query-core](https://togithub.com/tanstack/query-core)[@&#8203;4](https://togithub.com/4).26.1
-
[@&#8203;tanstack/query-persist-client-core](https://togithub.com/tanstack/query-persist-client-core)[@&#8203;4](https://togithub.com/4).26.1
-
[@&#8203;tanstack/query-async-storage-persister](https://togithub.com/tanstack/query-async-storage-persister)[@&#8203;4](https://togithub.com/4).26.1
-
[@&#8203;tanstack/query-broadcast-client-experimental](https://togithub.com/tanstack/query-broadcast-client-experimental)[@&#8203;4](https://togithub.com/4).26.1
-
[@&#8203;tanstack/query-sync-storage-persister](https://togithub.com/tanstack/query-sync-storage-persister)[@&#8203;4](https://togithub.com/4).26.1
-
[@&#8203;tanstack/react-query](https://togithub.com/tanstack/react-query)[@&#8203;4](https://togithub.com/4).26.1
-
[@&#8203;tanstack/react-query-devtools](https://togithub.com/tanstack/react-query-devtools)[@&#8203;4](https://togithub.com/4).26.1
-
[@&#8203;tanstack/react-query-persist-client](https://togithub.com/tanstack/react-query-persist-client)[@&#8203;4](https://togithub.com/4).26.1
-
[@&#8203;tanstack/solid-query](https://togithub.com/tanstack/solid-query)[@&#8203;4](https://togithub.com/4).26.1
-
[@&#8203;tanstack/svelte-query](https://togithub.com/tanstack/svelte-query)[@&#8203;4](https://togithub.com/4).26.1
-
[@&#8203;tanstack/vue-query](https://togithub.com/tanstack/vue-query)[@&#8203;4](https://togithub.com/4).26.1

###
[`v4.26.0`](https://togithub.com/TanStack/query/releases/tag/v4.26.0)

[Compare
Source](https://togithub.com/tanstack/query/compare/v4.25.0...v4.26.0)

Version 4.26.0 - 3/5/2023, 7:16 AM

#### Changes

##### Feat

- query-core: Add global onSettled callbacks for QueryCache and
MutationCache
([#&#8203;5075](https://togithub.com/tanstack/query/issues/5075))
([`8d23513`](8d235134)) by
Dominik Dorfmeister

#### Packages

-
[@&#8203;tanstack/query-core](https://togithub.com/tanstack/query-core)[@&#8203;4](https://togithub.com/4).26.0
-
[@&#8203;tanstack/query-persist-client-core](https://togithub.com/tanstack/query-persist-client-core)[@&#8203;4](https://togithub.com/4).26.0
-
[@&#8203;tanstack/query-async-storage-persister](https://togithub.com/tanstack/query-async-storage-persister)[@&#8203;4](https://togithub.com/4).26.0
-
[@&#8203;tanstack/query-broadcast-client-experimental](https://togithub.com/tanstack/query-broadcast-client-experimental)[@&#8203;4](https://togithub.com/4).26.0
-
[@&#8203;tanstack/query-sync-storage-persister](https://togithub.com/tanstack/query-sync-storage-persister)[@&#8203;4](https://togithub.com/4).26.0
-
[@&#8203;tanstack/react-query](https://togithub.com/tanstack/react-query)[@&#8203;4](https://togithub.com/4).26.0
-
[@&#8203;tanstack/react-query-devtools](https://togithub.com/tanstack/react-query-devtools)[@&#8203;4](https://togithub.com/4).26.0
-
[@&#8203;tanstack/react-query-persist-client](https://togithub.com/tanstack/react-query-persist-client)[@&#8203;4](https://togithub.com/4).26.0
-
[@&#8203;tanstack/solid-query](https://togithub.com/tanstack/solid-query)[@&#8203;4](https://togithub.com/4).26.0
-
[@&#8203;tanstack/svelte-query](https://togithub.com/tanstack/svelte-query)[@&#8203;4](https://togithub.com/4).26.0
-
[@&#8203;tanstack/vue-query](https://togithub.com/tanstack/vue-query)[@&#8203;4](https://togithub.com/4).26.0

###
[`v4.25.0`](https://togithub.com/TanStack/query/releases/tag/v4.25.0)

[Compare
Source](https://togithub.com/tanstack/query/compare/v4.24.10...v4.25.0)

Version 4.25.0 - 3/5/2023, 6:32 AM

#### Changes

##### Feat

- core: re-export matchQuery from utils
([#&#8203;5070](https://togithub.com/tanstack/query/issues/5070))
([`1c2c132`](1c2c1325)) by
remolueoend

#### Packages

-
[@&#8203;tanstack/query-core](https://togithub.com/tanstack/query-core)[@&#8203;4](https://togithub.com/4).25.0
-
[@&#8203;tanstack/query-persist-client-core](https://togithub.com/tanstack/query-persist-client-core)[@&#8203;4](https://togithub.com/4).25.0
-
[@&#8203;tanstack/query-async-storage-persister](https://togithub.com/tanstack/query-async-storage-persister)[@&#8203;4](https://togithub.com/4).25.0
-
[@&#8203;tanstack/query-broadcast-client-experimental](https://togithub.com/tanstack/query-broadcast-client-experimental)[@&#8203;4](https://togithub.com/4).25.0
-
[@&#8203;tanstack/query-sync-storage-persister](https://togithub.com/tanstack/query-sync-storage-persister)[@&#8203;4](https://togithub.com/4).25.0
-
[@&#8203;tanstack/react-query](https://togithub.com/tanstack/react-query)[@&#8203;4](https://togithub.com/4).25.0
-
[@&#8203;tanstack/react-query-devtools](https://togithub.com/tanstack/react-query-devtools)[@&#8203;4](https://togithub.com/4).25.0
-
[@&#8203;tanstack/react-query-persist-client](https://togithub.com/tanstack/react-query-persist-client)[@&#8203;4](https://togithub.com/4).25.0
-
[@&#8203;tanstack/solid-query](https://togithub.com/tanstack/solid-query)[@&#8203;4](https://togithub.com/4).25.0
-
[@&#8203;tanstack/svelte-query](https://togithub.com/tanstack/svelte-query)[@&#8203;4](https://togithub.com/4).25.0
-
[@&#8203;tanstack/vue-query](https://togithub.com/tanstack/vue-query)[@&#8203;4](https://togithub.com/4).25.0

###
[`v4.24.10`](https://togithub.com/TanStack/query/releases/tag/v4.24.10)

[Compare
Source](https://togithub.com/tanstack/query/compare/v4.24.9...v4.24.10)

Version 4.24.10 - 2/21/2023, 11:53 PM

#### Changes

##### Fix

- vue-query: prevent memory leak in server environment
([#&#8203;5015](https://togithub.com/tanstack/query/issues/5015))
([`5b59446`](5b59446b)) by
Damian Osipiuk

##### Docs

- Update overview.md
([#&#8203;5011](https://togithub.com/tanstack/query/issues/5011))
([`734f1b3`](734f1b39)) by
Johan Magnusson
- fix invalid React Router comparison link
([#&#8203;5000](https://togithub.com/tanstack/query/issues/5000))
([`e5a7cf8`](e5a7cf80)) by
[@&#8203;Juneezee](https://togithub.com/Juneezee)

##### Other

- Revert "docs(react): Fix SSR custom framework guide - should be
deconstructed
([#&#8203;4998](https://togithub.com/tanstack/query/issues/4998))"
([#&#8203;5002](https://togithub.com/tanstack/query/issues/5002))
([`f819674`](f819674a)) by
[@&#8203;sneridagh](https://togithub.com/sneridagh)
- Set `fetchStatus` to `idle` when dehydrating
([#&#8203;4974](https://togithub.com/tanstack/query/issues/4974))
([`8e7a316`](8e7a316c)) by
[@&#8203;prateek3255](https://togithub.com/prateek3255)

#### Packages

-
[@&#8203;tanstack/query-core](https://togithub.com/tanstack/query-core)[@&#8203;4](https://togithub.com/4).24.10
-
[@&#8203;tanstack/vue-query](https://togithub.com/tanstack/vue-query)[@&#8203;4](https://togithub.com/4).24.10
-
[@&#8203;tanstack/query-persist-client-core](https://togithub.com/tanstack/query-persist-client-core)[@&#8203;4](https://togithub.com/4).24.10
-
[@&#8203;tanstack/query-async-storage-persister](https://togithub.com/tanstack/query-async-storage-persister)[@&#8203;4](https://togithub.com/4).24.10
-
[@&#8203;tanstack/query-broadcast-client-experimental](https://togithub.com/tanstack/query-broadcast-client-experimental)[@&#8203;4](https://togithub.com/4).24.10
-
[@&#8203;tanstack/query-sync-storage-persister](https://togithub.com/tanstack/query-sync-storage-persister)[@&#8203;4](https://togithub.com/4).24.10
-
[@&#8203;tanstack/react-query](https://togithub.com/tanstack/react-query)[@&#8203;4](https://togithub.com/4).24.10
-
[@&#8203;tanstack/react-query-devtools](https://togithub.com/tanstack/react-query-devtools)[@&#8203;4](https://togithub.com/4).24.10
-
[@&#8203;tanstack/react-query-persist-client](https://togithub.com/tanstack/react-query-persist-client)[@&#8203;4](https://togithub.com/4).24.10
-
[@&#8203;tanstack/solid-query](https://togithub.com/tanstack/solid-query)[@&#8203;4](https://togithub.com/4).24.10
-
[@&#8203;tanstack/svelte-query](https://togithub.com/tanstack/svelte-query)[@&#8203;4](https://togithub.com/4).24.10

</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 these
updates again.

---

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

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://app.renovatebot.com/dashboard#github/elastic/kibana).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xNTIuNCIsInVwZGF0ZWRJblZlciI6IjM1LjExMC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Patryk Kopyciński <contact@patrykkopycinski.com>
2023-06-13 17:33:01 +02:00
Anton Dosov
d082d78e60
[Drift] Add chat to management and home getting started (#159121)
## Summary

Partially address https://github.com/elastic/kibana/issues/158835, add
cloud chat (drift) to more places: all management pages and
home/getting_started page

I hit an issue that both management and home couldn't depend directly on
`cloudChat` plugin. Here is the issue with more details
https://github.com/elastic/kibana/issues/159008. I worked around with
creating an intermediate `cloudChatProvider` plugin.


![Screenshot 2023-06-05 at 15 46
44](a051be0c-b5f0-437d-9e52-507643c14aba)

![Screenshot 2023-06-05 at 16 03
06](b3b705da-c8c7-4bb6-9e85-b4adefa583a6)

How do I run drift locally? 

Add this to kibana.yml


```
xpack.cloud.id: "some-id"
xpack.cloud.trial_end_date: "2023-06-21T00:00:00.000Z"

xpack.cloud_integrations.chat.enabled: true
xpack.cloud_integrations.chat.chatURL: "https://elasticcloud-production-chat-us-east-1.s3.amazonaws.com/drift-iframe.html"
xpack.cloud_integrations.chat.chatIdentitySecret: "some-secret" (get it from drift console)
```

You need to have access to our drift account. But I tested with a custom
account. To change account id I had to point
`xpack.cloud_integrations.chat.chatURL` to a script with custom drift
id.
2023-06-13 14:10:49 +02:00
Tiago Costa
3164006599
Revert "Remove unused package (#158597)"
This reverts commit ab29f0873c.
2023-06-12 19:06:31 +01:00
Robert Austin
ab29f0873c
Remove unused package (#158597)
## Summary

The [marge](https://github.com/Maciek416/marge/tree/master) package is
included in `package.json`, but it doesn't appear to be used.

note: there is a `marge` binary, but that is provided by
https://npm.io/package/@danielkalen/mochawesome-report-generator and is
unrelated.
2023-06-12 18:46:51 +01:00
Patryk Kopyciński
daf81aae39
Refactor react-tiny-virtual-list (#159023)
## Summary

`react-tiny-virtual-list ` wasn't updated for over 5 years 🤯
2023-06-12 17:20:16 +02:00
Dario Gieselaar
4a5dcbdea8
[Observability] Co-pilot (tech preview) (#158678) 2023-06-07 04:42:03 -07:00
Cee Chen
e0349899d5
Upgrade EUI to v81.3.0 (#159064)
## Summary

`eui@81.2.0`  `eui@81.3.0`

 Highlights:

- fixes https://github.com/elastic/kibana/issues/158644
- Adds a new Timeline icon for use within `EuiMarkdownEditor` (cc
@kqualters-elastic)
- Expandable rows used within `EuiBasicTable` and `EuiInMemoryTable` now
have a faster and snappier expand animation

___

## [`81.3.0`](https://github.com/elastic/eui/tree/v81.3.0)

- Added `timelineWithArrow` glyph to `EuiIcon`
([#6822](https://github.com/elastic/eui/pull/6822))

**Bug fixes**

- Fixed `EuiCodeBlock` potentially incorrectly ignoring lines ending
with a question mark when using the Copy button.
([#6794](https://github.com/elastic/eui/pull/6794))
- Fixed `EuiCodeBlock` to not include line numbers when copying content
([#6824](https://github.com/elastic/eui/pull/6824))
- Fixed the expanded row animation on `EuiBasicTable` causing
cross-browser Safari issues
([#6826](https://github.com/elastic/eui/pull/6826))
2023-06-06 08:51:52 -05:00
Walter Rafelsberger
9492c932bd
[ML] Package @kbn/ml-data-grid (#155530)
Refactors outdated approach of sharing the custom data grid component
from the `ml` plugin to the `transform` plugin to use packages instead.

Creates the following packages:

- `@kbn/ml-data-grid`
- `@kbn/ml-date-utils`
- `@kbn/ml-runtime-field-utils`
----

- Imports have been refactored so the `transform` plugin no longer
imports code from packages `@kbn/ml-anomaly-utils` and
`@kbn/ml-data-frame-analytics-utils`.
- Removed again auto-generated `@type` related JSDoc comments. Within
the code those annotations are quite redundant, would be cumbersome to
maintain and they are not necessary to satisfy the "missing comments"
check.
- The `renderCellPopover` callback has been refactored out of the
`DataGrid` component and can now be passed in as an optional prop. It is
only used for Data Frame Analytics and this way we can avoid some
dependency of the transform plugin on DFA related code.
- Some more code has been moved to `@kbn/ml-anomaly-utils` to make
available via packages what's needed for the data grid.
2023-06-06 11:20:37 +02:00
renovate[bot]
be244835e6
Update dependency @elastic/charts to v57.0.1 (main) (#155749)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [@elastic/charts](https://togithub.com/elastic/elastic-charts) |
[`55.0.0` ->
`57.0.1`](https://renovatebot.com/diffs/npm/@elastic%2fcharts/55.0.0/57.0.1)
|
[![age](https://badges.renovateapi.com/packages/npm/@elastic%2fcharts/57.0.1/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/@elastic%2fcharts/57.0.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/@elastic%2fcharts/57.0.1/compatibility-slim/55.0.0)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/@elastic%2fcharts/57.0.1/confidence-slim/55.0.0)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Bug fixes

- Fixes #148872 relating to multilayer time axes.
- Fixes #158580 relating to heatmap selection with small multiples.

---

### Release Notes

<details>
<summary>elastic/elastic-charts</summary>

###
[`v57.0.1`](https://togithub.com/elastic/elastic-charts/blob/HEAD/CHANGELOG.md#&#8203;5700-httpsgithubcomelasticelastic-chartscomparev5700v5701-2023-04-19)

[Compare
Source](https://togithub.com/elastic/elastic-charts/compare/v57.0.0...v57.0.1)

##### Bug Fixes

* **axes:** start of week label on multilayer time axis
([#2035](https://github.com/elastic/elastic-charts/issues/2035))
([9711233](9711233cbf))
* **deps:** update dependency @elastic/eui to ^77.2.0
([#2032](https://github.com/elastic/elastic-charts/issues/2032))
([93cadcb](93cadcb7ae))
* **deps:** update dependency @elastic/eui to v78
([#2038](https://github.com/elastic/elastic-charts/issues/2038))
([3feff2c](3feff2c5bc))
* **deps:** update dependency @elastic/eui to v79
([#2042](https://github.com/elastic/elastic-charts/issues/2042))
([8015830](8015830f20))
* **deps:** update dependency @elastic/eui to v80
([#2047](https://github.com/elastic/elastic-charts/issues/2047))
([e6042f3](e6042f3da3))
* **heatmap:** brushing selection values
([#2028](https://github.com/elastic/elastic-charts/issues/2028))
([6a877b4](6a877b431e))
* **heatmap:** wrong axes labels on hover
([#2033](https://github.com/elastic/elastic-charts/issues/2033))
([045fb03](045fb037a9))

###
[`v57.0.0`](https://togithub.com/elastic/elastic-charts/blob/HEAD/CHANGELOG.md#&#8203;5700-httpsgithubcomelasticelastic-chartscomparev5600v5700-2023-04-19)

[Compare
Source](82f6750196...v57.0.0)

##### Code Refactoring

- enable `noUncheckedIndexedAccess`
([#&#8203;2006](https://togithub.com/elastic/elastic-charts/issues/2006))
([f446cca](f446cca169))

##### BREAKING CHANGES

-   Enables stricter type option in src and could have
    unexpected changes. This release is meant to serve as a clean break
    in case any issues arise.

###
[`v56.0.1`](https://togithub.com/elastic/elastic-charts/compare/v56.0.0...82f67501967a1fad80253889462e3aaac724e060)

[Compare
Source](https://togithub.com/elastic/elastic-charts/compare/v56.0.0...82f67501967a1fad80253889462e3aaac724e060)

###
[`v56.0.0`](https://togithub.com/elastic/elastic-charts/blob/HEAD/CHANGELOG.md#&#8203;5600-httpsgithubcomelasticelastic-chartscomparev5500v5600-2023-04-18)

[Compare
Source](https://togithub.com/elastic/elastic-charts/compare/v55.0.0...v56.0.0)

##### Bug Fixes

- **deps:** update dependency
[@&#8203;elastic/eui](https://togithub.com/elastic/eui) to ^76.4.0
([#&#8203;2008](https://togithub.com/elastic/elastic-charts/issues/2008))
([95176e1](95176e1429))
- **deps:** update dependency
[@&#8203;elastic/eui](https://togithub.com/elastic/eui) to v77
([#&#8203;2018](https://togithub.com/elastic/elastic-charts/issues/2018))
([c079730](c079730dd8))
- **interactions:** brushing over origin coordinates
([#&#8203;2013](https://togithub.com/elastic/elastic-charts/issues/2013))
([937feb0](937feb0fcf))
- **tooltip:** custom tooltip header context
([#&#8203;1989](https://togithub.com/elastic/elastic-charts/issues/1989))
([1e5b861](1e5b86106f))

##### Features

- **metric:** trend with string value
([#&#8203;2011](https://togithub.com/elastic/elastic-charts/issues/2011))
([91d7695](91d76957d8))

##### BREAKING CHANGES

- **tooltip:** The `header` property of `TooltipInfo` type was
simplified to `PointerValue` as to include only relevant properties.
This change is propagated to all other types using `header` as a
`TooltipValue`. The `TooltipInfo.values` used to conditionally pass only
highlighted `TooltipValue`s when using a `customTooltip` and now
*always* passes all `values`.

</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 [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://app.renovatebot.com/dashboard#github/elastic/kibana).

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

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: nickofthyme <nicholas.partridge@elastic.co>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Stratoula Kalafateli <efstratia.kalafateli@elastic.co>
Co-authored-by: Nick Partridge <nick.ryan.partridge@gmail.com>
2023-06-05 18:11:56 -07:00
Cee Chen
c52ff7f425
Upgrade EUI to v81.2.0 (#158781)
## Summary

`eui@81.0.0`  `eui@81.2.0`

- Most changes to source code in this PR are CSS cleanups/deprecations
in `EuiSuperDatePicker`/`EuiDatePickerRange`
- One team (ML) had a `inline` specific usage of `EuiDatePickerRange`
that they reached out to us about via Slack, and that we have fixed in
this PR.
- All other usages of date picker components should have remained
working as-is with no changes, but please ping us if you see otherwise!

___

## [`81.2.0`](https://github.com/elastic/eui/tree/v81.2.0)

- Updated `EuiSuperDatePicker` to accept an object configuration for
`isDisabled` ([#6821](https://github.com/elastic/eui/pull/6821))

**Bug fixes**

- Fixed broken `EuiSuperDatePicker` styles
([#6821](https://github.com/elastic/eui/pull/6821))

## [`81.1.0`](https://github.com/elastic/eui/tree/v81.1.0)

- Added `EuiInlineEditText` and `EuiInlineEditTitle` components
([#6757](https://github.com/elastic/eui/pull/6757))
- Updated `EuiDatePickerRange` to support `inline` display
([#6795](https://github.com/elastic/eui/pull/6795))
- Added an `onError` callback prop to `EuiErrorBoundary`
([#6810](https://github.com/elastic/eui/pull/6810))
- Updated `EuiDataGrid` to only render screen reader text announcing
cell position if the cell is currently focused. This should improve the
ability to copy and paste multiple cells without SR text.
([#6817](https://github.com/elastic/eui/pull/6817))

**Bug fixes**

- Fixed `EuiDatePicker`'s `inline` display to correctly render and
prevent user interaction when `disabled` or `readOnly`
([#6795](https://github.com/elastic/eui/pull/6795))
- Fixed `EuiDatePicker`'s `inline` display to correctly render
`isInvalid` and `isLoading` icons
([#6795](https://github.com/elastic/eui/pull/6795))

**CSS-in-JS conversions**

- Converted `EuiDatePickerRange` to Emotion
([#6795](https://github.com/elastic/eui/pull/6795))

---------

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2023-06-05 13:51:40 -07:00
Patryk Kopyciński
d6587eb3b0
Bump react-virtualized@9.22.5 (#159005)
## Summary

Cleans up incorrect peer dependencies warning

<img width="902" alt="image"
src="661a2c6f-0b98-4c88-a88e-53c471a8e588">
2023-06-05 19:17:46 +02:00
Patryk Kopyciński
1fb3351154
Bump cypress@12.13.0 (#158993)
## Summary

It seems https://github.com/cypress-io/cypress/pull/26573/files is
causing on Electron browser
<img width="1366" alt="image"
src="464cf8ad-78bc-4b5b-9713-5aabd48b57e2">

@elastic/apm-ui please let me know if you're okay with switching to use
`Chrome` browser in your tests
2023-06-05 19:15:53 +02:00
Garrett Spong
4e38817a4d
[Security Solution] Elastic Security Assistant (#156933)
## [Security Solution] Elastic Security Assistant

The _Elastic Security Assistant_ has entered the chat, integrating generative AI and large language models (LLMs) into the workflows of Elastic Security users.

Bring your alerts, events, rules, and data quality checks into the conversation.

<31d65c78-5692-4817-b726-820c5df0801c>

This PR merges a feature branch developed by @spong and @andrew-goldstein , seeded by @jamesspi 's prototype of the assistant. Connectivity to LLMs is provided the [Generative AI Connector](<https://github.com/elastic/kibana/pull/157228>) , developed by @stephmilovic . This PR includes:

- A new reusable Kibana package containing the assistant: `x-pack/packages/kbn-elastic-assistant`
  - See the `How to embed the Assistant in other parts of Kibana` for details
- Assistant integration into Elastic Security Solution workflows (e.g. alerts, cases, Timeline, rules, data quality)

### An assistant trained on the Elastic stack and Elastic Security

The [Generative AI Connector](<https://github.com/elastic/kibana/pull/157228>) connects the assistant to OpenAI and Azure OpenAI models trained with knowledge of the Elastic stack and the Elastic Security solution, including:

- The Elastic open [Detection Rules](https://github.com/elastic/detection-rules)
- The [Elastic Common Schema (ECS)](https://www.elastic.co/guide/en/ecs/current/index.html)
- Elastic query languages, including [KQL](https://www.elastic.co/guide/en/kibana/current/kuery-query.html), [EQL](https://www.elastic.co/guide/en/elasticsearch/reference/current/eql-syntax.html), and the [Elastic Query DSL](https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl.html)
- [Elasticsearch API documentation](https://www.elastic.co/guide/en/elasticsearch/reference/8.8/rest-apis.html)

This training enables the assistant to offer fully interactive chat experiences that include:

- alert summarization
- interactive query generation
- workflow suggestions
- generating ingestion configurations that conform to the Elastic Common Schema
- your imagination

using context from Elastic Security.

### Take action from your conversations

The Actions (from assistant response):

- Send KQL to Timeline
- Send EQL to Timeline
- Send Elasticsearch DSL to Timeline
- Send Note to timeline
- Create new case
- Add to existing case
- Copy to clipboard

### Components architecture diagram

![Untitled Diagram drawio (1)](8f446313-629f-4646-b44d-0cb0ca74aeaf)

### How to embed the Assistant in other parts of Kibana

Follow the general instructions in `x-pack/packages/kbn-elastic-assistant/index.ts` to integrate the assistant into a Kibana app.

#### Step 1 - Wrap your Kibana app in the `AssistantProvider` component

```ts
// Step 1: Wrap your Kibana app in the `AssistantProvider` component. This typically
// happens in the root of your app. Optionally provide a custom title for the assistant:

/** provides context (from the app) to the assistant, and injects Kibana services, like `http` */
export { AssistantProvider } from './impl/assistant_context';
```

#### Step 2: Add the `AssistantOverlay` component to your app

```ts
// Step 2: Add the `AssistantOverlay` component to your app. This component displays the assistant
// overlay in a modal, bound to a shortcut key:

/** modal overlay for Elastic Assistant conversations */
export { AssistantOverlay } from './impl/assistant/assistant_overlay';

// In addition to the `AssistantOverlay`, or as an alternative, you may use the `Assistant` component
// to display the assistant without the modal overlay:

/** this component renders the Assistant without the modal overlay to, for example, render it in a Timeline tab */
export { Assistant } from './impl/assistant';
```

#### Step 3: Wherever you want to bring context into the assistant, use the any combination of the following

```ts
// Step 3: Wherever you want to bring context into the assistant, use the any combination of the following
// components and hooks:
// - `NewChat` component
// - `NewChatById` component
// - `useAssistantOverlay` hook

/**
 * `NewChat` displays a _New chat_ icon button, providing all the context
 * necessary to start a new chat. You may optionally style the button icon,
 * or override the default _New chat_ text with custom content, like `🪄`
 *
 * USE THIS WHEN: All the data necessary to start a new chat is available
 * in the same part of the React tree as the _New chat_ button.
 */
export { NewChat } from './impl/new_chat';

/**
 * `NewChatByID` displays a _New chat_ icon button by providing only the `promptContextId`
 * of a context that was (already) registered by the `useAssistantOverlay` hook. You may
 * optionally style the button icon, or override the default _New chat_ text with custom
 * content, like {'🪄'}
 *
 * USE THIS WHEN: all the data necessary to start a new chat is NOT available
 * in the same part of the React tree as the _New chat_ button. When paired
 * with the `useAssistantOverlay` hook, this option enables context to be be
 * registered where the data is available, and then the _New chat_ button can be displayed
 * in another part of the tree.
 */
export { NewChatById } from './impl/new_chat_by_id';

/**
 * `useAssistantOverlay` is a hook that registers context with the assistant overlay, and
 * returns an optional `showAssistantOverlay` function to display the assistant overlay.
 * As an alterative to using the `showAssistantOverlay` returned from this hook, you may
 * use the `NewChatById` component and pass it the `promptContextId` returned by this hook.
 *
 * USE THIS WHEN: You want to register context in one part of the tree, and then show
 * a _New chat_ button in another part of the tree without passing around the data, or when
 * you want to build a custom `New chat` button with features not not provided by the
 * `NewChat` component.
 */
export { useAssistantOverlay } from './impl/assistant/use_assistant_overlay';
```

Co-authored-by: Garrett Spong <garrett.spong@elastic.co>
Co-authored-by: Andrew Macri <andrew.macri@elastic.co>
2023-06-02 15:19:10 -06:00
Tiago Costa
f9f035fe9c
chore(NA): update caniuse-lite into v1.0.30001492 (#158791)
Simple PR to bump version on this dependency that is throwing on older
branches.
2023-06-02 00:42:53 +01:00
Pablo Machado
88aa68aec8
[Security Solution][Serverless] PLI features base architecture (#158179)
[Documentation](https://docs.google.com/document/d/1Ms8d8d_fbTTRHlBroEAKGNMNk3jFFgOAkVDRhqLxAPQ/edit?pli=1#)


issue: https://github.com/elastic/kibana/issues/158810
## Summary

This PR is a cleanup to make [this
POC](https://github.com/elastic/kibana/pull/155420) production ready

- Serverless PLI features splitting in Security Solution, to allow/deny
access to configured functionalities, using the current Kibana RBAC
service.
- Create the Upselling service to display Serveless-specific prompts in
the application when features are not available
- Create a `SecurityRoutePageWrapper` component that wraps Pages and
displays the upsell when necessary.
- We will refactor the code base to use `SecurityRoutePageWrapper`
everywhere on another PR.
- Create an Upsell page and section for entity analytics


bd8db822-2f4b-4545-9da7-bedc07d93f90


### test:
Serverless: `yarn serverless-security`. 
* To change the product line you have to update
`xpack.serverless.security.productLineIds` on
`config/serverless.security.yml`.

ESS: `yarn start`


### Glossary
* PLI - Product Line Item (`Alert Triage`, `Osquery`, `Cases` , ... )
* Product Line - The product that the user is subscribed to (Security
Essentials, Security Complete, ...)
* essSecurity - New plugin with code that only runs for ESS offer
(non-serverless).
* App Feature - A security solution feature or group of features that
can be disabled for a product line. It can be mapped to PLIs (`Alert
Triage`, `Osquery`, `Cases` , ... ).
* Capability - A string that when present represents that the user can
access a given feature. A capability could be of the type UI or API
(`read_cases`, `crud_cases`, ...).


### Current architecture

![Security
Features](https://user-images.githubusercontent.com/17747913/233414697-231940c2-7790-485b-9403-e971351fa655.jpg)

### New architecture

![Serverless Security
Features](https://user-images.githubusercontent.com/17747913/233414733-1fc0eef1-be20-46ef-8692-bc80867326d1.jpg)

### How does it work?
Every serverless product line (endpointEssentials, cloud essentials) can
define which features are enabled:

69d0fc15f4/x-pack/plugins/serverless_security/common/pli/pli_config.ts (L12-L19)

For ESS (non-serverless) offer we enable all features by default.

69d0fc15f4/x-pack/plugins/ess_security/server/constants.ts (L10-L13)


A feature can define privileges: 

69d0fc15f4/x-pack/plugins/security_solution/server/lib/app_features/security_kibana_features.ts (L177-L185)

When the feature is enabled the privileges get merged into the base
config and injected into kibana features.

69d0fc15f4/x-pack/plugins/security_solution/server/lib/app_features/app_features.ts (L61-L70)


### TODO
- [x] lazy load these components
- [x] Add unit test to:
- ~SecurityRoutePageWrapper
x-pack/plugins/security_solution/public/common/components/security_route_page_wrapper/index.tsx~
-
~x-pack/plugins/security_solution/public/common/hooks/use_upselling.ts~
-
~x-pack/plugins/security_solution/public/common/lib/capabilities/has_capabilities.ts~
-
~x-pack/plugins/security_solution/public/common/lib/upsellings/upselling_service.ts~
  - ~x-pack/plugins/serverless_security/common/pli/pli_features.ts~
-
~x-pack/plugins/serverless_security/public/components/upselling/register_upsellings.tsx~
-
~x-pack/plugins/security_solution/server/lib/app_features/app_features.ts~

### 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>
2023-06-01 10:40:30 -07:00
Larry Gregory
248a1346af
Upgrade proxy to 2.1.1 (#158764)
## Summary

Bumps the `proxy` dev dependency to `2.1.1`.
2023-06-01 12:36:31 -04:00
Trevor Pierce
aa1d266939
Upgrade EUI to v81.0.0 (#158330)
## Summary

`@elastic/eui@80.0.0`  `@elastic/eui@81.0.0`

---

## [`81.0.0`](https://github.com/elastic/eui/tree/v81.0.0)

- Added ability to set `options.checked` to "mixed" in `EuiSelectable`
([#6774](https://github.com/elastic/eui/pull/6774))

**Bug fixes**

- Portalled components (e.g. `EuiPopover`, `EuiModal`, `EuiFlyout`) will
correctly inherit text color from its nearest `EuiThemeProvider` parent.
`<EuiText color="default">` is no longer needed.
([#6775](https://github.com/elastic/eui/pull/6775))

**Breaking changes**

- `EuiSelectable` no longer renders a `data-test-selected` attribute on
its list items. Use the `aria-checked` property instead
([#6774](https://github.com/elastic/eui/pull/6774))
- Nested `EuiThemeProvider`s now render a wrapping `<span>` element in
order to correctly set the inherited text `color` of all descendants.
`<EuiText color="default">` is no longer needed.
([#6775](https://github.com/elastic/eui/pull/6775))

---------

Co-authored-by: Stratoula Kalafateli <efstratia.kalafateli@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Constance Chen <constance.chen@elastic.co>
2023-05-31 11:51:10 -07:00
Rachel Shen
3746b73f5c
[Reporting] Initial Export types plugin (#158479)
## Summary

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

- [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: Tim Sullivan <tsullivan@users.noreply.github.com>
2023-05-31 07:09:23 -07:00
Walter Rafelsberger
9febf5de21
[ML] Package @kbn/ml-data-frame-analytics-utils (#155976)
Creates Package `@kbn/ml-data-frame-analytics-utils` via `node
scripts/generate package @kbn/ml-data-frame-analytics-utils --web --dir
./x-pack/packages/ml/data_frame_analytics_utils`.

Moves some of the constants, types and utilities for Data Frame
Analytics to its own package. This is in preparation to move our data
grid related code to a package too. Since this code for now is only used
by our team I didn't do any renaming related to for example consistent
prefixing, this should be revisited in a follow up. Another opportunity
for a follow up might be a clean up of the types and check which ones
can be replaced by types from `estypes`.
2023-05-31 13:54:50 +02:00
Julia Rechkunova
8d399fe3aa
[UnifiedFieldList] Remove redundant server routes. Create new example plugin for unified field list components and migrate tests. (#158377)
- Closes https://github.com/elastic/kibana/issues/147885
- Closes https://github.com/elastic/kibana/issues/157109

## Summary

**Before:**

Unified Field List plugin has internal routes (wrappers for client code)
which exist only to run api functional tests against them:
 - `/api/unified_field_list/existing_fields/{dataViewId}`
 - `/api/unified_field_list/field_stats`

Client code does not call these routes directly. So there is no reason
in keeping and versioning them.

**After:**
- Internal routes are removed 
- A new "Unified Field List Examples" page was created
http://localhost:5601/app/unifiedFieldListExamples
- API functional tests (which used the routes) were converted to
functional tests against this new example page
- Created a new `unifiedFieldList` page object which is used now in
functional tests (methods are extracted from existing `discover` page
object).

**For testing:**

Steps:
1. Run Kibana with examples: `yarn start --run-examples` 
2. Install sample data
3. And navigate to Developer Examples > Unified Field List Examples
page.

![May-26-2023
13-24-03](5a2149f7-beb8-40a5-b7d5-9eeaabfd42ca)


### 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>
2023-05-31 13:25:47 +02:00
Konrad Szwarc
c9658bf238
[Security Solution] ~200 ways to decrease flakiness in Cypress (#157387)
This PR addresses Cypress parallelisation in Security Solution scope. It
is a first step in improving e2e tests reliability and gives us a solid
foundation for further work on flakiness and run times. With this PR
each CI job starts 3 instances of ES, kibana and Cypress runner in
isolation.

Other issues addressed in this PR: 
- Use click() instead of trigger('click') in all Cypress tests.
- Use testIsolation in all Cypress tests.
- login before each test to ensure that the correct user is always
logged in. Also, with test isolation enabled, login should be required
before each test.
- use visit() instead of cy.visit() in some cases so that tests wait for
the page to fully load before executing.
- Cypress e2e tests are no longer compatible with Firefox (or any
non-Chromium based browser) due to using cypress-real-events
- Removes uses of cypress-pipe. Tests that used cypress-pipe in order to
retry click events will no longer retry click events.
- Fixes an error related to test files being overwritten by Webpack file
processing

---------

Co-authored-by: Patryk Kopycinski <contact@patrykkopycinski.com>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-05-30 17:40:18 +02:00
Yan Savitski
815fddb9f0
[Search Application] Use ES JS client instead of Transport (#158446)
- ✔️ Update es client version
- ✔️ Replace transport api to es client
- ✔️ Update tests
- ✔️ Fix TS issues
2023-05-30 05:16:40 -07:00
Dzmitry Lemechko
0f8b3595f1
update geckodriver to 4.0.0 (#158384)
## Summary

Updating geckodriver dependency to use the latest 0.33.0 driver. Module
was reworked, I removed import from webdriver.ts
2023-05-26 10:24:19 +02:00
Dima Arnautov
c5eee26671
[ML] Apply theme based on the User Profile settings (#158258)
## Summary

With the release of Per User Dark Mode, code should no longer rely on
calling `uiSettings` to determine which theme Kibana is displayed with.

With theme settings now configurable from User Profiles and Adv.
Settings, the code that was calling uiSettings to determine the Kibana
theme will not take into account which theme is currently being
displayed.


Applies an appropriate EUI theme based on the profile settings. In
particular for the following components:
- Anomaly swim lane (Fixes #158155 )
- Job tree map view (Fixes
https://github.com/elastic/kibana/issues/158304)
- Charts-related theme settings, e.g. the Single Metric Viewer
2023-05-25 11:57:48 +02:00
Patryk Kopyciński
2f80cb38af
Bump dpdm (#158153)
## Summary

Bump dpdm
2023-05-24 22:06:13 +02:00
renovate[bot]
301135bff8
Update dependency elastic-apm-node to ^3.46.0 (main) (#158211)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-05-23 09:23:20 +02:00
Stratoula Kalafateli
0975ebabd1
[Text based languages] Creates editor reusable component (#158008)
## Summary

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

This PR:
- Moves the editor from unified-search to a standalone package
- The editor has now a core ui settings dependency but is going to have
an expressions dependency too when merged with the ESQL branch
- Adds a new plugin (text-based-languages) which is used to pass the
dependencies on the package. The user can either use this plugin without
giving any dependencies or use the package with passing the dependecies
on the KibanaContextProvider.
- Adds storybook for the editor (I used the mdx stories as we did on the
random sampling package)

<img width="1668" alt="image"
src="763a3112-1ae5-49bb-81f3-acd02892e402">


### Checklist

- [x]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-05-22 14:27:38 +03:00
Tomasz Kajtoch
b754a2df75
Upgrade EUI to v80.0.0 (#157939)
## Summary

`@elastic/eui@79.0.1`  `@elastic/eui@80.0.0`

---

## [`80.0.0`](https://github.com/elastic/eui/tree/v80.0.0)

- Improved the contrast ratio of meta labels within
`EuiSelectableTemplateSitewide` to meet WCAG AA guidelines.
([#6761](https://github.com/elastic/eui/pull/6761))
- Added `vulnerabilityManagementApp` glyph to `EuiIcon`
([#6762](https://github.com/elastic/eui/pull/6762))
- Added `logoVulnerabilityManagement` icon to `EuiIcon`
([#6763](https://github.com/elastic/eui/pull/6763))
- Added `onPanelChange` callback to `EuiContextMenu` to provide consumer
access to `panelId` and `direction`.
([#6767](https://github.com/elastic/eui/pull/6767))

**Bug fixes**

- Fixed `EuiComboBox` so `append` and `prepend` icon buttons are full
height and vertically centered.
([#6766](https://github.com/elastic/eui/pull/6766))
- Improved the uniformity of dropdown components by hiding the dropdown
icon of disabled `EuiComboBox`s.
([#6768](https://github.com/elastic/eui/pull/6768))

**Breaking changes**

- `EuiFieldNumber` now defaults the `step` prop to `"any"`
([#6760](https://github.com/elastic/eui/pull/6760))
- EUI now globally resets a default Chromium browser style that was
decreasing the opacity of disabled `select` items.
([#6768](https://github.com/elastic/eui/pull/6768))

---------

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2023-05-18 18:52:40 +02:00
Jeramy Soucy
b140e089a2
Upgrade xml2js (0.4.22 -> 0.5.0) (#156737)
## Summary
Updates the xml2js package dependency from v0.4.22 to v0.5.0.
2023-05-17 16:05:38 -04:00
Nathan Reese
556ba07452
[maps] fix double encoding MVT request body (#157788)
Fixes https://github.com/elastic/kibana/issues/157219

On the client, `URLSearchParams.set` encodes strings. On the server,
`query` values are passed to the route decoded. Therefore, there is no
need for special encoding or decoding of requestBody, other then rison
encoding.

PR creates `getTileUrlParams` to standardize vector tile URL creation
across sources. `getTileUrlParams` is placed in a package so it can be
used in integration tests. This greatly increases the maintainability of
integration tests as it makes them ore readable and creates tileUrls
just like the client does to ensure testing is as close to the real
thing as possible.

PR also updates getTileUrl generation to only pick requestBody keys used
by vector tile routes to avoid sending unnecessary data to the server.

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-05-16 14:45:40 -06:00