fix(chart-data): ignore orderby on sample result type (#11656)

This commit is contained in:
Ville Brofeldt 2020-11-11 16:27:56 +02:00 committed by GitHub
parent 329e72885c
commit 77dff0e4e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -148,6 +148,7 @@ class QueryContext:
if self.result_type == utils.ChartDataResultType.SAMPLES:
row_limit = query_obj.row_limit or math.inf
query_obj = copy.copy(query_obj)
query_obj.orderby = []
query_obj.groupby = []
query_obj.metrics = []
query_obj.post_processing = []

View File

@ -25,7 +25,7 @@ QUERY_OBJECTS = {
"is_timeseries": False,
"metrics": [{"label": "sum__num"}],
"order_desc": True,
"orderby": [],
"orderby": [["sum__num", False]],
"row_limit": 100,
"time_range": "100 years ago : now",
"timeseries_limit": 0,