Bug 2040180 - Bug when adding a new table panel to a dashboard for OCP UI with only one value column
Summary: Bug when adding a new table panel to a dashboard for OCP UI with only one val...
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Monitoring
Version: 4.9
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
: 4.11.0
Assignee: Gabriel Bernal
QA Contact: hongyan li
Depends On:
TreeView+ depends on / blocked
Reported: 2022-01-13 08:07 UTC by Shirly Radco
Modified: 2022-08-10 10:42 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
Last Closed: 2022-08-10 10:42:08 UTC
Target Upstream Version:

Attachments (Terms of Use)
screenshot1 (18.77 KB, image/png)
2022-01-13 08:07 UTC, Shirly Radco
no flags Details

System ID Private Priority Status Summary Last Updated
Github openshift console pull 11327 0 None open Bug 2040180: handle dashboards single column case 2022-04-14 04:21:29 UTC
Red Hat Product Errata RHSA-2022:5069 0 None None None 2022-08-10 10:42:38 UTC

Description Shirly Radco 2022-01-13 08:07:35 UTC
Created attachment 1850516 [details]

Description of problem:
There is a bug when adding a new table panel to a dashboard for OCP UI with only one value column. 
You have to manually update the "pattern" of the value label from "Value" to "Value #A" in order for it to have the unit and type apply correctly in the OCP UI. 
This doesn't work in Grafana. 
We should be able to use "Value" when there is only one value column.

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

How reproducible:

Steps to Reproduce:
1.Create a table panel with only one value column
2.Apply unit and type to the column
3.Check that "pattern" of this column is "Value"
4.After loading to OCP UI dashboards check the value column in the dashboard.

Actual results:
Value is empty if we use "pattern": "Value".

Expected results:
We should see the value in the panel with the correct type and unit.

Additional info:

Comment 2 Andrew Pickering 2022-01-25 08:00:20 UTC
Shirly, are you able to attach the full dashboard JSON to this ticket? Ideally both the automatically generated JSON (with "Value") and the manually updated JSON (with "Value #A").

I confirmed that the code currently only supports the `Value #...` pattern (look for "Value #" in https://github.com/openshift/console/blob/master/frontend/public/components/monitoring/dashboards/table.tsx).

Comment 3 Shirly Radco 2022-02-16 09:45:02 UTC
The Top Consumers dashboard currently has 7 panels that only have 1 value and they display correctly in the OCP UI, only because I added the "Value #A" instead of "Value".
If you take the json and use it in Grafana it will not display correctly.

Comment 4 hongyan li 2022-04-14 08:46:29 UTC
reproduced the issue with 4.11.0-0.ci.test-2022-04-14-064910-ci-ln-fkvn3jt-latest

Comment 6 hongyan li 2022-04-14 09:42:20 UTC
Test pass with PR

dashboard display see attachment.

Comment 11 errata-xmlrpc 2022-08-10 10:42:08 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.


Note You need to log in before you can comment on or make changes to this bug.