-
Notifications
You must be signed in to change notification settings - Fork 14.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(native-filters): add sort option to select filter #13569
feat(native-filters): add sort option to select filter #13569
Conversation
6cea01c
to
a4ad977
Compare
superset-frontend/src/filters/components/Select/SelectFilterPlugin.tsx
Outdated
Show resolved
Hide resolved
a4ad977
to
e238b18
Compare
f96befd
to
9518a96
Compare
@@ -29,10 +29,10 @@ interface PluginFilterSelectCustomizeProps { | |||
defaultValue?: (string | number)[] | null; | |||
currentValue?: (string | number)[] | null; | |||
enableEmptyFilter: boolean; | |||
fetchPredicate?: string; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fetchPredicate
is now automatically applied in backend
9518a96
to
bc28498
Compare
multiSelect: false, | ||
multiSelect: true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Enabling multiSelect
by default to match Filter Box.
LGTM ✅ Please merge this PR as soon as all checks pass. 🙏 |
4f4ba96
to
bc28498
Compare
6816b0d
to
ac72e59
Compare
Codecov Report
@@ Coverage Diff @@
## master #13569 +/- ##
==========================================
- Coverage 77.53% 73.45% -4.09%
==========================================
Files 904 604 -300
Lines 45986 21412 -24574
Branches 5552 5557 +5
==========================================
- Hits 35657 15729 -19928
+ Misses 10195 5548 -4647
- Partials 134 135 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
* feat(native-filters): add sort option to select filter * remove from useEffect * disable flaky cypress tests
SUMMARY
Add sort option to native select filter that defaults to true.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
The filter config modal:
And the filter itself:
TEST PLAN
Local testing
ADDITIONAL INFORMATION