Bug 1808437

Summary: monitoring/query-browser doesn't honor order of returned metrics
Product: OpenShift Container Platform Reporter: bpeterse
Component: Management ConsoleAssignee: Robb Hamilton <rhamilto>
Status: CLOSED ERRATA QA Contact: Yadan Pei <yapei>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.3.0CC: akonarde, anpicker, aos-bugs, jokerman, rhamilto, yapei
Target Milestone: ---   
Target Release: 4.4.0   
Hardware: All   
OS: Linux   
Whiteboard:
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.
Story Points: ---
Clone Of: 1808394 Environment:
Last Closed: 2020-05-04 11:43:34 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1808394    
Bug Blocks:    
Attachments:
Description Flags
Data in Console
none
Data in Prometheus none

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