Skip to content

[Vega] Fix data[].url.body.runtime_mappings param#253560

Merged
markov00 merged 9 commits intoelastic:mainfrom
nickofthyme:fix-vega-body-params
Feb 18, 2026
Merged

[Vega] Fix data[].url.body.runtime_mappings param#253560
markov00 merged 9 commits intoelastic:mainfrom
nickofthyme:fix-vega-body-params

Conversation

@nickofthyme
Copy link
Contributor

@nickofthyme nickofthyme commented Feb 17, 2026

Summary

Fixes a breaking change caused by upgrading the elasticsearch js client to 9.x where we started to ignore the data[].url.body.runtime_mappings in favor of data[].url.runtime_mappings.

Fixes #253545

Details

In #208776 when upgrading to the 9.x ES client, we changed the code to point at the request params instead of params.body. Specifically here.

// src/platform/plugins/private/vis_types/vega/public/data_model/search_api.ts
-    let runtimeMappings = requestParams.body.runtime_mappings;
+    let runtimeMappings = requestParams.runtime_mappings;

Checklist

  • Unit or functional tests were updated or added to match the most common scenarios
  • This was checked for breaking HTTP API changes, and any breaking changes have been approved by the breaking-change committee. The release_note:breaking label should be applied in these situations.
  • The PR description includes the appropriate Release Notes section, and the correct release_note:* label is applied per the guidelines
  • Review the backport guidelines and apply applicable backport:* labels.

Release Notes

Fixes a bug where runtime_mappings where ignored or overridden in a Vega spec when defined in data[].url.body. Note, the data[].url.body property was deprecated in kibana@v8.0 and properties moved to data[].url.

@nickofthyme nickofthyme requested a review from a team as a code owner February 17, 2026 19:33
@nickofthyme nickofthyme added release_note:fix backport:all-open Backport to all branches that could still receive a release labels Feb 17, 2026
@nickofthyme nickofthyme changed the title fix: vega body.runtime_mappings param with defaults Feb 17, 2026
@nickofthyme nickofthyme requested a review from a team as a code owner February 17, 2026 23:24
@elasticmachine
Copy link
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] Jest Tests #4 / validation should forward values from the form
  • [job] [logs] Jest Tests #4 / StatefulOpenTimeline #onToggleShowNotes it renders the expanded notes when the expand button is clicked

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
visTypeVega 2.0MB 2.0MB +12.0B

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
data 439.1KB 439.1KB +34.0B

History

Copy link
Contributor

@markov00 markov00 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, discussed together with Nick yesterday

@markov00 markov00 merged commit 6234793 into elastic:main Feb 18, 2026
16 checks passed
markov00 pushed a commit to markov00/kibana that referenced this pull request Feb 18, 2026
## Summary

Fixes a breaking change caused by upgrading the elasticsearch js client
to `9.x` where we started to ignore the
`data[].url.body.runtime_mappings` in favor of
`data[].url.runtime_mappings`.

Fixes elastic#253545

## Details

