Bug 1902003

Summary: Jobs Completions column is not sorting when there are "0 of 1" and "1 of 1" in the list.
Product: OpenShift Container Platform Reporter: Rejeeb <rabdulra>
Component: Management ConsoleAssignee: Steve Goodwin <sgoodwin>
Status: CLOSED ERRATA QA Contact: Yadan Pei <yapei>
Severity: low Docs Contact:
Priority: low    
Version: 4.4CC: aos-bugs, jhadvig, jokerman, yapei
Target Milestone: ---   
Target Release: 4.8.0   
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Cause: The Jobs table completions column was sorting on the number of 'Desired' completions, instead of 'Succeeded' completions. Consequence: The data is presented as "# Succeeded of # Desired" so when sorting by that column the results looked confusing, since it was sorting on the second number. Fix: The Jobs completions column now sorts on the # Succeeded for better understanding. Result:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-07-27 22:34:25 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:
Description Flags
Descending Sort
Ascending Sort
Ascending sort working
Descending sort working none

Description Rejeeb 2020-11-26 15:03:53 UTC
Created attachment 1733775 [details]
Descending Sort

Description of problem:
Jobs Completions column is not sorting when there are "0 of 1" and "1 of 1" in the list.

Version-Release number of selected component (if applicable):
Tested and Verified in OpenShift v4.4.27

How reproducible:

Steps to Reproduce:
1. Open Administrator Panel and select Jobs sub-menu.
2. Try to sort the column using the `Completions` parameter.

Actual results:

If the Jobs Completions column contains "0 of 1" and "1 of 1" in the list, then the sorting is not having any effect.

Expected results:

We should be able to sort according to the completion.

Additional info:

Attaching the screenshot showing the same.

Comment 1 Rejeeb 2020-11-26 15:04:40 UTC
Created attachment 1733776 [details]
Ascending Sort

Comment 2 Jakub Hadvig 2020-12-23 16:19:41 UTC
We did not have time to fix this issue this sprint. Will reevaluate and try to fix in next sprint.

Comment 4 Yadan Pei 2021-02-18 03:51:29 UTC
Created attachment 1757688 [details]
Ascending sort working

Comment 5 Yadan Pei 2021-02-18 03:54:42 UTC
Created attachment 1757689 [details]
Descending sort working

Create two jobs which has `0 of 3` and `1 of 1` for Completion column, sorting works correctly now.

Verified on 4.8.0-0.nightly-2021-02-18-001523

Comment 8 errata-xmlrpc 2021-07-27 22:34:25 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.8.2 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.