Bug 2089773

Summary: Pipeline status filter and status colors doesn't work correctly with non-english languages
Product: OpenShift Container Platform Reporter: Christoph Jerolimov <cjerolim>
Component: Dev ConsoleAssignee: Lokananda Prabhu <lprabhu>
Status: CLOSED ERRATA QA Contact: spathak <spathak>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.9CC: jakumar, nmukherj
Target Milestone: ---   
Target Release: 4.12.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-08-10 11:13:40 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:
Bug Depends On:    
Bug Blocks: 2107777    
Attachments:
Description Flags
failed-details-view-non-en.png
none
failed-list-view-non-en.png
none
failed-list-view-en.png
none
failed-detail-view-en.png none

Description Christoph Jerolimov 2022-05-24 12:02:44 UTC
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.

Comment 1 Christoph Jerolimov 2022-05-24 12:03:21 UTC
Created attachment 1882639 [details]
failed-details-view-non-en.png

Comment 2 Christoph Jerolimov 2022-05-24 12:03:40 UTC
Created attachment 1882640 [details]
failed-list-view-non-en.png

Comment 3 Christoph Jerolimov 2022-05-24 12:04:14 UTC
Created attachment 1882641 [details]
failed-list-view-en.png

Comment 4 Christoph Jerolimov 2022-05-24 12:05:14 UTC
Created attachment 1882642 [details]
failed-detail-view-en.png

Comment 7 Christoph Jerolimov 2022-07-25 23:03:02 UTC
Verified on 4.12.0-0.nightly-2022-07-25-122035

Comment 8 errata-xmlrpc 2022-08-10 11:13:40 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 (Important: OpenShift Container Platform 4.11.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-2022:5069