-
Notifications
You must be signed in to change notification settings - Fork 14.3k
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: Adds legacy time support for Waterfall chart #26136
feat: Adds legacy time support for Waterfall chart #26136
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #26136 +/- ##
==========================================
- Coverage 58.93% 58.92% -0.02%
==========================================
Files 1941 1941
Lines 75873 75888 +15
Branches 8447 8454 +7
==========================================
Hits 44714 44714
- Misses 28984 28996 +12
- Partials 2175 2178 +3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
{ | ||
label: t('Query'), | ||
expanded: true, | ||
controlSetRows: [ | ||
['x_axis'], | ||
['time_grain_sqla'], | ||
[hasGenericChartAxes ? 'x_axis' : null], |
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.
Doesn't a row value of null result in an empty DOM placeholder?
How about conditionally appending generic x-axis control?
[hasGenericChartAxes ? 'x_axis' : null], | |
...(hasGenericChartAxes ? ['x_axis', 'time_grain_sqla'] : []), |
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.
Doesn't a row value of null result in an empty DOM placeholder?
It does not. This pattern is used everywhere.
How about conditionally appending generic x-axis control?
We need to add the x_axis
and time_grain_sqla
into different arrays.
@michael-s-molina a general observation about this change - as we've already enabled |
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 upon @villebro 's approval
@villebro You're correct. I think there's no obligation to support non-generic mode in new viz types. I just did it for this chart because we want it at Airbnb but we didn't enable |
(cherry picked from commit f405ba0)
(cherry picked from commit f405ba0)
SUMMARY
Follow-up of #25557 to add support for legacy time controls in Waterfall charts.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
TESTING INSTRUCTIONS
1 - Set
GENERIC_CHART_AXES
feature flag to False2 - Test if you are able to create a Waterfall chart using the legacy time controls
ADDITIONAL INFORMATION