Open paoliniluis opened 2 years ago
Expected result TBD, see Slack: https://metaboat.slack.com/archives/C057T1QTB3L/p1691588517142039?thread_ts=1691585903.901969&cid=C057T1QTB3L
From @luizarakaki from Slack . I considered this the expected resulted from that discussion.
For #3, we are planning to separate add/remove from hide column. https://www.notion.so/metabase/Enable-Add-all-Remove-all-behavior-in-table-settings-f0b1fec023334b20a9c84b7c5304508f
So, for this bug, I think that if the column isn’t present in the query anymore, we should automatically remove the click behavior (if the column was removed from the select).
If the column was hidden in the visualization, but still exists in the query, we should keep it (in case someone unhides the column). I also think we will let the user unhide columns from the dashboard
We decided to pause this fix until https://github.com/metabase/metabase/pull/32698 is merged, so we could use MLv2 functions instead.
This will likely be fixed by [MLv2] Click mapping target selection in dashboards
See discussion
Describe the bug When configuring click behaviour in columns, hiding any of those columns in click behavior does not let the user remove the click behaviour.
Logs There aren't any relevant logs, no backend or frontend
To Reproduce 1) Build a dashboard and add a table visualization 2) add click behaviour to that table on any column, save the dashboard 3) go to the question and hide a column from the table visualization settings 4) return to the dashboard and check the click behaviour setting, you won't see the column anymore, although the card will say that there is 1 column with click behaviour
Expected behavior Either we restrict the user from removing from the question the column that is used on the dashboard for the click behaviour, or we remove the click behaviour on the column on the dashboard when the column is removed from the viz settings of the question
Screenshots (sorry, I know a GIF might be hard to read, but sending a video rather than pictures you can go over and over)![image](https://user-images.githubusercontent.com/1711649/136256134-d16f26cf-9679-4b19-b0e8-477e7f46bb3e.png)
Information about your Metabase Installation:
Severity Cosmetic, at least
Additional context N/A