Skip to content

feat(Native Filters): Configure creatable filter behavior - #33096

Merged
geido merged 1 commit into
masterfrom
geido/feat/disable-creatable-filter-value
Apr 11, 2025
Merged

geido merged 1 commit into
masterfrom
geido/feat/disable-creatable-filter-value

Conversation

@geido

@geido geido commented Apr 11, 2025

Copy link
Copy Markdown
Member

SUMMARY

This PR introduces a new option for Native Filters to enable / disable the creatable behavior of values filters.

AFTER

1.-.Sample.dashboard.mp4

TESTING INSTRUCTIONS

  • Open a Dashboard and set a value filter
  • The creatable option should be true by default and it should be possible to create new values
  • Disabling the option should disallow the creation of new values

ADDITIONAL INFORMATION

  • Has associated issue:
  • Required feature flags:
  • Changes UI
  • Includes DB Migration (follow approval process in SIP-59)
    • Migration is atomic, supports rollback & is backwards-compatible
    • Confirm DB migration upgrade and downgrade tested
    • Runtime estimates and downtime expectations provided
  • Introduces new feature or API
  • Removes existing feature or API

@dosubot dosubot Bot added the dashboard:native-filters Related to the native filters of the Dashboard label Apr 11, 2025

@korbit-ai korbit-ai Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review by Korbit AI

Korbit automatically attempts to detect when you fix issues in new commits.
Category Issue Status
Security Default Admin Credentials in Test File ▹ view 🧠 Not in standard
Files scanned ​
File Path Reviewed
superset-frontend/src/filters/components/Select/SelectFilterPlugin.stories.tsx ✅
superset-frontend/src/filters/components/Select/types.ts ✅
superset-frontend/cypress-base/cypress/e2e/dashboard/shared_dashboard_functions.ts ✅
superset-frontend/src/filters/components/Select/controlPanel.ts ✅
superset-frontend/src/filters/components/Select/SelectFilterPlugin.tsx ✅
superset-frontend/cypress-base/cypress/support/e2e.ts ✅
superset-frontend/src/dashboard/components/nativeFilters/FiltersConfigModal/FiltersConfigForm/FiltersConfigForm.tsx ✅

Explore our documentation to understand the languages and file types we support and the files we ignore.

Need a new review? Comment /korbit-review on this PR and I'll review your latest changes.

Korbit Guide: Usage and Customization

Interacting with Korbit

  • You can manually ask Korbit to review your PR using the /korbit-review command in a comment at the root of your PR.
  • You can ask Korbit to generate a new PR description using the /korbit-generate-pr-description command in any comment on your PR.
  • Too many Korbit comments? I can resolve all my comment threads if you use the /korbit-resolve command in any comment on your PR.
  • On any given comment that Korbit raises on your pull request, you can have a discussion with Korbit by replying to the comment.
  • Help train Korbit to improve your reviews by giving a 👍 or 👎 on the comments Korbit posts.

Customizing Korbit

  • Check out our docs on how you can make Korbit work best for you and your team.
  • Customize Korbit for your organization through the Korbit Console.

Feedback and Support

@geido
geido force-pushed the geido/feat/disable-creatable-filter-value branch from f321f7a to 5f9da2a Compare April 11, 2025 11:15
@github-actions

Copy link
Copy Markdown
Contributor

@geido Processing your ephemeral environment request here. Action: up. More information on how to use or configure ephemeral environments

@github-actions

Copy link
Copy Markdown
Contributor

@geido Ephemeral environment spinning up at http://18.236.105.234:8080. Credentials are 'admin'/'admin'. Please allow several minutes for bootstrapping and startup.

@kgabryje kgabryje left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@geido
geido merged commit 014b392 into master Apr 11, 2025
@geido
geido deleted the geido/feat/disable-creatable-filter-value branch April 11, 2025 17:38
@michael-s-molina

Copy link
Copy Markdown
Member

@geido @kgabryje What's the difference between this option and "Dynamically search all filter values"?

@eschutho

Copy link
Copy Markdown
Member

@geido @kgabryje What's the difference between this option and "Dynamically search all filter values"?

@michael-s-molina this feature would disallow adding a filter for a value that does not exist in the results. As opposed to searching for a field that isn't in the first 1k results. So for example, if you have values "yes" and "no", it wouldn't allow someone to search for "maybe".

alexandrusoare pushed a commit to alexandrusoare/superset that referenced this pull request Jun 19, 2025
qfcwell pushed a commit to qfcwell/superset that referenced this pull request May 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dashboard:native-filters Related to the native filters of the Dashboard size/M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants