Bug 2107777

Summary: Pipeline status filter and status colors doesn't work correctly with non-english languages
Product: OpenShift Container Platform Reporter: OpenShift BugZilla Robot <openshift-bugzilla-robot>
Component: Dev ConsoleAssignee: Lokananda Prabhu <lprabhu>
Status: CLOSED ERRATA QA Contact: spathak <spathak>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.9CC: cjerolim, nmukherj
Target Milestone: ---   
Target Release: 4.11.z   
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: 2022-08-23 15:08:36 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: 2089773    
Bug Blocks:    

Description OpenShift BugZilla Robot 2022-07-16 04:31:03 UTC
+++ This bug was initially created as a clone of Bug #2089773 +++

Description of problem:
1. When the user selects another language, the status filter on the `Pipeline` list page shows only zeros.

2. The `Pipeline` list page also doesn't show the right status colors for the last `PipelineRun` anymore. Instead of a green or red progress bar it shows just a blue progress bar.

3. If an error happens the user can also not check the log-tail directly from the list view.

4. On the `PipelineRun` detail page the pipeline visualization, and status doesn't use the right colors as well.

5. Similar on the TaskRun and Logs tab.


Version-Release number of selected component (if applicable):
4.9-4.11

How reproducible:
Always

Steps to Reproduce:
1. Install OpenShift Pipelines operator
2. Import a component and enable Pipelines support (or create a Pipeline manually)
3. Navigate to the Pipeline list and inspect the colors
4. Open another tab to switch the language
5. Refresh the Pipeline list browser tab.

Actual results:
See the 5 spots where the colors are expected. All of them are blue for the translated languages.

Expected results:
The colors should be similar to the English version, green and red.

Additional info:
It looks like that the mapping is using a status label instead of a status id to lookup the colors.

--- Additional comment from cjerolim on 2022-05-24 12:03:21 UTC ---

Created attachment 1882639 [details]
failed-details-view-non-en.png

--- Additional comment from cjerolim on 2022-05-24 12:03:40 UTC ---

Created attachment 1882640 [details]
failed-list-view-non-en.png

--- Additional comment from cjerolim on 2022-05-24 12:04:14 UTC ---

Created attachment 1882641 [details]
failed-list-view-en.png

--- Additional comment from cjerolim on 2022-05-24 12:05:14 UTC ---

Created attachment 1882642 [details]
failed-detail-view-en.png

Comment 4 spathak@redhat.com 2022-08-18 06:27:39 UTC
Verified on build version: 4.11.0-0.nightly-2022-08-17-010007
Browser version: Chrome 103

Comment 6 errata-xmlrpc 2022-08-23 15:08:36 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.11.1 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-2022:6103