-
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] Chart specific time controls #8674
[fix] Chart specific time controls #8674
Conversation
79f3b6d
to
1a9d6a8
Compare
Codecov Report
@@ Coverage Diff @@
## master #8674 +/- ##
==========================================
+ Coverage 65.4% 65.54% +0.14%
==========================================
Files 482 482
Lines 24083 24083
Branches 2763 2763
==========================================
+ Hits 15751 15786 +35
+ Misses 8152 8117 -35
Partials 180 180
Continue to review full report at Codecov.
|
@@ -23,7 +23,7 @@ export const druidTimeSeries = { | |||
label: t('Time'), | |||
expanded: true, | |||
description: t('Time related form attributes'), | |||
controlSetRows: [['granularity', 'druid_time_origin'], ['time_range']], | |||
controlSetRows: [['time_range']], |
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.
why did you remove both of these here but only one in 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.
synced offline, this is good
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 cleaning these unused controls!
@@ -23,7 +23,7 @@ export const druidTimeSeries = { | |||
label: t('Time'), | |||
expanded: true, | |||
description: t('Time related form attributes'), | |||
controlSetRows: [['granularity', 'druid_time_origin'], ['time_range']], | |||
controlSetRows: [['time_range']], |
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.
synced offline, this is good
(cherry picked from commit 38782e2)
CATEGORY
Choose one
SUMMARY
This PR ensures that only the relevant time widgets are included depending on the chart type. Previously the granularity logic was shown even if the chart type did not support granularity, i.e., non-timeseries charts.
This provides a number of benefits including:
Additionally this PR also removes the time controls for chart types which don't support time filtering, i.e., iFrame, Markup, etc.
Note erroneous form-data fields are removed on load in explorer but will persist in database until the slice is re-saved.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
Before
After
TEST PLAN
CI.
ADDITIONAL INFORMATION
REVIEWERS
to: @etr2460 @graceguo-supercat @michellethomas @mistercrunch @willbarrett @villebro