-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
Cannot view SQL question when accessing via dashboard with filters connected to modified card without SQL permissions #15163
Comments
…ith filters connected to modified card without SQL permissions (#15169) * Expand test to include "nosql" scenario * Add additional check for native query editor
This comment has been minimized.
This comment has been minimized.
* Extract repro for #12228 into a separate file * Extract repro for #15444 into a separate file * Extract repro for #15460 into a separate file * Extract repro for #15700 into a separate file * Extract repro for #15981 into a separate file * Extract repro for #16739 into a separate file * Extract repro for #13961 into a separate file * Extract repro for #14145 into a separate file * Extract repro for #12581 into a separate file * Extract repro for #14302 into a separate file * Extract repro for #15163 into a separate file * Extract repro for #11580 into a separate file * Extract repro for #11480 into a separate file * Extract repro for #9357 into a separate file
@flamber -- Seems like this particular issue may be fixed by #19027. When a card is a native question, clicking the card's title on a dashboard now directly navigates to GUI question are an entirely different problem at this point. |
One downside to this is that viz changes made to a dashcard can't be seen in the query builder. I don't know if this is desired or not. If it is, I think one option is to build an entirely new query builder "mode" specific to dashcards, not unlike what we're doing for datasets right now. This way, we'd skip the saved card <-> dashcard comparison that happens that breaks due to dashcard viz settings changes. |
@daltojohnso Yeah, I don't know, but until #13595 is fixed, then I don't think we can do much. Then I prefer having this working without it parsing on the dashcard viz stuff - like #19027 implemented. |
Describe the bug
When a SQL question on a dashboard is modified (Click Behavior, different title, etc) and is connected with dashboard filters, then it's not possible to click the question without SQL permissions. Errors with
You do not have permissions to run this query.
.To Reproduce
SELECT COUNT(*) FROM "PRODUCTS" WHERE {{cat}}
and set variable to Field Filter of Products.Category, and save question as "Q1"/question?filter=Gizmo#hash...
("dirty"/unsaved) and errors withSorry, you don’t have permission to see that.
- logYou don't have permissions to do that.
And the log will now have a stacktrace error
:missing-required-permissions
Full stacktrace
Information about your Metabase Installation:
Tested 0.36.8 thru 0.38.1, and 1.37.9 with sandboxing
Additional context
Related to #13595 and #12720
The text was updated successfully, but these errors were encountered: