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

Can't remove panel containing missing visualization from dashboard #16305

Closed
cjcenizal opened this issue Jan 26, 2018 · 9 comments · Fixed by #17214
Closed

Can't remove panel containing missing visualization from dashboard #16305

cjcenizal opened this issue Jan 26, 2018 · 9 comments · Fixed by #17214
Labels
bug Fixes for quality problems that affect the customer experience

Comments

@cjcenizal
Copy link
Contributor

cjcenizal commented Jan 26, 2018

If a panel is really narrow and the visualization is deleted, then a) the context menu gets cropped off and unusable and b) the panel can't be dragged wider or moved.

CC @elastic/kibana-sharing

image

@cjcenizal cjcenizal added bug Fixes for quality problems that affect the customer experience :Sharing labels Jan 26, 2018
@chrisdavies
Copy link
Contributor

Hm. Just reproduced this.

It seems to me this is really a few separate issues:

  • If you delete a visualization, there's no point to keeping the panels around, so a "cascade delete" seems like the right behavior
  • The fly-out menu should intelligently position itself based on where it is on the screen.
  • Panels should probably have overflow auto to avoid this:

image

@chrisdavies
Copy link
Contributor

I'm going with a simple z-index CSS fix for now. Hopefully no adverse side effects!

@stacey-gammon
Copy link
Contributor

Sounds good! Are you also not able to resize the panel when this happens? If so, that sounds like a bug too.

If you delete a visualization, there's no point to keeping the panels around, so a "cascade delete" seems like the right behavior

I think we should give the option of this. This issue is somewhat relevant: #16912. A great improvement would be to show a list of objects that reference this one, and give the option to possibly delete. We probably don't want this to be automatic because deleting the whole panel would change the layout of the dashboard, so users may want to go in and re-arrange the layout. So a natural step is probably first to remove from all dashboards, then to go and delete the visualization.

The fly-out menu should intelligently position itself based on where it is on the screen.

++

Panels should probably have overflow auto to avoid this:

++

chrisdavies pushed a commit to chrisdavies/kibana that referenced this issue Mar 7, 2018
This prevents context-menus from displaying behind the sidbar.

Fixes elastic#16305
@chrisdavies
Copy link
Contributor

Debating on whether to fix this independently and log those other scenarios separately. The flyout may be positioning itself correctly, as it looks fine now that I have the z-index fix in place. Also, this is tricky to test, since the menu was clickable even with the bug in place. So, I'm leaving off tests for now.

chrisdavies added a commit that referenced this issue Mar 8, 2018
This prevents context-menus from displaying behind the sidbar.

Fixes #16305
chrisdavies added a commit to chrisdavies/kibana that referenced this issue Mar 8, 2018
This prevents context-menus from displaying behind the sidbar.

Fixes elastic#16305
@cjcenizal
Copy link
Contributor Author

@chrisdavies Your PR fixed the problem with the content menu, but I think the problem with resizing and removing the panel still exists right? If so, could you create new tickets to encapsulate those issues and cross-link to this one?

chrisdavies added a commit that referenced this issue Mar 8, 2018
This prevents context-menus from displaying behind the sidbar.

Fixes #16305
@chrisdavies
Copy link
Contributor

chrisdavies commented Mar 12, 2018 via email

@chrisdavies
Copy link
Contributor

chrisdavies commented Mar 12, 2018

@cjcenizal Following up on this, now that I'm wheels down again.

I can't reproduce this issue any longer now that the z-index is fixed. What browser are you using to repro it? I can resize and delete, and even the text overflow that I mentioned no longer seems to reproduce.

@cjcenizal
Copy link
Contributor Author

Ahh the mystery deepens... I'm on OS X and I can repro error on Chrome, but not on Firefox or Safari. So it looks like this is a Chrome bug.

@chrisdavies
Copy link
Contributor

Hm. It deepens, indeed. I'm also on OS X, using Chrome, and I can delete, resize, etc in the given scenario. I'm going to just reopen this. I'm at x-school this week, so dunno if I'll be able to take much of a look until next week. We shall see!

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
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants