-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
show error if trying unpublished query in alert or dashboard #2765
Conversation
This pull request is automatically deployed with Now. To access deployments, click Details below or on the icon next to each push. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Letting the user select these queries but then show them an error is a frustrating experience. How about we show them disabled (so they can't be selected) with a text mentioning they need to be published first?
Thanks @arikfr! I had thought about filtering them out of search results but I thought that would cause bug reports when queries the user knew existed didn't show up as expected. I had also thought about text but thought that would clutter the interface. I love the disabled with text in the dropdown idea. Here is what it looks like for alerts - please let me know you think. |
🤔not happy about different styles in how it's presented. @kocsmy do you have any thoughts? |
I don't think this is bad but maybe it could be improved by
Shall we just merge this as it is and I'll further improve? |
@kocsmy I have been able to restyle the disabled state locally but am not having any luck on the hovered active item. |
@alison985 Could you push your changes for the disabled state here please? @kocsmy Would you mind elaborating what hovered active items should look like? |
Also worth using the same tag like design for |
@kocsmy updated |
@kocsmy I wanted to follow up on this one. |
@kocsmy Hey, anything we're missing here to move this along? |
Thanks for the nudge @alison985 & @jezdez
For the record, this is how it looks: @arikfr suggested that we use the same tags we are using already. And as far as I see you implemented that for the alerts: I think it's a good idea to have the same for the add widget modal on the dashboard. |
@kocsmy Updated. Here are all the various states. Query in Alerts for Published Query Query in Alerts for Unpublished Query Add to dashboard before search: Add to dashboard after search: |
I think @arikfr meant that the (Unpublished) is in the shape of Unpublished tag as well :) I don't think it's a problem that you added the tags as well though, WDYT @arikfr ? I think the ( ) is not part of the Unpublished tag so I think that can be removed (from the Alerts page too). I've noticed the tags don't look the best here (shape, color) so that will need some design refinement. I'll address that later. |
@kocsmy I removed the () and updated the styles. |
@kocsmy Hey, following up on this, do you know if there is anything missing in this PR? |
Hey @jezdez thanks for pinging. @alison985 when I check this PR there's a misalignment (I can't see this on your screenshot though). Can you check and fix if possible, please? |
Closing this PR and will continue discussion/review here: #3347 |
Original request in mozilla#429 was to port the ability to use unpublished queries in Alerts to from Mozilla's fork to getredash/redash. PR #2660 was rejected because this is not desired behavior in getredash/redash. After additional discussion in mozilla#429 the idea to let the user know that unpublished queries weren't allowed in alerts or dashboards was raised.
This PR: