Skip to content

fix(Native Filters): Keep default filter values when configuring creatable behavior - #33205

Merged
geido merged 1 commit into
masterfrom
geido/fix/creatable-behavior-default-filter
Apr 22, 2025
Merged

geido merged 1 commit into
masterfrom
geido/fix/creatable-behavior-default-filter

Conversation

@geido

@geido geido commented Apr 22, 2025 •

Copy link
Copy Markdown
Member

SUMMARY

This PR #33096 introduced a creatable configuration for Select. However, default filters would reset when changing the option. This PR should fix the issue while also fixing the warning icon that looked off.

BEFORE

test.dash.1.mp4

AFTER

test.dash.mp4

TESTING INSTRUCTIONS

  1. Open a Dashboard and set a native filter with default values
  2. Toggle the creatable behavior on and off
  3. Default values should stay

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 22, 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.

I've completed my review and didn't find any issues.

Files scanned ​
File Path Reviewed
superset-frontend/src/filters/components/Select/controlPanel.ts ✅
superset-frontend/src/dashboard/components/nativeFilters/FiltersConfigModal/FilterTitleContainer.tsx ✅

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

Check out our docs on how you can make Korbit work best for you and your team.

Loving Korbit!? Share us on LinkedIn Reddit and X

@geido
geido requested a review from kgabryje April 22, 2025 14:07

@Antonio-RiveroMartnez Antonio-RiveroMartnez 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

@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 99ed968 into master Apr 22, 2025
@geido
geido deleted the geido/fix/creatable-behavior-default-filter branch April 22, 2025 14:32
preset-machine pushed a commit to preset-io/superset that referenced this pull request Apr 22, 2025
payose pushed a commit to payose/superset that referenced this pull request May 5, 2025
LevisNgigi pushed a commit to LevisNgigi/superset that referenced this pull request Jun 18, 2025
LevisNgigi pushed a commit to LevisNgigi/superset that referenced this pull request Jun 18, 2025
alexandrusoare pushed a commit to alexandrusoare/superset that referenced this pull request Jun 19, 2025
payose pushed a commit to payose/superset that referenced this pull request Jun 28, 2025
qfcwell pushed a commit to qfcwell/superset that referenced this pull request May 12, 2026
qfcwell pushed a commit to qfcwell/superset that referenced this pull request May 12, 2026
villebro added a commit to villebro/superset that referenced this pull request Oct 13, 2026
…nt the full changelog file

Comparing changelog.py's output with the published 6.0.0 and 6.1.0
changelogs showed several problems:

- A commit made with `git revert` has the subject `Revert "... (#N)"`
  and no PR number of its own, so it was read as PR #N again. 6.1.0's
  changelog lists apache#38846 twice although it was reverted on the 6.1
  branch, and because apache#38846 appears in 6.1.0's history, the 7.0.0
  changelog left it out although 7.0 includes it. Each PR's state is
  now worked out from its commits in order: reverted PRs are left out,
  and reverting a revert lands the PR again.
- PRs merged more than once were listed once per merge (apache#31998, apache#32596
  and apache#33205 in 6.0.0's changelog). They're listed once.
- Logins were looked up by git author name, using the first PR seen
  for that name, so one person's revert of another's PR credited all
  of the reverter's later PRs to the other person. Each PR is credited
  to its own author.
- The heading named the git ref (`### 6.0` in 6.0.0's changelog), and
  release managers added the license header, `## Change Log` and blank
  lines by hand. The command prints the complete CHANGELOG/<version>.md
  file, naming --release_version or SUPERSET_VERSION in the heading, and
  sends its progress output to stderr.

A PR GitHub no longer serves is listed with its commit author's login
and its subject without the `(#N)` suffix, so it needs no hand edits.
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/XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants