Skip to content

[Feature Flags] Retry provider setup#214200

Merged
afharo merged 2 commits intoelastic:mainfrom
afharo:feature-flags/retry-provider-setup
Mar 12, 2025
Merged

[Feature Flags] Retry provider setup#214200
afharo merged 2 commits intoelastic:mainfrom
afharo:feature-flags/retry-provider-setup

Conversation

@afharo
Copy link
Member

@afharo afharo commented Mar 12, 2025

Summary

We identified that on some occasions, the Feature Flags provider times out when setting up, and, since we don't restart the Kibana server, it never sets it up.

This PR adds a retry logic to try to set the provider in case there's an error.

cc @pmuellr as he found out about this bug

Checklist

@afharo afharo added Team:Core Platform Core services: plugins, logging, config, saved objects, http, ES client, i18n, etc t// release_note:skip Skip the PR/issue when compiling release notes backport:prev-minor labels Mar 12, 2025
@afharo afharo self-assigned this Mar 12, 2025
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

cc @afharo

@afharo
Copy link
Member Author

afharo commented Mar 12, 2025

run docs-build

@afharo afharo marked this pull request as ready for review March 12, 2025 18:53
@afharo afharo requested a review from a team as a code owner March 12, 2025 18:53
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-core (Team:Core)

@afharo afharo merged commit 1337c11 into elastic:main Mar 12, 2025
10 checks passed
@afharo afharo deleted the feature-flags/retry-provider-setup branch March 12, 2025 21:45
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.16, 8.17, 8.18, 8.x, 9.0

https://github.com/elastic/kibana/actions/runs/13822154408

kibanamachine added a commit to kibanamachine/kibana that referenced this pull request Mar 12, 2025
## Summary

We identified that on some occasions, the Feature Flags provider times
out when setting up, and, since we don't restart the Kibana server, it
never sets it up.

This PR adds a retry logic to try to set the provider in case there's an
error.

cc @pmuellr as he found out about this bug

### 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>
(cherry picked from commit 1337c11)
@kibanamachine
Copy link
Contributor

💔 Some backports could not be created

Status Branch Result
8.16 Backport failed because of merge conflicts
8.17 Backport failed because of merge conflicts
8.18 Backport failed because of merge conflicts
8.x Backport failed because of merge conflicts
9.0

Note: Successful backport PRs will be merged automatically after passing CI.

Manual backport

To create the backport manually run:

node scripts/backport --pr 214200

Questions ?

Please refer to the Backport tool documentation

afharo added a commit to afharo/kibana that referenced this pull request Mar 12, 2025
## Summary

We identified that on some occasions, the Feature Flags provider times
out when setting up, and, since we don't restart the Kibana server, it
never sets it up.

This PR adds a retry logic to try to set the provider in case there's an
error.

cc @pmuellr as he found out about this bug

### 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>
(cherry picked from commit 1337c11)

# Conflicts:
#	src/core/packages/feature-flags/server-internal/src/feature_flags_service.ts
afharo added a commit to afharo/kibana that referenced this pull request Mar 12, 2025
## Summary

We identified that on some occasions, the Feature Flags provider times
out when setting up, and, since we don't restart the Kibana server, it
never sets it up.

This PR adds a retry logic to try to set the provider in case there's an
error.

cc @pmuellr as he found out about this bug

### 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>
(cherry picked from commit 1337c11)

# Conflicts:
#	packages/core/feature-flags/core-feature-flags-server-internal/src/feature_flags_service.ts
#	packages/core/feature-flags/core-feature-flags-server-internal/src/set_provider_with_retries.test.ts
#	packages/core/feature-flags/core-feature-flags-server-internal/src/set_provider_with_retries.ts
@afharo
Copy link
Member Author

afharo commented Mar 12, 2025

💚 All backports created successfully

Status Branch Result
8.x
8.18
8.17
8.16

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

afharo added a commit to afharo/kibana that referenced this pull request Mar 12, 2025
## Summary

We identified that on some occasions, the Feature Flags provider times
out when setting up, and, since we don't restart the Kibana server, it
never sets it up.

This PR adds a retry logic to try to set the provider in case there's an
error.

cc @pmuellr as he found out about this bug

### 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>
(cherry picked from commit 1337c11)

# Conflicts:
#	packages/core/feature-flags/core-feature-flags-server-internal/src/feature_flags_service.ts
#	packages/core/feature-flags/core-feature-flags-server-internal/src/set_provider_with_retries.test.ts
#	packages/core/feature-flags/core-feature-flags-server-internal/src/set_provider_with_retries.ts
kibanamachine added a commit that referenced this pull request Mar 12, 2025
# Backport

