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] Disable config axis side and color picker when groupid is breakdown and collaseFn enable #195845

Merged

Conversation

linghaoSu
Copy link
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
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 Visualization editors, elastic-charts and infrastructure Feature:Lens backport:skip This commit does not require backporting v8.16.0 labels Oct 11, 2024
@elasticmachine
Copy link
Contributor

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

@mbondyra
Copy link
Contributor

/ci

@elasticmachine
Copy link
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
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
20 checks passed
@linghaoSu linghaoSu deleted the fix/breakdown-include-axis-side-config branch October 14, 2024 07:58
@JordanSh JordanSh added backport:prev-minor Backport to (8.x) the previous minor version (i.e. one version back from main) and removed backport:skip This commit does not require backporting labels Oct 15, 2024
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.x

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

@JordanSh
Copy link
Contributor

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

@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 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":"[email protected]"},"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
<[email protected]>\r\nCo-authored-by: Nick
Partridge
<[email protected]>","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
<[email protected]>\r\nCo-authored-by: Nick
Partridge
<[email protected]>","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
<[email protected]>\r\nCo-authored-by: Nick
Partridge
<[email protected]>","sha":"4c4cb1e1678130c300c93e00061f0478047aff28"}},{"branch":"8.x","label":"v8.16.0","branchLabelMappingKey":"^v8.16.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Linghao Su <[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) 💝community Feature:Lens release_note:fix 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] Axis setting visible under Breakdown dimension
6 participants