In elastic#208776 when upgrading to the `9.x` ES client, we changed the code to
point at the request `params` instead of `params.body`. Specifically
[here](https://github.com/elastic/kibana/pull/208776/changes#diff-fca94e46395fddbb9ba787d8d4eadd9bb236856081a09e02fdc7a8b4217a2be5R31).

```diff
// src/platform/plugins/private/vis_types/vega/public/data_model/search_api.ts
-    let runtimeMappings = requestParams.body.runtime_mappings;
+    let runtimeMappings = requestParams.runtime_mappings;
```

### Checklist

- [ ] [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] This was checked for breaking HTTP API changes, and any breaking
changes have been approved by the breaking-change committee. The
`release_note:breaking` label should be applied in these situations.
- [x] The PR description includes the appropriate Release Notes section,
and the correct `release_note:*` label is applied per the
[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
- [x] Review the [backport
guidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing)
and apply applicable `backport:*` labels.

## Release Notes

Fixes a bug where `runtime_mappings` where ignored or overridden in a
Vega spec when defined in `data[].url.body`. Note, the `data[].url.body`
property was deprecated in `kibana@v8.0` and properties moved to
`data[].url`.

---------

Co-authored-by: Tiago Costa <tiago.costa@elastic.co>
(cherry picked from commit 6234793)

# Conflicts:
#	src/platform/plugins/private/vis_types/vega/public/data_model/search_api.test.ts
@nickofthyme nickofthyme deleted the fix-vega-body-params branch February 18, 2026 14:58
@nickofthyme nickofthyme added v9.3.1 v9.2.6 backport:version Backport to applied version labels release_note:fix and removed backport:all-open Backport to all branches that could still receive a release release_note:fix labels Feb 18, 2026
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 9.2, 9.3

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

@kibanamachine
Copy link
Contributor

💔 All backports failed

Status Branch Result
9.2 Backport failed because of merge conflicts
9.3 Backport failed because of merge conflicts

Manual backport

To create the backport manually run:

node scripts/backport --pr 253560

Questions ?

Please refer to the Backport tool documentation

markov00 pushed a commit to markov00/kibana that referenced this pull request Feb 18, 2026
## Summary

Fixes a breaking change caused by upgrading the elasticsearch js client
to `9.x` where we started to ignore the
`data[].url.body.runtime_mappings` in favor of
`data[].url.runtime_mappings`.

Fixes elastic#253545

## Details

In elastic#208776 when upgrading to the `9.x` ES client, we changed the code to
point at the request `params` instead of `params.body`. Specifically
[here](https://github.com/elastic/kibana/pull/208776/changes#diff-fca94e46395fddbb9ba787d8d4eadd9bb236856081a09e02fdc7a8b4217a2be5R31).

```diff
// src/platform/plugins/private/vis_types/vega/public/data_model/search_api.ts
-    let runtimeMappings = requestParams.body.runtime_mappings;
+    let runtimeMappings = requestParams.runtime_mappings;
```

### Checklist

- [ ] [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] This was checked for breaking HTTP API changes, and any breaking
changes have been approved by the breaking-change committee. The
`release_note:breaking` label should be applied in these situations.
- [x] The PR description includes the appropriate Release Notes section,
and the correct `release_note:*` label is applied per the
[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
- [x] Review the [backport
guidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing)
and apply applicable `backport:*` labels.

## Release Notes

Fixes a bug where `runtime_mappings` where ignored or overridden in a
Vega spec when defined in `data[].url.body`. Note, the `data[].url.body`
property was deprecated in `kibana@v8.0` and properties moved to
`data[].url`.

---------

Co-authored-by: Tiago Costa <tiago.costa@elastic.co>
(cherry picked from commit 6234793)

# Conflicts:
#	src/platform/plugins/private/vis_types/vega/public/data_model/search_api.test.ts
markov00 added a commit that referenced this pull request Feb 18, 2026
…253680)

# Backport

This will backport the following commits from `main` to `9.3`:
- [[Vega] Fix `data[].url.body.runtime_mappings` param
(#253560)](#253560)

<!--- Backport version: 10.2.0 -->

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

<!--BACKPORT [{"author":{"name":"Nick
Partridge","email":"nicholas.partridge@elastic.co"},"sourceCommit":{"committedDate":"2026-02-18T08:14:54Z","message":"[Vega]
Fix `data[].url.body.runtime_mappings` param (#253560)\n\n##
Summary\n\nFixes a breaking change caused by upgrading the elasticsearch
js client\nto `9.x` where we started to ignore
the\n`data[].url.body.runtime_mappings` in favor
of\n`data[].url.runtime_mappings`.\n\nFixes #253545\n\n## Details\n\nIn
#208776 when upgrading to the `9.x` ES client, we changed the code
to\npoint at the request `params` instead of `params.body`.
Specifically\n[here](https://github.com/elastic/kibana/pull/208776/changes#diff-fca94e46395fddbb9ba787d8d4eadd9bb236856081a09e02fdc7a8b4217a2be5R31).\n\n```diff\n//
src/platform/plugins/private/vis_types/vega/public/data_model/search_api.ts\n-
let runtimeMappings = requestParams.body.runtime_mappings;\n+ let
runtimeMappings = requestParams.runtime_mappings;\n```\n\n###
Checklist\n\n- [ ] [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- [x] This was
checked for breaking HTTP API changes, and any breaking\nchanges have
been approved by the breaking-change committee.
The\n`release_note:breaking` label should be applied in these
situations.\n- [x] The PR description includes the appropriate Release
Notes section,\nand the correct `release_note:*` label is applied per
the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n-
[x] Review the
[backport\nguidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing)\nand
apply applicable `backport:*` labels.\n\n## Release Notes\n\nFixes a bug
where `runtime_mappings` where ignored or overridden in a\nVega spec
when defined in `data[].url.body`. Note, the `data[].url.body`\nproperty
was deprecated in `kibana@v8.0` and properties moved
to\n`data[].url`.\n\n---------\n\nCo-authored-by: Tiago Costa
<tiago.costa@elastic.co>","sha":"6234793cfc55be88686e28d015a76300b579c29a","branchLabelMapping":{"^v9.4.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","backport:all-open","v9.4.0"],"title":"[Vega]
Fix `data[].url.body.runtime_mappings`
param","number":253560,"url":"https://github.com/elastic/kibana/pull/253560","mergeCommit":{"message":"[Vega]
Fix `data[].url.body.runtime_mappings` param (#253560)\n\n##
Summary\n\nFixes a breaking change caused by upgrading the elasticsearch
js client\nto `9.x` where we started to ignore
the\n`data[].url.body.runtime_mappings` in favor
of\n`data[].url.runtime_mappings`.\n\nFixes #253545\n\n## Details\n\nIn
#208776 when upgrading to the `9.x` ES client, we changed the code
to\npoint at the request `params` instead of `params.body`.
Specifically\n[here](https://github.com/elastic/kibana/pull/208776/changes#diff-fca94e46395fddbb9ba787d8d4eadd9bb236856081a09e02fdc7a8b4217a2be5R31).\n\n```diff\n//
src/platform/plugins/private/vis_types/vega/public/data_model/search_api.ts\n-
let runtimeMappings = requestParams.body.runtime_mappings;\n+ let
runtimeMappings = requestParams.runtime_mappings;\n```\n\n###
Checklist\n\n- [ ] [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- [x] This was
checked for breaking HTTP API changes, and any breaking\nchanges have
been approved by the breaking-change committee.
The\n`release_note:breaking` label should be applied in these
situations.\n- [x] The PR description includes the appropriate Release
Notes section,\nand the correct `release_note:*` label is applied per
the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n-
[x] Review the
[backport\nguidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing)\nand
apply applicable `backport:*` labels.\n\n## Release Notes\n\nFixes a bug
where `runtime_mappings` where ignored or overridden in a\nVega spec
when defined in `data[].url.body`. Note, the `data[].url.body`\nproperty
was deprecated in `kibana@v8.0` and properties moved
to\n`data[].url`.\n\n---------\n\nCo-authored-by: Tiago Costa
<tiago.costa@elastic.co>","sha":"6234793cfc55be88686e28d015a76300b579c29a"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.4.0","branchLabelMappingKey":"^v9.4.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/253560","number":253560,"mergeCommit":{"message":"[Vega]
Fix `data[].url.body.runtime_mappings` param (#253560)\n\n##
Summary\n\nFixes a breaking change caused by upgrading the elasticsearch
js client\nto `9.x` where we started to ignore
the\n`data[].url.body.runtime_mappings` in favor
of\n`data[].url.runtime_mappings`.\n\nFixes #253545\n\n## Details\n\nIn
#208776 when upgrading to the `9.x` ES client, we changed the code
to\npoint at the request `params` instead of `params.body`.
Specifically\n[here](https://github.com/elastic/kibana/pull/208776/changes#diff-fca94e46395fddbb9ba787d8d4eadd9bb236856081a09e02fdc7a8b4217a2be5R31).\n\n```diff\n//
src/platform/plugins/private/vis_types/vega/public/data_model/search_api.ts\n-
let runtimeMappings = requestParams.body.runtime_mappings;\n+ let
runtimeMappings = requestParams.runtime_mappings;\n```\n\n###
Checklist\n\n- [ ] [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- [x] This was
checked for breaking HTTP API changes, and any breaking\nchanges have
been approved by the breaking-change committee.
The\n`release_note:breaking` label should be applied in these
situations.\n- [x] The PR description includes the appropriate Release
Notes section,\nand the correct `release_note:*` label is applied per
the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n-
[x] Review the
[backport\nguidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing)\nand
apply applicable `backport:*` labels.\n\n## Release Notes\n\nFixes a bug
where `runtime_mappings` where ignored or overridden in a\nVega spec
when defined in `data[].url.body`. Note, the `data[].url.body`\nproperty
was deprecated in `kibana@v8.0` and properties moved
to\n`data[].url`.\n\n---------\n\nCo-authored-by: Tiago Costa
<tiago.costa@elastic.co>","sha":"6234793cfc55be88686e28d015a76300b579c29a"}}]}]
BACKPORT-->

---------

Co-authored-by: Nick Partridge <nicholas.partridge@elastic.co>
markov00 added a commit that referenced this pull request Feb 18, 2026
…253787)

# Backport

This will backport the following commits from `main` to `9.2`:
- [[Vega] Fix `data[].url.body.runtime_mappings` param
(#253560)](#253560)

<!--- Backport version: 10.2.0 -->

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

<!--BACKPORT [{"author":{"name":"Nick
Partridge","email":"nicholas.partridge@elastic.co"},"sourceCommit":{"committedDate":"2026-02-18T08:14:54Z","message":"[Vega]
Fix `data[].url.body.runtime_mappings` param (#253560)\n\n##
Summary\n\nFixes a breaking change caused by upgrading the elasticsearch
js client\nto `9.x` where we started to ignore
the\n`data[].url.body.runtime_mappings` in favor
of\n`data[].url.runtime_mappings`.\n\nFixes #253545\n\n## Details\n\nIn
#208776 when upgrading to the `9.x` ES client, we changed the code
to\npoint at the request `params` instead of `params.body`.
Specifically\n[here](https://github.com/elastic/kibana/pull/208776/changes#diff-fca94e46395fddbb9ba787d8d4eadd9bb236856081a09e02fdc7a8b4217a2be5R31).\n\n```diff\n//
src/platform/plugins/private/vis_types/vega/public/data_model/search_api.ts\n-
let runtimeMappings = requestParams.body.runtime_mappings;\n+ let
runtimeMappings = requestParams.runtime_mappings;\n```\n\n###
Checklist\n\n- [ ] [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- [x] This was
checked for breaking HTTP API changes, and any breaking\nchanges have
been approved by the breaking-change committee.
The\n`release_note:breaking` label should be applied in these
situations.\n- [x] The PR description includes the appropriate Release
Notes section,\nand the correct `release_note:*` label is applied per
the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n-
[x] Review the
[backport\nguidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing)\nand
apply applicable `backport:*` labels.\n\n## Release Notes\n\nFixes a bug
where `runtime_mappings` where ignored or overridden in a\nVega spec
when defined in `data[].url.body`. Note, the `data[].url.body`\nproperty
was deprecated in `kibana@v8.0` and properties moved
to\n`data[].url`.\n\n---------\n\nCo-authored-by: Tiago Costa
<tiago.costa@elastic.co>","sha":"6234793cfc55be88686e28d015a76300b579c29a","branchLabelMapping":{"^v9.4.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","backport:all-open","v9.4.0"],"title":"[Vega]
Fix `data[].url.body.runtime_mappings`
param","number":253560,"url":"https://github.com/elastic/kibana/pull/253560","mergeCommit":{"message":"[Vega]
Fix `data[].url.body.runtime_mappings` param (#253560)\n\n##
Summary\n\nFixes a breaking change caused by upgrading the elasticsearch
js client\nto `9.x` where we started to ignore
the\n`data[].url.body.runtime_mappings` in favor
of\n`data[].url.runtime_mappings`.\n\nFixes #253545\n\n## Details\n\nIn
#208776 when upgrading to the `9.x` ES client, we changed the code
to\npoint at the request `params` instead of `params.body`.
Specifically\n[here](https://github.com/elastic/kibana/pull/208776/changes#diff-fca94e46395fddbb9ba787d8d4eadd9bb236856081a09e02fdc7a8b4217a2be5R31).\n\n```diff\n//
src/platform/plugins/private/vis_types/vega/public/data_model/search_api.ts\n-
let runtimeMappings = requestParams.body.runtime_mappings;\n+ let
runtimeMappings = requestParams.runtime_mappings;\n```\n\n###
Checklist\n\n- [ ] [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- [x] This was
checked for breaking HTTP API changes, and any breaking\nchanges have
been approved by the breaking-change committee.
The\n`release_note:breaking` label should be applied in these
situations.\n- [x] The PR description includes the appropriate Release
Notes section,\nand the correct `release_note:*` label is applied per
the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n-
[x] Review the
[backport\nguidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing)\nand
apply applicable `backport:*` labels.\n\n## Release Notes\n\nFixes a bug
where `runtime_mappings` where ignored or overridden in a\nVega spec
when defined in `data[].url.body`. Note, the `data[].url.body`\nproperty
was deprecated in `kibana@v8.0` and properties moved
to\n`data[].url`.\n\n---------\n\nCo-authored-by: Tiago Costa
<tiago.costa@elastic.co>","sha":"6234793cfc55be88686e28d015a76300b579c29a"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.4.0","branchLabelMappingKey":"^v9.4.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/253560","number":253560,"mergeCommit":{"message":"[Vega]
Fix `data[].url.body.runtime_mappings` param (#253560)\n\n##
Summary\n\nFixes a breaking change caused by upgrading the elasticsearch
js client\nto `9.x` where we started to ignore
the\n`data[].url.body.runtime_mappings` in favor
of\n`data[].url.runtime_mappings`.\n\nFixes #253545\n\n## Details\n\nIn
#208776 when upgrading to the `9.x` ES client, we changed the code
to\npoint at the request `params` instead of `params.body`.
Specifically\n[here](https://github.com/elastic/kibana/pull/208776/changes#diff-fca94e46395fddbb9ba787d8d4eadd9bb236856081a09e02fdc7a8b4217a2be5R31).\n\n```diff\n//
src/platform/plugins/private/vis_types/vega/public/data_model/search_api.ts\n-
let runtimeMappings = requestParams.body.runtime_mappings;\n+ let
runtimeMappings = requestParams.runtime_mappings;\n```\n\n###
Checklist\n\n- [ ] [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- [x] This was
checked for breaking HTTP API changes, and any breaking\nchanges have
been approved by the breaking-change committee.
The\n`release_note:breaking` label should be applied in these
situations.\n- [x] The PR description includes the appropriate Release
Notes section,\nand the correct `release_note:*` label is applied per
the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n-
[x] Review the
[backport\nguidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing)\nand
apply applicable `backport:*` labels.\n\n## Release Notes\n\nFixes a bug
where `runtime_mappings` where ignored or overridden in a\nVega spec
when defined in `data[].url.body`. Note, the `data[].url.body`\nproperty
was deprecated in `kibana@v8.0` and properties moved
to\n`data[].url`.\n\n---------\n\nCo-authored-by: Tiago Costa
<tiago.costa@elastic.co>","sha":"6234793cfc55be88686e28d015a76300b579c29a"}}]}]
BACKPORT-->

Co-authored-by: Nick Partridge <nicholas.partridge@elastic.co>
@elastic elastic deleted a comment from kibanamachine Feb 18, 2026
@elastic elastic deleted a comment from kibanamachine Feb 18, 2026
patrykkopycinski pushed a commit to patrykkopycinski/kibana that referenced this pull request Feb 19, 2026
## Summary

Fixes a breaking change caused by upgrading the elasticsearch js client
to `9.x` where we started to ignore the
`data[].url.body.runtime_mappings` in favor of
`data[].url.runtime_mappings`.

Fixes elastic#253545

## Details

In elastic#208776 when upgrading to the `9.x` ES client, we changed the code to
point at the request `params` instead of `params.body`. Specifically
[here](https://github.com/elastic/kibana/pull/208776/changes#diff-fca94e46395fddbb9ba787d8d4eadd9bb236856081a09e02fdc7a8b4217a2be5R31).

```diff
// src/platform/plugins/private/vis_types/vega/public/data_model/search_api.ts
-    let runtimeMappings = requestParams.body.runtime_mappings;
+    let runtimeMappings = requestParams.runtime_mappings;
```

### Checklist

- [ ] [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] This was checked for breaking HTTP API changes, and any breaking
changes have been approved by the breaking-change committee. The
`release_note:breaking` label should be applied in these situations.
- [x] The PR description includes the appropriate Release Notes section,
and the correct `release_note:*` label is applied per the
[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
- [x] Review the [backport
guidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing)
and apply applicable `backport:*` labels.

## Release Notes

Fixes a bug where `runtime_mappings` where ignored or overridden in a
Vega spec when defined in `data[].url.body`. Note, the `data[].url.body`
property was deprecated in `kibana@v8.0` and properties moved to
`data[].url`.

---------

Co-authored-by: Tiago Costa <tiago.costa@elastic.co>
ersin-erdal pushed a commit to ersin-erdal/kibana that referenced this pull request Feb 19, 2026
## Summary

Fixes a breaking change caused by upgrading the elasticsearch js client
to `9.x` where we started to ignore the
`data[].url.body.runtime_mappings` in favor of
`data[].url.runtime_mappings`.

Fixes elastic#253545

## Details

In elastic#208776 when upgrading to the `9.x` ES client, we changed the code to
point at the request `params` instead of `params.body`. Specifically
[here](https://github.com/elastic/kibana/pull/208776/changes#diff-fca94e46395fddbb9ba787d8d4eadd9bb236856081a09e02fdc7a8b4217a2be5R31).

```diff
// src/platform/plugins/private/vis_types/vega/public/data_model/search_api.ts
-    let runtimeMappings = requestParams.body.runtime_mappings;
+    let runtimeMappings = requestParams.runtime_mappings;
```

### Checklist

- [ ] [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] This was checked for breaking HTTP API changes, and any breaking
changes have been approved by the breaking-change committee. The
`release_note:breaking` label should be applied in these situations.
- [x] The PR description includes the appropriate Release Notes section,
and the correct `release_note:*` label is applied per the
[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
- [x] Review the [backport
guidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing)
and apply applicable `backport:*` labels.

## Release Notes

Fixes a bug where `runtime_mappings` where ignored or overridden in a
Vega spec when defined in `data[].url.body`. Note, the `data[].url.body`
property was deprecated in `kibana@v8.0` and properties moved to
`data[].url`.

---------

Co-authored-by: Tiago Costa <tiago.costa@elastic.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

5 participants