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

[Dashboard] Error message for draft/deleted dashboards is not actionable #14175

Closed
ktmud opened this issue Apr 15, 2021 · 3 comments
Closed

[Dashboard] Error message for draft/deleted dashboards is not actionable #14175

ktmud opened this issue Apr 15, 2021 · 3 comments
Labels
#bug Bug report dashboard:error Related to Dashboard errors P2 Priority item - High test:case

Comments

@ktmud
Copy link
Member

ktmud commented Apr 15, 2021

Error message for draft/deleted dashboards is not actionable. Probably related: #13306

cc @pkdotson @suddjian @junlincc

Expected results

Deleted or unpublished dashboards should render a "Dashboard not found" or a general 404 page.

Actual results

It shows a blank page with unexpected JS errors or JSON format 404 error

Screenshots

When visiting a draft dashboard you don't have access with:

draft-dashboard

draft-dashboard-error-more

When visiting a non-existing dashboard:

404 json

How to reproduce the bug

  1. Create a new dashboard
  2. Log out and login as another user
  3. Visit that dashboard

Environment

Latest master

@ktmud ktmud added #bug Bug report dashboard:error Related to Dashboard errors labels Apr 15, 2021
@ktmud
Copy link
Member Author

ktmud commented Apr 16, 2021

Previously unpublished (draft) dashboards are still viewable by others with Dashboard view access. With recent changes it now throws the NotFound errors.

Our users rely on not publishing a dashboard to prevent it from being discovered in searches, while allowing circulating it among a smaller group of users---kind of like YouTube's "Unlisted videos", or Google Docs' "allow anyone with this link to have access".

This change introduced a lot of frictions to our existing workflow so it would be good if we can revert back to the old behavior while waiting for a long-term fix.

@ktmud ktmud added the P0 Priority item - Critical label Apr 16, 2021
@junlincc junlincc added P1 Priority item - Major P0 Priority item - Critical and removed P0 Priority item - Critical P1 Priority item - Major labels Apr 16, 2021
@junlincc
Copy link
Member

thanks for reporting, could you revert internally and give us a couple of days to address it? @ktmud

@junlincc junlincc added test:case P2 Priority item - High and removed P0 Priority item - Critical labels Apr 16, 2021
@ktmud
Copy link
Member Author

ktmud commented Apr 16, 2021

Some may actually find that other users being able to access unpublished dashboards a bug not a feature, especially that the dashboard ids are not randomized, making it possible for users to see dashboards that they are not intended to see.

Long term solution is to introduce a "unlisted" ("viewable but not searchable") dashboard status, in addition to the "draft" and "published" status. This can go hand in hand with the Trashbin feature, too.

In the meantime, we should revert back to previous behavior---draft == unlisted---to avoid breaking existing user workflows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
#bug Bug report dashboard:error Related to Dashboard errors P2 Priority item - High test:case
Projects
None yet
Development

No branches or pull requests

2 participants