Bug 1808437 - monitoring/query-browser doesn't honor order of returned metrics
Summary: monitoring/query-browser doesn't honor order of returned metrics
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Management Console
Version: 4.3.0
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
: 4.4.0
Assignee: Robb Hamilton
QA Contact: Yadan Pei
URL:
Whiteboard:
Depends On: 1808394
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-02-28 14:30 UTC by bpeterse
Modified: 2020-05-04 11:44 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Cause: The query browser results are rendered with a hard-coded sort. Consequence: The hard-coded sort can override the sort specified in the query, thus rendering a different result than requested. Fix: Remove the hard-coded sort so the sort specified in the query is preserved. Result: The results reflect the sort specified in the query.
Clone Of: 1808394
Environment:
Last Closed: 2020-05-04 11:43:34 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Data in Console (276.38 KB, image/png)
2020-03-06 09:15 UTC, Yadan Pei
no flags Details
Data in Prometheus (504.74 KB, image/png)
2020-03-06 09:18 UTC, Yadan Pei
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github openshift console pull 4594 0 None closed [release-4.4] Bug 1808437: remove default sorting from metrics table so query sort is prese… 2020-04-25 17:22:26 UTC
Red Hat Product Errata RHBA-2020:0581 0 None None None 2020-05-04 11:43:59 UTC

Description bpeterse 2020-02-28 14:30:37 UTC
+++ This bug was initially created as a clone of Bug #1808394 +++

Description of problem:

The query browser UI on the OpenShift console doesn't honor the order of returned metrics.

Version-Release number of selected component (if applicable):
OpenShift 4.3.0

How reproducible: Always

Steps to Reproduce:
1.Go to the Monitoring query browser on the OpenShift console
2.Run a query that includes sorting, for example use the sort_desc function (see attachment)

Actual results:
The returned list of metrics is not sorted

Expected results:
If using a query where the order of returned metrics makes sense, the returned list of metrics should be sorted accordingly

Comment 3 Yadan Pei 2020-03-06 09:15:57 UTC
Created attachment 1668029 [details]
Data in Console

Comment 4 Yadan Pei 2020-03-06 09:18:15 UTC
Created attachment 1668030 [details]
Data in Prometheus

Comment 5 Yadan Pei 2020-03-06 09:22:33 UTC
Console just show the data as it is returned from Prometheus, user can still sort the data by themselves 


Verified on 4.4.0-0.nightly-2020-03-05-194612

Comment 7 errata-xmlrpc 2020-05-04 11:43:34 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2020:0581


Note You need to log in before you can comment on or make changes to this bug.