-
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
Users not able to view chart in Explore from dashboard they have access to #20381
Comments
One thing which is somewhat perplexing to be is the request is a POST via the /api/v1/explore/form_data route and per the
I would have assumed this would have bee a GET request given we're merely fetching the form-data. |
@john-bodley I believe the intention is to create an enriched Explore URL with more states from dashboards carried over to the Explore page, such as additional filters and current tab selections, etc. But I agree the logics here are probably over-designed. For maximum accessibility, this link should be a simple GET request with all the enriched data as URL parameters---like it used to be, and let the Explore page handle parameter consolidation and new cache key deduplication, etc. If filter data are too large, they can be saved in localStorage and have the Explore page read from it (although I doubt this happens very often). |
We have noticed this behavior even for users who are owners on the chart. It seems similar to #20135 which was specific to datasets. We are on 1.5.1 |
If I'm not crazy, this seems fine in 3.x. If there's a chart I can't edit in the dashboard, I can still click Edit Chart, fiddle around with it, and then Save As when I'm done. Closing this as resolved, but happy to reopen if I'm misunderstanding something. |
When users don't have edit access to a chart or view access to a dataset, but have access to a dashboard, they will still be able to view the chart in the dashboard, but cannot view the chart in explore. Previously, they can still view the chart in Explore regardless if they have access to the chart to dataset.
This change breaks users' workflow in a couple of ways:
How to reproduce the bug
Using the examples data:
Expected results
Users should be able to open the "Edit chart" link regardless if they have access to a chart/dataset. The access should be controlled on the Explore page.
If users cannot see the content of the chart, then the Edit chart link should be removed or disabled.
Actual results
Edit chart is visible but clicking on it shows an error:
Environment
Latest maste (sha: 86f146e)
Checklist
Make sure to follow these steps before submitting your issue - thank you!
The text was updated successfully, but these errors were encountered: