Skip to content

Select All in a dashboard filter incorrectly displays how many values it is selecting if there are null values #40228

Description

@mason-gordon

Screenshot

Before clicking "Select All"

Image

After clicking "Select All"

Image

Description

Version: Superset 6.0.0

When selecting values for a dashboard filter, "Select All" does not actually select every displayed value if <NULL> is one of the options. In the screenshots above, you can see that it says Select All (3). When I click on that option, only the 2 "real" values were actually selected. The Deselect All (2) option displays the correct amount of values to deselect.

Design input

I would imagine it's intentional that Select All doesn't select NULL values. I wasn't sure if this was a bug or just an oversight, but if Select All shouldn't select NULL values, then I think Select All should not include it in the total number of options to select. This isn't too challenging to work around on our end, since we can just coalesce the null values into some other placeholder. It is misleading, though, and may affect the experience of dashboard users.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    #bug:cosmeticCosmetic/layout/design tweak neededdashboard:native-filtersRelated to the native filters of the Dashboard

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions