Page MenuHomePhabricator

Improve Superset's error message for draft dashboards
Open, LowPublic

Description

If someone tries to access a draft Superset dashboard through it's straight URL on the format of e.g. /superset/dashboard/1234/, it'll result in an error message that does not help in any way with how to solve the problem. Here's an example:

image (5).png (1,258×1,346 px, 104 KB)

Preferred outcome: a message that helps the user understand how to resolve this, e.g. to contact whomever they got the URL from and ask them to mark the dashboard as publish, or get a properly shareable URL.

Event Timeline

I took a look at the upstream issue tracker and found this issue, which looks related. But that's from 2021 and the associated patch, which allows users to view draft dashboards, apparently went into the the 1.2.0 release according to the GitHub tags on the right. We seem to be running Superset v4.2.0 at the moment.

Ottomata subscribed.

Grooming: Dear SRE team, if you have ideas on how to resolve, please do! Otherwise we might just want to file an upstream bug?

Gehel subscribed.

@Ottomata : this does seem like something that needs to be fixed upstream. We'll let Data-Engineering follow with upstream.

Seems to be a chart permissioning issue. No error for @Milimetric (creator) but error for @Ahoelzl (regular user)