Bug 1985895

Summary: Order by 'Latest version' doesn't work on CustomResourceDefinitions list page
Product: OpenShift Container Platform Reporter: Yadan Pei <yapei>
Component: Management ConsoleAssignee: Rastislav Wagner <rawagner>
Status: CLOSED ERRATA QA Contact: Yadan Pei <yapei>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.9CC: aos-bugs, jokerman, rhamilto, spadgett, yapei
Target Milestone: ---   
Target Release: 4.9.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-10-18 17:41:09 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Yadan Pei 2021-07-26 07:56:25 UTC
Description of problem:
when trying to change order of apiVersion on CustomResourceDefinitions list page , the sorting doesn't work as expected

Version-Release number of selected component (if applicable):
4.9.0-0.nightly-2021-07-25-125326

How reproducible:
Always

Steps to Reproduce:
1. admin user goes to CustomResourceDefinitions list page /k8s/cluster/customresourcedefinitions
2. Click the arrow to change data order of 'Latest version' column
3.

Actual results:
2. the order result is not correct

Expected results:
2. the results should be ordered correctly

Additional info:

Comment 1 Robb Hamilton 2021-07-26 14:30:22 UTC
It looks like `sortFunc` is broken everywhere and not just on the CRD apiVersion col.  I believe https://github.com/openshift/console/commit/3f127123faf52d7ef4effee4a98b093c63ee08f6#diff-88910eaad88244e5a1a05c0af91ff4e2691f9b916abf4a77575db876414b1b15 is the last good commit.  Raising the severity as a result of this affecting all tables using `sortFunc`.

Comment 2 Robb Hamilton 2021-07-26 14:58:12 UTC
This bug appears to have been introduced with https://github.com/openshift/console/pull/8756

Comment 4 Yadan Pei 2021-07-30 02:20:05 UTC
The original issue that sorting by 'Latest version' doesn't work on CustomResourceDefinitions list page has been fixed.

Also checked some other sorting on resources list page, such as Pods list, Projects list, Nodes list page, all sorting is working as expected now


Verified on 4.9.0-0.nightly-2021-07-29-103526

Comment 7 errata-xmlrpc 2021-10-18 17:41:09 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 (Moderate: OpenShift Container Platform 4.9.0 bug fix and security update), 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/RHSA-2021:3759