Remove datapoint sorting from area chart
What does this MR do?
Reduces complexity on the metrics dashboard. The PromQL Api allows ascending and descending sorting, but it reliably returns ordered time series information either way. We can eliminate an unneeded sort
in favor of comparing the first and last data points in a query result instead.
Context
We are concerned with getting the earliest data point from all of the data series within chartData
. The series data is an array of arrays where the innermost array is a timestamp:value pair. For example:
What are the relevant issue numbers?
Does this MR meet the acceptance criteria?
-
Changelog entry added, if necessary -
Documentation created/updated via this MR -
Documentation reviewed by technical writer or follow-up review issue created -
Tests added for this feature/bug -
Tested in all supported browsers -
Conforms to the code review guidelines -
Conforms to the merge request performance guidelines -
Conforms to the style guides -
Conforms to the database guides -
Link to e2e tests MR added if this MR has Requires e2e tests label. See the Test Planning Process. -
Security reports checked/validated by reviewer
Edited by 🤖 GitLab Bot 🤖