This will backport the following commits from `main` to `9.0`:
- [[Feature Flags] Retry provider setup
(#214200)](#214200)

<!--- Backport version: 9.6.6 -->

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

<!--BACKPORT [{"author":{"name":"Alejandro Fernández
Haro","email":"alejandro.haro@elastic.co"},"sourceCommit":{"committedDate":"2025-03-12T21:45:38Z","message":"[Feature
Flags] Retry provider setup (#214200)\n\n## Summary\n\nWe identified
that on some occasions, the Feature Flags provider times\nout when
setting up, and, since we don't restart the Kibana server, it\nnever
sets it up.\n\nThis PR adds a retry logic to try to set the provider in
case there's an\nerror.\n\ncc @pmuellr as he found out about this
bug\n\n### Checklist\n\n- [x] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common
scenarios\n\n---------\n\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"1337c11ac3c4c94c828db52a9ab9768ccf9a1c45","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Core","release_note:skip","backport:prev-minor","backport:prev-major","v9.1.0"],"title":"[Feature
Flags] Retry provider
setup","number":214200,"url":"https://github.com/elastic/kibana/pull/214200","mergeCommit":{"message":"[Feature
Flags] Retry provider setup (#214200)\n\n## Summary\n\nWe identified
that on some occasions, the Feature Flags provider times\nout when
setting up, and, since we don't restart the Kibana server, it\nnever
sets it up.\n\nThis PR adds a retry logic to try to set the provider in
case there's an\nerror.\n\ncc @pmuellr as he found out about this
bug\n\n### Checklist\n\n- [x] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common
scenarios\n\n---------\n\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"1337c11ac3c4c94c828db52a9ab9768ccf9a1c45"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/214200","number":214200,"mergeCommit":{"message":"[Feature
Flags] Retry provider setup (#214200)\n\n## Summary\n\nWe identified
that on some occasions, the Feature Flags provider times\nout when
setting up, and, since we don't restart the Kibana server, it\nnever
sets it up.\n\nThis PR adds a retry logic to try to set the provider in
case there's an\nerror.\n\ncc @pmuellr as he found out about this
bug\n\n### Checklist\n\n- [x] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common
scenarios\n\n---------\n\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"1337c11ac3c4c94c828db52a9ab9768ccf9a1c45"}}]}]
BACKPORT-->

Co-authored-by: Alejandro Fernández Haro <alejandro.haro@elastic.co>
afharo added a commit that referenced this pull request Mar 13, 2025
# Backport

This will backport the following commits from `main` to `8.x`:
- [[Feature Flags] Retry provider setup
(#214200)](#214200)

<!--- Backport version: 9.6.6 -->

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

<!--BACKPORT [{"author":{"name":"Alejandro Fernández
Haro","email":"alejandro.haro@elastic.co"},"sourceCommit":{"committedDate":"2025-03-12T21:45:38Z","message":"[Feature
Flags] Retry provider setup (#214200)\n\n## Summary\n\nWe identified
that on some occasions, the Feature Flags provider times\nout when
setting up, and, since we don't restart the Kibana server, it\nnever
sets it up.\n\nThis PR adds a retry logic to try to set the provider in
case there's an\nerror.\n\ncc @pmuellr as he found out about this
bug\n\n### Checklist\n\n- [x] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common
scenarios\n\n---------\n\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"1337c11ac3c4c94c828db52a9ab9768ccf9a1c45","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Core","release_note:skip","backport:prev-minor","backport:prev-major","v9.1.0"],"title":"[Feature
Flags] Retry provider
setup","number":214200,"url":"https://github.com/elastic/kibana/pull/214200","mergeCommit":{"message":"[Feature
Flags] Retry provider setup (#214200)\n\n## Summary\n\nWe identified
that on some occasions, the Feature Flags provider times\nout when
setting up, and, since we don't restart the Kibana server, it\nnever
sets it up.\n\nThis PR adds a retry logic to try to set the provider in
case there's an\nerror.\n\ncc @pmuellr as he found out about this
bug\n\n### Checklist\n\n- [x] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common
scenarios\n\n---------\n\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"1337c11ac3c4c94c828db52a9ab9768ccf9a1c45"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/214200","number":214200,"mergeCommit":{"message":"[Feature
Flags] Retry provider setup (#214200)\n\n## Summary\n\nWe identified
that on some occasions, the Feature Flags provider times\nout when
setting up, and, since we don't restart the Kibana server, it\nnever
sets it up.\n\nThis PR adds a retry logic to try to set the provider in
case there's an\nerror.\n\ncc @pmuellr as he found out about this
bug\n\n### Checklist\n\n- [x] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common
scenarios\n\n---------\n\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"1337c11ac3c4c94c828db52a9ab9768ccf9a1c45"}},{"url":"https://github.com/elastic/kibana/pull/214288","number":214288,"branch":"9.0","state":"OPEN"}]}]
BACKPORT-->
afharo added a commit that referenced this pull request Mar 13, 2025
# Backport

