-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
fix(explore): pass partitionColumn when creating new adhoc filter #12789
Conversation
superset-frontend/src/explore/components/controls/FilterControl/AdhocFilterControl.jsx
Show resolved
Hide resolved
1 nit, other than that LGTM 👍 |
Codecov Report
@@ Coverage Diff @@
## master #12789 +/- ##
==========================================
- Coverage 67.00% 66.79% -0.21%
==========================================
Files 1022 1022
Lines 50049 50047 -2
Branches 4914 5047 +133
==========================================
- Hits 33533 33429 -104
- Misses 16392 16494 +102
Partials 124 124
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
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
LGTM |
…2789) * fix(explore): pass partitionColumn when creating new adhoc filter * add default value to state * remove duplicated code * update translations
SUMMARY
The prop
partitionColumn
was not being passed toAdhocFilterPopoverTrigger
inaddNewFilterPopoverTrigger
ofAdhocFilterControl
, causing the latest partition operator to be missing for datasources that support it. The override ofvalueRender
seemed to be a leftover from some old time, so it was removed andpartitionColumn
added to the originalvalueRenderer
that's created in the constructor. In addition, the operator dropdown showed irrelevant operators, causing the operator count to be inflated. Also fixed a typo ("operators(s)" to "operator(s)") along with relevant translations.BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
Before: Partition operator is missing from dropdown. Also notice how the dropdown shows 13 operators, despite only 11 being visible:

After

Partition operator pops up if column supports it. The placeholder is also updated to reflect the new operator count after the column has been selected:
TEST PLAN
ADDITIONAL INFORMATION