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

[Canvas] My panels are stack and I can't work on my canvas #199110

Closed
stratoula opened this issue Nov 6, 2024 · 3 comments · Fixed by #199211
Closed

[Canvas] My panels are stack and I can't work on my canvas #199110

stratoula opened this issue Nov 6, 2024 · 3 comments · Fixed by #199211
Assignees
Labels
bug Fixes for quality problems that affect the customer experience Feature:Canvas impact:high Addressing this issue will have a high level of impact on the quality/strength of our product. regression Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas

Comments

@stratoula
Copy link
Contributor

Kibana version:
main but def on previous versions (v8.16 for sure)

Describe the bug:
I add 2 panels, one is Lens from library, one by value. They are stacked and I cant work with them

Image

@stratoula stratoula added the bug Fixes for quality problems that affect the customer experience label Nov 6, 2024
@botelastic botelastic bot added the needs-team Issues missing a team label label Nov 6, 2024
@stratoula stratoula added Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas impact:high Addressing this issue will have a high level of impact on the quality/strength of our product. Feature:Canvas and removed needs-team Issues missing a team label labels Nov 6, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-presentation (Team:Presentation)

@stratoula
Copy link
Contributor Author

I consider it a high impact bug (although canvas is legacy) but you can adjust as you want as you are the app owners

@nickpeihl
Copy link
Member

This appears to be an unintended bug introduced in #194634. I've compared the commit from that PR with the previous commit and I'm not seeing this happen in earlier commits. cc @Heenawter

@Heenawter Heenawter self-assigned this Nov 6, 2024
kibanamachine pushed a commit to kibanamachine/kibana that referenced this issue Nov 6, 2024
Closes elastic#199110

## Summary

In elastic#194634, we switched to
hard-coded strings for the reducers to prevent an import circular
dependency - see
https://github.com/elastic/kibana/pull/194634/files#diff-12e4182415d9eb779aadf492d2b777393e2794c7ac2eb39c48310ab6493ab233L115-R120
for the relevant change.

What we didn't realize at the time, however, is that there was actually
a typo in the original creation of the set position action - the
`actionType` was set to the singular `setMultiplePosition` rather than
`setMultiplePositions`, so there was actually **no** reducer tied to the
`setMultiplePositions` action type after our change - i.e. the reducer
map was expecting `setMultiplePosition` and did nothing for
`setMultiplePositions`. By changing the `actionType` to the proper
plural `setMultiplePositions`, the reducer map now has a match, so the
reducer gets called as expected.

| Before | After |
|--------|--------|
| ![Nov-06-2024
14-04-37](https://github.com/user-attachments/assets/627a3fee-2835-446a-b949-f44632d797d3)
| ![Nov-06-2024
14-05-19](https://github.com/user-attachments/assets/f0baed94-3858-47b7-b979-7f27deb50b08)
|

I looked through the other changes we made to reducer map keys, and
every `actionType` defined via `createAction` seems to have a matching
reducer map key - so this appears to be a one-off 🙈

### Checklist

- [x] This was checked for [cross-browser
compatibility](https://www.elastic.co/support/matrix#matrix_browsers)

### For maintainers

- [ ] This was checked for breaking API changes and was [labeled
appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#_add_your_labels)
- [ ] This will appear in the **Release Notes** and follow the
[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)

(cherry picked from commit 1fa3089)
kibanamachine pushed a commit to kibanamachine/kibana that referenced this issue Nov 6, 2024
Closes elastic#199110

## Summary

In elastic#194634, we switched to
hard-coded strings for the reducers to prevent an import circular
dependency - see
https://github.com/elastic/kibana/pull/194634/files#diff-12e4182415d9eb779aadf492d2b777393e2794c7ac2eb39c48310ab6493ab233L115-R120
for the relevant change.

What we didn't realize at the time, however, is that there was actually
a typo in the original creation of the set position action - the
`actionType` was set to the singular `setMultiplePosition` rather than
`setMultiplePositions`, so there was actually **no** reducer tied to the
`setMultiplePositions` action type after our change - i.e. the reducer
map was expecting `setMultiplePosition` and did nothing for
`setMultiplePositions`. By changing the `actionType` to the proper
plural `setMultiplePositions`, the reducer map now has a match, so the
reducer gets called as expected.

| Before | After |
|--------|--------|
| ![Nov-06-2024
14-04-37](https://github.com/user-attachments/assets/627a3fee-2835-446a-b949-f44632d797d3)
| ![Nov-06-2024
14-05-19](https://github.com/user-attachments/assets/f0baed94-3858-47b7-b979-7f27deb50b08)
|

I looked through the other changes we made to reducer map keys, and
every `actionType` defined via `createAction` seems to have a matching
reducer map key - so this appears to be a one-off 🙈

### Checklist

- [x] This was checked for [cross-browser
compatibility](https://www.elastic.co/support/matrix#matrix_browsers)

### For maintainers

- [ ] This was checked for breaking API changes and was [labeled
appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#_add_your_labels)
- [ ] This will appear in the **Release Notes** and follow the
[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)

(cherry picked from commit 1fa3089)
mgadewoll pushed a commit to mgadewoll/kibana that referenced this issue Nov 7, 2024
Closes elastic#199110

## Summary

In elastic#194634, we switched to
hard-coded strings for the reducers to prevent an import circular
dependency - see
https://github.com/elastic/kibana/pull/194634/files#diff-12e4182415d9eb779aadf492d2b777393e2794c7ac2eb39c48310ab6493ab233L115-R120
for the relevant change.

What we didn't realize at the time, however, is that there was actually
a typo in the original creation of the set position action - the
`actionType` was set to the singular `setMultiplePosition` rather than
`setMultiplePositions`, so there was actually **no** reducer tied to the
`setMultiplePositions` action type after our change - i.e. the reducer
map was expecting `setMultiplePosition` and did nothing for
`setMultiplePositions`. By changing the `actionType` to the proper
plural `setMultiplePositions`, the reducer map now has a match, so the
reducer gets called as expected.

| Before | After |
|--------|--------|
| ![Nov-06-2024
14-04-37](https://github.com/user-attachments/assets/627a3fee-2835-446a-b949-f44632d797d3)
| ![Nov-06-2024
14-05-19](https://github.com/user-attachments/assets/f0baed94-3858-47b7-b979-7f27deb50b08)
|

I looked through the other changes we made to reducer map keys, and
every `actionType` defined via `createAction` seems to have a matching
reducer map key - so this appears to be a one-off 🙈

### Checklist

- [x] This was checked for [cross-browser
compatibility](https://www.elastic.co/support/matrix#matrix_browsers)

### For maintainers

- [ ] This was checked for breaking API changes and was [labeled
appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#_add_your_labels)
- [ ] This will appear in the **Release Notes** and follow the
[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience Feature:Canvas impact:high Addressing this issue will have a high level of impact on the quality/strength of our product. regression Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants