Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
# Backport This will backport the following commits from `main` to `8.15`: - [[Lens] Fix multi-value formatting for metric (#187982)](#187982) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Marco Liberati","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-07-11T08:20:17Z","message":"[Lens] Fix multi-value formatting for metric (#187982)\n\n## Summary\r\n\r\nFixes #187968\r\n\r\nIt avoids the default JSON stringify behaviour around formatted values\r\nin multi-values scenarios for the new Metric chart type\r\n\r\n\r\n<img width=\"1504\" alt=\"Screenshot 2024-07-10 at 15 28 23\"\r\nsrc=\"https://github.com/elastic/kibana/assets/924948/c52c5c5c-3004-4a3f-bdbf-612fdedd853a\">\r\n\r\nAdded also a couple of unit tests to spot regressions in the area.\r\n\r\n### Checklist\r\n\r\n- [x] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios","sha":"61de0b022b4a9a515c9b1da8940130a9243aaa4b","branchLabelMapping":{"^v8.16.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Visualizations","release_note:skip","Feature:Lens","backport:prev-minor","v8.15.0","v8.16.0"],"title":"[Lens] Fix multi-value formatting for metric","number":187982,"url":"https://github.com/elastic/kibana/pull/187982","mergeCommit":{"message":"[Lens] Fix multi-value formatting for metric (#187982)\n\n## Summary\r\n\r\nFixes #187968\r\n\r\nIt avoids the default JSON stringify behaviour around formatted values\r\nin multi-values scenarios for the new Metric chart type\r\n\r\n\r\n<img width=\"1504\" alt=\"Screenshot 2024-07-10 at 15 28 23\"\r\nsrc=\"https://github.com/elastic/kibana/assets/924948/c52c5c5c-3004-4a3f-bdbf-612fdedd853a\">\r\n\r\nAdded also a couple of unit tests to spot regressions in the area.\r\n\r\n### Checklist\r\n\r\n- [x] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios","sha":"61de0b022b4a9a515c9b1da8940130a9243aaa4b"}},"sourceBranch":"main","suggestedTargetBranches":["8.15"],"targetPullRequestStates":[{"branch":"8.15","label":"v8.15.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.16.0","branchLabelMappingKey":"^v8.16.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/187982","number":187982,"mergeCommit":{"message":"[Lens] Fix multi-value formatting for metric (#187982)\n\n## Summary\r\n\r\nFixes #187968\r\n\r\nIt avoids the default JSON stringify behaviour around formatted values\r\nin multi-values scenarios for the new Metric chart type\r\n\r\n\r\n<img width=\"1504\" alt=\"Screenshot 2024-07-10 at 15 28 23\"\r\nsrc=\"https://github.com/elastic/kibana/assets/924948/c52c5c5c-3004-4a3f-bdbf-612fdedd853a\">\r\n\r\nAdded also a couple of unit tests to spot regressions in the area.\r\n\r\n### Checklist\r\n\r\n- [x] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios","sha":"61de0b022b4a9a515c9b1da8940130a9243aaa4b"}}]}] BACKPORT--> Co-authored-by: Marco Liberati <[email protected]>
- Loading branch information