-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Lens] Fix partition theme after ech upgrade #195269
[Lens] Fix partition theme after ech upgrade #195269
Conversation
7feaa79
to
13dfdce
Compare
9efaaaf
to
830f48c
Compare
💛 Build succeeded, but was flaky
Failed CI StepsMetrics [docs]Async chunks
To update your PR or re-run it, just comment with: |
Pinging @elastic/kibana-visualizations (Team:Visualizations) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
src/plugins/chart_expressions/expression_partition_vis/public/utils/get_partition_theme.ts
Outdated
Show resolved
Hide resolved
💛 Build succeeded, but was flaky
Failed CI StepsMetrics [docs]Async chunks
|
Starting backport for target branches: 8.x |
## Summary When I've updated elastic-charts with the last new version, the `point.fill` parameter of lineSeriesStyle has changed in value. This created an unwanted change also in the partition chart that was using that style to color the partition sector borders. I've removed the useless color override of `sectorLineStroke` in the overwrite partition theme, leaving the control to use the chart theme. I've also removed the possibility of unwanted changes for other properties like `fontFamily` and in the `linkedText.textColor`. In the same PR I've removed duplicated tests that where testing exactly the same code/arguments/data, the only difference was the test name. I've also refactored a bit the code, cleaning up the typings and consolidating a bit the theme override logic (cherry picked from commit 653073f)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
# Backport This will backport the following commits from `main` to `8.x`: - [[Lens] Fix partition theme after ech upgrade (#195269)](#195269) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Marco Vettorello","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-10-08T16:57:23Z","message":"[Lens] Fix partition theme after ech upgrade (#195269)\n\n## Summary\r\n\r\nWhen I've updated elastic-charts with the last new version, the\r\n`point.fill` parameter of lineSeriesStyle has changed in value. This\r\ncreated an unwanted change also in the partition chart that was using\r\nthat style to color the partition sector borders.\r\n\r\nI've removed the useless color override of `sectorLineStroke` in the\r\noverwrite partition theme, leaving the control to use the chart theme.\r\n\r\nI've also removed the possibility of unwanted changes for other\r\nproperties like `fontFamily` and in the `linkedText.textColor`.\r\n\r\nIn the same PR I've removed duplicated tests that where testing exactly\r\nthe same code/arguments/data, the only difference was the test name.\r\n\r\nI've also refactored a bit the code, cleaning up the typings and\r\nconsolidating a bit the theme override logic","sha":"653073f8c6d199b069830c3acc13fb0c6664e9d8","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Visualizations","release_note:skip","v9.0.0","backport:prev-minor"],"title":"[Lens] Fix partition theme after ech upgrade","number":195269,"url":"https://github.com/elastic/kibana/pull/195269","mergeCommit":{"message":"[Lens] Fix partition theme after ech upgrade (#195269)\n\n## Summary\r\n\r\nWhen I've updated elastic-charts with the last new version, the\r\n`point.fill` parameter of lineSeriesStyle has changed in value. This\r\ncreated an unwanted change also in the partition chart that was using\r\nthat style to color the partition sector borders.\r\n\r\nI've removed the useless color override of `sectorLineStroke` in the\r\noverwrite partition theme, leaving the control to use the chart theme.\r\n\r\nI've also removed the possibility of unwanted changes for other\r\nproperties like `fontFamily` and in the `linkedText.textColor`.\r\n\r\nIn the same PR I've removed duplicated tests that where testing exactly\r\nthe same code/arguments/data, the only difference was the test name.\r\n\r\nI've also refactored a bit the code, cleaning up the typings and\r\nconsolidating a bit the theme override logic","sha":"653073f8c6d199b069830c3acc13fb0c6664e9d8"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/195269","number":195269,"mergeCommit":{"message":"[Lens] Fix partition theme after ech upgrade (#195269)\n\n## Summary\r\n\r\nWhen I've updated elastic-charts with the last new version, the\r\n`point.fill` parameter of lineSeriesStyle has changed in value. This\r\ncreated an unwanted change also in the partition chart that was using\r\nthat style to color the partition sector borders.\r\n\r\nI've removed the useless color override of `sectorLineStroke` in the\r\noverwrite partition theme, leaving the control to use the chart theme.\r\n\r\nI've also removed the possibility of unwanted changes for other\r\nproperties like `fontFamily` and in the `linkedText.textColor`.\r\n\r\nIn the same PR I've removed duplicated tests that where testing exactly\r\nthe same code/arguments/data, the only difference was the test name.\r\n\r\nI've also refactored a bit the code, cleaning up the typings and\r\nconsolidating a bit the theme override logic","sha":"653073f8c6d199b069830c3acc13fb0c6664e9d8"}}]}] BACKPORT--> Co-authored-by: Marco Vettorello <[email protected]>
Summary
fix #195197
When I've updated elastic-charts with the last new version, the
point.fill
parameter of lineSeriesStyle has changed in value. This created an unwanted change also in the partition chart that was using that style to color the partition sector borders.I've removed the useless color override of
sectorLineStroke
in the overwrite partition theme, leaving the control to use the chart theme.I've also removed the possibility of unwanted changes for other properties like
fontFamily
and in thelinkedText.textColor
.In the same PR I've removed duplicated tests that where testing exactly the same code/arguments/data, the only difference was the test name.
I've also refactored a bit the code, cleaning up the typings and consolidating a bit the theme override logic