Skip to content

Cannot Paste Comma-Separated Values in Filter #32645

Open
@rdg0

Description

@rdg0

Bug description

When pasting a comma-separated list of values into a filter, the entire selection fails if any value in the list is outside the first 1000 entries of the dataset, when Dynamically search all filter values and Can select multiple values is enabled.

Key Observations:

  • ✅ Works: Pasting a list where all values are within the first 1000 entries.
    
  • ❌ Fails: Pasting a list where at least one value is outside the first 1000 entries.
    
  • No error messages are shown, and the filter ignores the entire input.
    

Affected Feature: Dashboard Filters (Multi-Select + Dynamic Search).

Steps to Reproduce

  1. Configure a filter with:
  • Can select multiple values = True
  • Dynamically search all filter values = True.
  1. Identify values where:
  • Value A: Exists within the first 1000 entries.
  • Value B: Exists in the dataset but outside the first 1000 entries.
  1. Copy a comma-separated list containing both values.
  2. Paste the list into the filter input field.

Actual Result:

  • No values are selected. The filter behaves as if the input is invalid.
    
  • Values outside the first 1000 are ignored, and even valid entries are discarded.
    

Expected Result:

  • Valid values should be selected immediately.
    
  • Values outside the first 1000 should trigger a dynamic search and be added to the selection once confirmed.
    

Screenshots/recordings

No response

Superset version

4.1.1

Python version

3.10

Node version

16

Browser

Chrome

Additional context

No response

Checklist

  • I have searched Superset docs and Slack and didn't find a solution to my problem.
  • I have searched the GitHub issue tracker and didn't find a similar bug report.
  • I have checked Superset's logs for errors and if I found a relevant Python stacktrace, I included it here as text in the "additional context" section.

Metadata

Metadata

Assignees

No one assigned

    Labels

    dashboard:filtersetsRelated to the filtersets of the Dashboardvalidation:requiredA committer should validate the issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions