-
Notifications
You must be signed in to change notification settings - Fork 14.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
[listview] Please display message when chart cannot be open because of missing dataset #12464
Comments
@nytai just want to bring this to your attention. we will take this on. @kkucharc Thanks so much! @adam-stasiak many thanks for finding this issue 🙏 |
hmm, what should happen in this case? The chart would no longer be useable if the underlying dataset is missing. |
@nytai Well when I refresh chart when dataset was already deleted, I had NotFound screen: |
if the chart is no longer useable, should we still display it on the list view, or at least notify user the chart is not available because the underlying data has been deleted? i would mistaken it as a bug in list view. |
exactly |
Well in that case should deleting a dataset cause all associated charts to be deleted? I know it's showing up as a UI bug but this is more of an api/data issue |
Toast message for this would be ok @kkucharc |
We are putting a quick bandaid on this issue by adding a lightweight msg for now. I don't think we should hide or delete charts for the users at all. cc @Steejay |
I'm pretty sure this has always been an issue in some form. Deleting a dataset that's connected to a lot of charts affects those charts in weird ways. We've talked about not even allowing a user to delete a dataset until they've deleted all associated charts and dashboards. Popping a toast would be nice, but I'm pretty sure those are just regular html links for the chart. The exception is likely on the backend as @kkucharc pointed out. @mistercrunch or @zuzana-vej any thoughts on what should be correct behavior for this issue? |
i understand there's a bigger conversation behind, that's why we are not suggesting any significant changes. simply adding a notification will do more benefit than harm at this point. |
I added notification message. If I may have suggestion for the future discussions:
|
Longer term solution should be allowing Explore page to open without a datasource. |
@kkucharc 2 is what happens now (at least from the list view).
Yes, ideally the user could go in an fix the chart |
I vote for restricting it at the API level. In that case it would be nice for the delete prompt to change cc: @junlincc , @nytai , @adam-stasiak |
@dpgaspar you mean just not allowing users to delete datasets that are connected to charts/dashboards? I think we've talked about this before. We should change the prompt, maybe provide links to the objects that need to be deleted first. |
I think preserving the chart would be ideal. Even though deleting the datasource will break the associated charts, i dont think we want charts to suddenly disappear for the user. Flow: Open chart > error message displayed in Explore that the associated dataset has been deleted. From here a user can decide to delete the chart themselves. |
Case is that when we delete dataset used by chart and then try to visit this chart - > we are sticked in listing view. Click on chart should redirect us to explore but does not.
Expected results
I should see chart open with information saying about missingdataset.
Actual results
Listing is refreshed
Screenshots
Nagranie.z.ekranu.2021-01-12.o.18.40.06.mov
How to reproduce the bug
Environment
docker
90915db
Checklist
Make sure to follow these steps before submitting your issue - thank you!
Additional context
The text was updated successfully, but these errors were encountered: