You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the 0.38.0 changes, the only time we should use field-literal is to refer to columns coming back from native queries. We should use field-id everywhere else. Either way, in 0.38.0+, the results metadata comes back with field_ref, so we should use that instead. There's no need to second-guess things in the FE client. field_ref will always be the preferred way to refer to a Field. We can work around it for now on the backend, but going forward it's probably better to do it the right way.
I tried making this change to the FE but it broke other stuff since it seems the id here is used to populate dropdowns (the name is fetched from the field-literal in id rather than from field().name or field().display_name from the metadata)
The text was updated successfully, but these errors were encountered:
* Add test ID for notebook's action buttons
* Add repro for #17712
* Use `Join.clean` in join step's clean callback
* Always show a remove icon
* Fix referencing an empty dimension
* Improve Join's validity check
* Don't cleanup incomplete join sections
* Fix structured query tests
* Don't use MBQL field literals in notebook tests
#14824
I noticed this when I was working on #14812 -- see comment I left here: https://github.com/metabase/metabase/pull/14812/files/06202be4f8f5c02b0b0609a0017606bed0c790ef#diff-1536103ee504ae4476ddaa2b633dff7d0e31a56647ba11b383c98962f757d993R309
With the 0.38.0 changes, the only time we should use
field-literal
is to refer to columns coming back from native queries. We should usefield-id
everywhere else. Either way, in 0.38.0+, the results metadata comes back withfield_ref
, so we should use that instead. There's no need to second-guess things in the FE client.field_ref
will always be the preferred way to refer to a Field. We can work around it for now on the backend, but going forward it's probably better to do it the right way.I tried making this change to the FE but it broke other stuff since it seems the
id
here is used to populate dropdowns (the name is fetched from thefield-literal
inid
rather than fromfield().name
orfield().display_name
from the metadata)The text was updated successfully, but these errors were encountered: