-
Notifications
You must be signed in to change notification settings - Fork 14.4k
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: Allow only dttm columns in comparison filter in Period over Period chart #27209
fix: Allow only dttm columns in comparison filter in Period over Period chart #27209
Conversation
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.
🔥
@@ -382,7 +382,18 @@ const DndFilterSelect = (props: DndFilterSelectProps) => { | |||
return new AdhocFilter(config); | |||
}, [droppedItem]); | |||
|
|||
const canDrop = useCallback(() => true, []); | |||
const canDrop = useCallback( |
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.
non blocking: does any testable behavior changed with this block? If so, could add include it in the DndMetricSelect.test.tsx
file?
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.
No. The drag and drop behavior tested in DndMetricSelect.test.tsx
is related to reordering the metric values. Testing drag and drop from the datasource panel to the control field is more complicated - I suggest we add those tests in a separate PR, both for filters and metrics
controlState.value, | ||
), | ||
}), | ||
) => { |
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.
❤️
4ceb9a7
to
5c0be0d
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #27209 +/- ##
==========================================
- Coverage 67.34% 67.34% -0.01%
==========================================
Files 1909 1909
Lines 74592 74600 +8
Branches 8320 8323 +3
==========================================
+ Hits 50235 50236 +1
- Misses 22305 22312 +7
Partials 2052 2052
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
5c0be0d
to
263b76e
Compare
…od chart (apache#27209) (cherry picked from commit a4c771e)
…od chart (apache#27209) (cherry picked from commit a4c771e)
…od chart (apache#27209) (cherry picked from commit a4c771e)
…od chart (apache#27209) (cherry picked from commit a4c771e)
…od chart (apache#27209) (cherry picked from commit a4c771e)
…od chart (apache#27209) (cherry picked from commit a4c771e)
…od chart (apache#27209) (cherry picked from commit a4c771e)
…od chart (apache#27209) (cherry picked from commit a4c771e)
…od chart (apache#27209) (cherry picked from commit a4c771e)
…od chart (apache#27209) (cherry picked from commit a4c771e)
…od chart (apache#27209) (cherry picked from commit a4c771e)
SUMMARY
When user selected Custom range for comparison on Big Number With Time Period Comparison chart, the filter control would accept any column. That worked but didn't make much sense, so this PR restricts the control to accept only dttm columns for filtering.
Please note that user can still write custom sql which will filter anything, so that's just a UX improvement.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
Screen.Recording.2024-02-22.at.18.12.53.mov
TESTING INSTRUCTIONS
ADDITIONAL INFORMATION