-
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
feat: generate consistent QueryObject whether GenericAxis is enabled or disabled #21519
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.
Awesomen work, looks great! One minor comment, I'll test this later tonight EET.
superset-frontend/packages/superset-ui-core/src/query/getAxis.ts
Outdated
Show resolved
Hide resolved
Codecov Report
@@ Coverage Diff @@
## master #21519 +/- ##
==========================================
- Coverage 66.67% 66.66% -0.01%
==========================================
Files 1793 1793
Lines 68493 68506 +13
Branches 7275 7279 +4
==========================================
+ Hits 45665 45672 +7
- Misses 20966 20971 +5
- Partials 1862 1863 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
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.
This is really great work @zhaoyongjie, thanks for all these improvements! While testing I looked at the backend logs, and noticed one last deprecation notice:
2022-09-20 20:32:39,010:WARNING:superset.common.query_object:The field `timeseries_limit` is deprecated, please use `series_limit` instead.
This PR is already pretty big, so no need to fix this here, but once we replace timeseries_limit
with series_limit
we should be rid of all deprecation notices for the main ECharts viz types 👍
Thanks @villebro. I will fix it in a separated PR. |
SUMMARY
This PR intends to generate a consistent QueryObject whether GenericAxis FF is enabled or disabled. e.g.: the charts wouldn't change on the Dashboard although Axis FF from
enabled
todisabled
and vice versa.getXAxis
andisXAxisSet
intosuperset-ui/core
There are 2 kinds of
queryObject
patterns after this PR:The QueryObjec will be like below when the
x_axis
is not in formData whetherGenericAxis
is enabled or disabledThe QueryObjec will be like below when the
x_axis
is in formData whetherGenericAxis
is enabled or disabled.The
granularity
(axis) andtime_grain
will be converted toBASE_AXIS
, then removetime_grain_sqla
andis_timeseries
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
TESTING INSTRUCTIONS
Test Case 1
Test Case 2
ADDITIONAL INFORMATION