This will backport the following commits from `main` to `8.18`:
- [[Feature Flags] Retry provider setup
(#214200)](#214200)

<!--- Backport version: 9.6.6 -->

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

<!--BACKPORT [{"author":{"name":"Alejandro Fernández
Haro","email":"alejandro.haro@elastic.co"},"sourceCommit":{"committedDate":"2025-03-12T21:45:38Z","message":"[Feature
Flags] Retry provider setup (#214200)\n\n## Summary\n\nWe identified
that on some occasions, the Feature Flags provider times\nout when
setting up, and, since we don't restart the Kibana server, it\nnever
sets it up.\n\nThis PR adds a retry logic to try to set the provider in
case there's an\nerror.\n\ncc @pmuellr as he found out about this
bug\n\n### Checklist\n\n- [x] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common
scenarios\n\n---------\n\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"1337c11ac3c4c94c828db52a9ab9768ccf9a1c45","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Core","release_note:skip","backport:prev-minor","backport:prev-major","v9.1.0"],"title":"[Feature
Flags] Retry provider
setup","number":214200,"url":"https://github.com/elastic/kibana/pull/214200","mergeCommit":{"message":"[Feature
Flags] Retry provider setup (#214200)\n\n## Summary\n\nWe identified
that on some occasions, the Feature Flags provider times\nout when
setting up, and, since we don't restart the Kibana server, it\nnever
sets it up.\n\nThis PR adds a retry logic to try to set the provider in
case there's an\nerror.\n\ncc @pmuellr as he found out about this
bug\n\n### Checklist\n\n- [x] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common
scenarios\n\n---------\n\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"1337c11ac3c4c94c828db52a9ab9768ccf9a1c45"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/214200","number":214200,"mergeCommit":{"message":"[Feature
Flags] Retry provider setup (#214200)\n\n## Summary\n\nWe identified
that on some occasions, the Feature Flags provider times\nout when
setting up, and, since we don't restart the Kibana server, it\nnever
sets it up.\n\nThis PR adds a retry logic to try to set the provider in
case there's an\nerror.\n\ncc @pmuellr as he found out about this
bug\n\n### Checklist\n\n- [x] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common
scenarios\n\n---------\n\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"1337c11ac3c4c94c828db52a9ab9768ccf9a1c45"}},{"url":"https://github.com/elastic/kibana/pull/214288","number":214288,"branch":"9.0","state":"OPEN"}]}]
BACKPORT-->
afharo added a commit that referenced this pull request Mar 13, 2025
# Backport

This will backport the following commits from `main` to `8.17`:
- [[Feature Flags] Retry provider setup
(#214200)](#214200)

<!--- Backport version: 9.6.6 -->

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

<!--BACKPORT [{"author":{"name":"Alejandro Fernández
Haro","email":"alejandro.haro@elastic.co"},"sourceCommit":{"committedDate":"2025-03-12T21:45:38Z","message":"[Feature
Flags] Retry provider setup (#214200)\n\n## Summary\n\nWe identified
that on some occasions, the Feature Flags provider times\nout when
setting up, and, since we don't restart the Kibana server, it\nnever
sets it up.\n\nThis PR adds a retry logic to try to set the provider in
case there's an\nerror.\n\ncc @pmuellr as he found out about this
bug\n\n### Checklist\n\n- [x] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common
scenarios\n\n---------\n\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"1337c11ac3c4c94c828db52a9ab9768ccf9a1c45","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Core","release_note:skip","backport:prev-minor","backport:prev-major","v9.1.0"],"title":"[Feature
Flags] Retry provider
setup","number":214200,"url":"https://github.com/elastic/kibana/pull/214200","mergeCommit":{"message":"[Feature
Flags] Retry provider setup (#214200)\n\n## Summary\n\nWe identified
that on some occasions, the Feature Flags provider times\nout when
setting up, and, since we don't restart the Kibana server, it\nnever
sets it up.\n\nThis PR adds a retry logic to try to set the provider in
case there's an\nerror.\n\ncc @pmuellr as he found out about this
bug\n\n### Checklist\n\n- [x] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common
scenarios\n\n---------\n\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"1337c11ac3c4c94c828db52a9ab9768ccf9a1c45"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/214200","number":214200,"mergeCommit":{"message":"[Feature
Flags] Retry provider setup (#214200)\n\n## Summary\n\nWe identified
that on some occasions, the Feature Flags provider times\nout when
setting up, and, since we don't restart the Kibana server, it\nnever
sets it up.\n\nThis PR adds a retry logic to try to set the provider in
case there's an\nerror.\n\ncc @pmuellr as he found out about this
bug\n\n### Checklist\n\n- [x] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common
scenarios\n\n---------\n\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"1337c11ac3c4c94c828db52a9ab9768ccf9a1c45"}},{"url":"https://github.com/elastic/kibana/pull/214288","number":214288,"branch":"9.0","state":"OPEN"}]}]
BACKPORT-->
afharo added a commit that referenced this pull request Mar 13, 2025
# Backport

