metabase icon indicating copy to clipboard operation
metabase copied to clipboard

Setting column Visibility to "Only in detail views" stills shows the column as being included in Notebook

Open flamber opened this issue 5 years ago • 3 comments

Describe the bug When setting a column to "Only in detail views" in Data Model, then it still shows as if the column is being selected in Notebook editor, and selecting/deselecting the column there doesn't make any difference, but it's possible to add the column back via visualization Settings sidebar, where the column is available under "More columns".

To Reproduce

  1. Admin > Data Model > Sample Dataset > Orders > Set Visibility for "Subtotal" to "Only in detail views" image
  2. Custom question > Sample Dataset > Orders - click the Columns-dropdown to the right - notice "Subtotal" is selected image
  3. Visualizing will not include the column: image
  4. Click visualization Settings > More columns > click the + next to "Subtotal" image
  5. The "Subtotal" column is now included, even according to the column order defined in Data Model: image

Expected behavior The column should not be selected in step 2.

Information about your Metabase Installation: Metabase 0.34.3, 0.36.7, 0.37.0-rc2

Additional context Related to #4158, #4159, #10460, #12044

flamber avatar Oct 13 '20 12:10 flamber

related to https://github.com/metabase/metabase/issues/47945

dragonsahead avatar Sep 15 '24 14:09 dragonsahead

I don't think that we should hide this column in the notebook editor.

ranquild avatar Jun 25 '25 18:06 ranquild

Pretty certain that's it's about viz mainly, so "Only in detail views" should not remove it from the QB. To confirm and close

ranquild avatar Dec 19 '25 03:12 ranquild