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 ID filter does not work on models #39940
Comments
The trouble here is a mismatch between the parameter applying to the model's own inner query or to a wrapper using the model as its The parameter has The preprocessed query looks like this (MLv2): {:stages [{:source-table 5
:filters [[:= [:field {} "ID"] [:value {} 5]]]} which is wrong. Confirmed this is a BE issue. |
This matches how models are visualized, and how the parameters are attached to them in the first place - an extra ad-hoc query is wrapped around the model. Because of that wrapping, a parameter will be targeting a model's field by name rather than by ID, but that parameter cannot be applied directly on the model's last stage. Fixes #39940.
This matches how models are visualized, and how the parameters are attached to them in the first place - an extra ad-hoc query is wrapped around the model. Because of that wrapping, a parameter will be targeting a model's field by name rather than by ID, but that parameter cannot be applied directly on the model's last stage. Fixes #39940.
…39963) This matches how models are visualized, and how the parameters are attached to them in the first place - an extra ad-hoc query is wrapped around the model. Because of that wrapping, a parameter will be targeting a model's field by name rather than by ID, but that parameter cannot be applied directly on the model's last stage. Fixes #39940.
Describe the bug
2024-03-11.20-44-46.mp4
To Reproduce
Expected behavior
Chart is rendered correctly (table with 1 row)
Logs
Response from POST `/api/dashboard/:id/dashcard/:id/card/:id/query`:
Information about your Metabase installation
master at ef9fb05, 0.49.0-RC2
Works in v48. Works with questions.
Severity
P1
The text was updated successfully, but these errors were encountered: