Skip to content

[Lens] Disable config axis side and color picker when groupid is breakdown and collaseFn enable#195845

Merged
mbondyra merged 4 commits intoelastic:mainfrom
linghaoSu:fix/breakdown-include-axis-side-config
Oct 14, 2024
Merged

[Lens] Disable config axis side and color picker when groupid is breakdown and collaseFn enable#195845
mbondyra merged 4 commits intoelastic:mainfrom
linghaoSu:fix/breakdown-include-axis-side-config

Conversation

@linghaoSu
Copy link
Copy Markdown
Contributor

@linghaoSu linghaoSu commented Oct 11, 2024

Summary

Fixes #195481

For XY charts only, when opening the breakdown dimension editor, we disable the color picker and axis side configuration.

Before

image

After

image
image

20241011-123913.mp4

@linghaoSu linghaoSu requested a review from a team as a code owner October 11, 2024 04:42
Copy link
Copy Markdown
Contributor

@mbondyra mbondyra left a comment

Choose a reason for hiding this comment

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

Thank you for your contribution @linghaoSu! I've added a test to this usecase and I think we're good to go 🎉

@mbondyra mbondyra added release_note:fix Team:Visualizations Team label for Lens, elastic-charts, Graph, legacy editors (TSVB, Visualize, Timelion) t// Feature:Lens backport:skip This PR does not require backporting v8.16.0 labels Oct 11, 2024
@elasticmachine
Copy link
Copy Markdown
Contributor

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

@mbondyra
Copy link
Copy Markdown
Contributor

/ci

@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

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 1.5MB 1.5MB +3.0B

@linghaoSu
Copy link
Copy Markdown
Contributor Author

Hi @mbondyra, thanks for your review!

It looks like the CI task 'buildkite/docs-build-pr' hasn't started yet, and I don't have the permission to start it. Could you help me get it started?

@mbondyra mbondyra merged commit 4c4cb1e into elastic:main Oct 14, 2024
@linghaoSu linghaoSu deleted the fix/breakdown-include-axis-side-config branch October 14, 2024 07:58
@JordanSh JordanSh added backport:prev-minor and removed backport:skip This PR does not require backporting labels Oct 15, 2024
@kibanamachine
Copy link
Copy Markdown
Contributor

Starting backport for target branches: 8.x

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

@JordanSh
Copy link
Copy Markdown
Contributor

Added the correct backport label to initiate the process as this PR was blocking me from backporting: #196025

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Oct 15, 2024
…kdown and collaseFn enable (elastic#195845)

## Summary
Fixes elastic#195481

For XY charts only, when opening the breakdown dimension editor, we
disable the color picker and axis side configuration.

## Before

![image](https://github.com/user-attachments/assets/62f03481-45aa-402c-8d53-d30a8b02d11c)

## After

![image](https://github.com/user-attachments/assets/f48abdca-ab3f-40bb-b9fa-8266416b915c)

![image](https://github.com/user-attachments/assets/c0f62b62-b9ef-4fe4-917f-77246fd0066b)

https://github.com/user-attachments/assets/05ee0e8e-713b-4eb3-a1ef-bf7418226409

---------

Co-authored-by: Marta Bondyra <4283304+mbondyra@users.noreply.github.com>
Co-authored-by: Nick Partridge <nicholas.partridge@elastic.co>
(cherry picked from commit 4c4cb1e)
@kibanamachine
Copy link
Copy Markdown
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 15, 2024
…s breakdown and collaseFn enable (#195845) (#196247)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[Lens] Disable config axis side and color picker when groupid is
breakdown and collaseFn enable
(#195845)](#195845)

<!--- Backport version: 9.4.3 -->

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

<!--BACKPORT [{"author":{"name":"Linghao
Su","email":"linghao.su@daocloud.io"},"sourceCommit":{"committedDate":"2024-10-14T07:54:11Z","message":"[Lens]
Disable config axis side and color picker when groupid is breakdown and
collaseFn enable (#195845)\n\n## Summary\r\nFixes
https://github.com/elastic/kibana/issues/195481\r\n\r\nFor XY charts
only, when opening the breakdown dimension editor, we\r\ndisable the
color picker and axis side configuration.\r\n\r\n##
Before\r\n\r\n\r\n![image](https://github.com/user-attachments/assets/62f03481-45aa-402c-8d53-d30a8b02d11c)\r\n\r\n##
After\r\n\r\n\r\n![image](https://github.com/user-attachments/assets/f48abdca-ab3f-40bb-b9fa-8266416b915c)\r\n\r\n![image](https://github.com/user-attachments/assets/c0f62b62-b9ef-4fe4-917f-77246fd0066b)\r\n\r\n\r\nhttps://github.com/user-attachments/assets/05ee0e8e-713b-4eb3-a1ef-bf7418226409\r\n\r\n---------\r\n\r\nCo-authored-by:
Marta Bondyra
<4283304+mbondyra@users.noreply.github.com>\r\nCo-authored-by: Nick
Partridge
<nicholas.partridge@elastic.co>","sha":"4c4cb1e1678130c300c93e00061f0478047aff28","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team:Visualizations","Feature:Lens","💝community","v9.0.0","backport:prev-minor","v8.16.0"],"title":"[Lens]
Disable config axis side and color picker when groupid is breakdown and
collaseFn
enable","number":195845,"url":"https://github.com/elastic/kibana/pull/195845","mergeCommit":{"message":"[Lens]
Disable config axis side and color picker when groupid is breakdown and
collaseFn enable (#195845)\n\n## Summary\r\nFixes
https://github.com/elastic/kibana/issues/195481\r\n\r\nFor XY charts
only, when opening the breakdown dimension editor, we\r\ndisable the
color picker and axis side configuration.\r\n\r\n##
Before\r\n\r\n\r\n![image](https://github.com/user-attachments/assets/62f03481-45aa-402c-8d53-d30a8b02d11c)\r\n\r\n##
After\r\n\r\n\r\n![image](https://github.com/user-attachments/assets/f48abdca-ab3f-40bb-b9fa-8266416b915c)\r\n\r\n![image](https://github.com/user-attachments/assets/c0f62b62-b9ef-4fe4-917f-77246fd0066b)\r\n\r\n\r\nhttps://github.com/user-attachments/assets/05ee0e8e-713b-4eb3-a1ef-bf7418226409\r\n\r\n---------\r\n\r\nCo-authored-by:
Marta Bondyra
<4283304+mbondyra@users.noreply.github.com>\r\nCo-authored-by: Nick
Partridge
<nicholas.partridge@elastic.co>","sha":"4c4cb1e1678130c300c93e00061f0478047aff28"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/195845","number":195845,"mergeCommit":{"message":"[Lens]
Disable config axis side and color picker when groupid is breakdown and
collaseFn enable (#195845)\n\n## Summary\r\nFixes
https://github.com/elastic/kibana/issues/195481\r\n\r\nFor XY charts
only, when opening the breakdown dimension editor, we\r\ndisable the
color picker and axis side configuration.\r\n\r\n##
Before\r\n\r\n\r\n![image](https://github.com/user-attachments/assets/62f03481-45aa-402c-8d53-d30a8b02d11c)\r\n\r\n##
After\r\n\r\n\r\n![image](https://github.com/user-attachments/assets/f48abdca-ab3f-40bb-b9fa-8266416b915c)\r\n\r\n![image](https://github.com/user-attachments/assets/c0f62b62-b9ef-4fe4-917f-77246fd0066b)\r\n\r\n\r\nhttps://github.com/user-attachments/assets/05ee0e8e-713b-4eb3-a1ef-bf7418226409\r\n\r\n---------\r\n\r\nCo-authored-by:
Marta Bondyra
<4283304+mbondyra@users.noreply.github.com>\r\nCo-authored-by: Nick
Partridge
<nicholas.partridge@elastic.co>","sha":"4c4cb1e1678130c300c93e00061f0478047aff28"}},{"branch":"8.x","label":"v8.16.0","branchLabelMappingKey":"^v8.16.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Linghao Su <linghao.su@daocloud.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

💝community Feature:Lens release_note:fix Team:Visualizations Team label for Lens, elastic-charts, Graph, legacy editors (TSVB, Visualize, Timelion) t// v8.16.0 v9.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Lens] Axis setting visible under Breakdown dimension

6 participants