This will backport the following commits from `main` to `8.16`:
- [[Feature Flags] Retry provider setup
(#214200)](#214200)

<!--- Backport version: 9.6.6 -->

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

<!--BACKPORT [{"author":{"name":"Alejandro Fernández
Haro","email":"alejandro.haro@elastic.co"},"sourceCommit":{"committedDate":"2025-03-12T21:45:38Z","message":"[Feature
Flags] Retry provider setup (#214200)\n\n## Summary\n\nWe identified
that on some occasions, the Feature Flags provider times\nout when
setting up, and, since we don't restart the Kibana server, it\nnever
sets it up.\n\nThis PR adds a retry logic to try to set the provider in
case there's an\nerror.\n\ncc @pmuellr as he found out about this
bug\n\n### Checklist\n\n- [x] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common
scenarios\n\n---------\n\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"1337c11ac3c4c94c828db52a9ab9768ccf9a1c45","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Core","release_note:skip","backport:prev-minor","backport:prev-major","v9.1.0"],"title":"[Feature
Flags] Retry provider
setup","number":214200,"url":"https://github.com/elastic/kibana/pull/214200","mergeCommit":{"message":"[Feature
Flags] Retry provider setup (#214200)\n\n## Summary\n\nWe identified
that on some occasions, the Feature Flags provider times\nout when
setting up, and, since we don't restart the Kibana server, it\nnever
sets it up.\n\nThis PR adds a retry logic to try to set the provider in
case there's an\nerror.\n\ncc @pmuellr as he found out about this
bug\n\n### Checklist\n\n- [x] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common
scenarios\n\n---------\n\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"1337c11ac3c4c94c828db52a9ab9768ccf9a1c45"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/214200","number":214200,"mergeCommit":{"message":"[Feature
Flags] Retry provider setup (#214200)\n\n## Summary\n\nWe identified
that on some occasions, the Feature Flags provider times\nout when
setting up, and, since we don't restart the Kibana server, it\nnever
sets it up.\n\nThis PR adds a retry logic to try to set the provider in
case there's an\nerror.\n\ncc @pmuellr as he found out about this
bug\n\n### Checklist\n\n- [x] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common
scenarios\n\n---------\n\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"1337c11ac3c4c94c828db52a9ab9768ccf9a1c45"}},{"url":"https://github.com/elastic/kibana/pull/214288","number":214288,"branch":"9.0","state":"OPEN"}]}]
BACKPORT-->
@pmuellr
Copy link
Contributor

pmuellr commented Mar 13, 2025

This is still a problem, I think:

Nope: I see it was done in a parallel PR #214231 . Nice!

OpenFeature.setLogger(createOpenFeatureLogger(this.logger.get('open-feature')));

Maybe not hitting us yet, but IIRC, they send an Error as the second object to .error(), which we expect to be a Meta (ECS shaped, I think), which then injects oddities like name from the Error into the log documents.

CAWilson94 pushed a commit to CAWilson94/kibana that referenced this pull request Mar 22, 2025
## Summary

We identified that on some occasions, the Feature Flags provider times
out when setting up, and, since we don't restart the Kibana server, it
never sets it up.

This PR adds a retry logic to try to set the provider in case there's an
error.

cc @pmuellr as he found out about this bug

### 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release_note:skip Skip the PR/issue when compiling release notes Team:Core Platform Core services: plugins, logging, config, saved objects, http, ES client, i18n, etc t// v8.16.6 v8.17.4 v8.18.0 v8.19.0 v9.0.0 v9.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants