chore(superset-ui): remove deprecated fields from QueryObject #22272
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
SUMMARY
Remove the following fields from
buildQueryObject
, as they raise annoying deprecation warnings on/api/v1/chart/data
(these are also updated in the relevant chart plugins):limit
-> replace withseries_limit
timeseries_limit_metric
-> replace withseries_limit_metric
Also fix the incorrect type of
series_limit_metric
, also fixing thenormalizeSeriesLimitMetric
function which was incorrect due to the incorrect type, and replace somegroupby
props withcolumns
in some native filters that were also raising warnings. Finally add some missing tests that caught my eye.Functionally this PR shouldn't change anything, as these fields are already converted into their non-deprecated counterparts here:
superset/superset/common/query_object.py
Lines 65 to 70 in 4657250
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
TESTING INSTRUCTIONS
ADDITIONAL INFORMATION