-
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: move filters from superset-ui to incubator #12154
Conversation
Codecov Report
@@ Coverage Diff @@
## master #12154 +/- ##
==========================================
- Coverage 67.05% 59.11% -7.95%
==========================================
Files 1001 958 -43
Lines 49380 46738 -2642
Branches 5033 4331 -702
==========================================
- Hits 33112 27628 -5484
- Misses 16140 19110 +2970
+ Partials 128 0 -128
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Hi @simchanielsen Thanks for the PR. I think the advantage to have native filter component in superset core js codebase is obvious: quicker development cycle, easier to share function or components with other But since filter component was a superset-ui plugin, may i know what is original architectural design consideration? |
…ve-filters-ant � Conflicts: � superset-frontend/src/dashboard/components/nativeFilters/FilterBar.tsx
…-superset into move-filters-ant
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.
Thanks for moving this over! A few first pass comments, will test soon
superset-frontend/src/filters/components/Range/transformProps.ts
Outdated
Show resolved
Hide resolved
superset-frontend/src/filters/components/Select/AntdSelectFilter.tsx
Outdated
Show resolved
Hide resolved
superset-frontend/src/filters/components/Select/transformProps.ts
Outdated
Show resolved
Hide resolved
if (lower !== undefined && lower !== null) { | ||
filters.push({ col, op: '>=', val: lower }); | ||
} | ||
if (upper !== undefined && upper !== null) { | ||
filters.push({ col, op: '>=', val: upper }); | ||
} |
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.
The upper bound should probably be '<='
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.
LGTM, thanks for moving this + adding tests + fixing the bugs uncovered by the new tests!
Related: apache-superset/superset-ui#840 |
SUMMARY
Move Select and Range ant filters from superset-ui to incubator + support in it for
queriesData
paramBEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
TEST PLAN
ADDITIONAL INFORMATION