-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Embedding Dashboard with Locked parameters does not allow numeric values #25031
Comments
While we're at it, let's make sure that we allow resources to be strings too.
|
Yeah, added that to the "Expected behavior", or rather copied it over from your original issue. |
Hi guys, thanks for adding this issue, I will follow the progress. I am not sure whether it is useful, but I wanted to add another 2 scenarios where this happens for me: scenario 1: scenario 2:
Both of those lead me to the same "There was a problem displaying this chart" and same backend error. |
resource: { dashboard: 123 }, //works
resource: { dashboard: "123" }, //fails I'm not sure I follow what's going on here and why we would expect string ids to work? Dashboards have numeric ids (eg. 123). I don't see why we would expect a string key to work here. It seems like we should be more careful with what values we put into tokens and the expectations when we take it from the jwt, not that we should loosen our parsing. |
Describe the bug
This is the repetition of #20845, but for the dashboard scenario.
To Reproduce
Steps to reproduce the behavior:
select count(*) from orders where true [[AND quantity={{qty_locked}}]]
- set variable as Numberqty_locked
If we now visit the embedded dashboard URL, it will error with "There was a problem displaying this chart":
As with the previous issue, backend error is not helpful, either:
Don't know how to create ISeq from: java.lang.Integer
Expected behavior
Allow numeric parameters.
While we're at it, would be nice if we allowed the resource as string, since I see that as a common mistake as well.
Information about your Metabase Installation:
local dev,
master
, 9335035, H2, Sample DatabaseThe text was updated successfully, but these errors were encountered: