Skip to content
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

Merged
merged 3 commits into from
Oct 8, 2024

Conversation

markov00
Copy link
Member

@markov00 markov00 commented Oct 7, 2024

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 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

@markov00 markov00 added Team:Visualizations Visualization editors, elastic-charts and infrastructure release_note:skip Skip the PR/issue when compiling release notes backport:prev-minor Backport to (8.x) the previous minor version (i.e. one version back from main) labels Oct 7, 2024
@markov00 markov00 force-pushed the 2024_10_07-fix_partition_theme_mini branch from 7feaa79 to 13dfdce Compare October 7, 2024 14:42
@markov00 markov00 force-pushed the 2024_10_07-fix_partition_theme_mini branch from 9efaaaf to 830f48c Compare October 7, 2024 14:57
@kibana-ci
Copy link
Collaborator

💛 Build succeeded, but was flaky

Failed CI Steps

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
expressionPartitionVis 35.9KB 35.6KB -322.0B

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@markov00 markov00 marked this pull request as ready for review October 7, 2024 16:51
@markov00 markov00 requested a review from a team as a code owner October 7, 2024 16:51
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-visualizations (Team:Visualizations)

Copy link
Contributor

@nickofthyme nickofthyme left a comment

Choose a reason for hiding this comment

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

LGTM! :shipit:

@elasticmachine
Copy link
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

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
expressionPartitionVis 35.9KB 35.5KB -398.0B

@markov00 markov00 merged commit 653073f into elastic:main Oct 8, 2024
28 checks passed
@markov00 markov00 deleted the 2024_10_07-fix_partition_theme_mini branch October 8, 2024 16:57
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.x

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

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Oct 8, 2024
## 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)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.x

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

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Oct 8, 2024
# 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:prev-minor Backport to (8.x) the previous minor version (i.e. one version back from main) release_note:skip Skip the PR/issue when compiling release notes Team:Visualizations Visualization editors, elastic-charts and infrastructure v8.16.0 v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Lens] Border color between slices in Piecharts looks wrong
5 participants