Skip to content

[9.4] [Lens as code] Fix format visibility for last_value non-numeric dimensions (#263810)#264395

Merged
kibanamachine merged 1 commit intoelastic:9.4from
kibanamachine:backport/9.4/pr-263810
Apr 20, 2026
Merged

[9.4] [Lens as code] Fix format visibility for last_value non-numeric dimensions (#263810)#264395
kibanamachine merged 1 commit intoelastic:9.4from
kibanamachine:backport/9.4/pr-263810

Conversation

@kibanamachine
Copy link
Copy Markdown
Contributor

Backport

This will backport the following commits from main to 9.4:

Questions ?

Please refer to the Backport tool documentation

…ensions (elastic#263810)

## Summary

Fix elastic#263793

This PR aligns inline Lens dimension editor formatting for API-created
charts with UI behavior by skipping `format` display when `last_value`
uses a non-numeric field

https://github.com/user-attachments/assets/beaaec55-5300-4a62-9170-ff7cd7d6d610

### Checklist

Check the PR satisfies following conditions.

Reviewers should verify this PR satisfies this list as well.

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [x] The PR description includes the appropriate Release Notes section,
and the correct `release_note:*` label is applied per the
[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
- [x] Review the [backport
guidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing)
and apply applicable `backport:*` labels.

(cherry picked from commit 8ddda6a)
@kibanamachine kibanamachine merged commit 6015816 into elastic:9.4 Apr 20, 2026
19 checks passed
@elasticmachine
Copy link
Copy Markdown
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] Jest Integration Tests #5 / workflow with wait step when duration is short should have correct workflow duration

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
lens 2.0MB 2.0MB +237.0B

cc @andrimal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants