Project

General

Profile

Bug #55176

mgr/dashboard: datatable in Cluster Host page hides wrong column on selection.

Added by Sarthak Gupta over 1 year ago. Updated over 1 year ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Component - Cluster
Target version:
-
% Done:

0%

Source:
Development
Tags:
Backport:
pacific quincy
Regression:
No
Severity:
2 - major
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

Problem:
In the Cluster>Hosts page, on toggling off any columns bellow "Model" like "CPUs", "Cores" etc, the "Model" column get unchecked and hidden and not the one that was unchecked.
This issue was faced in ceph dev env with no hosts.

Reason:
This is due to the fact that for some of the columns the "prop" attribute is for some reason getting set to empty string.

0: {name: 'Hostname', prop: 'hostname', flexGrow: 1, isHidden: false, resizeable: false, }
1: {name: 'Services', prop: 'services', flexGrow: 2, cellTemplate: TemplateRef, isHidden: false, }
2: {name: 'Labels', prop: 'labels', flexGrow: 1, cellTransformation: 'badge', customTemplateConfig: {}, }
3: {name: 'Status', prop: 'status', flexGrow: 1, cellTransformation: 'badge', customTemplateConfig: {}, }
4: {name: 'Model', prop: '', flexGrow: 1, resizeable: false, $$id: 'qw4m', }
5: {name: 'CPUs', prop: '', flexGrow: 0.3, resizeable: false, $$id: 'f1dj', }
6: {name: 'Cores', prop: '', flexGrow: 0.3, resizeable: false, $$id: 'fso9', }
7: {name: 'Total Memory', prop: '', pipe: DimlessBinaryPipe, flexGrow: 0.4, resizeable: false, }
8: {name: 'Raw Capacity', prop: '', pipe: DimlessBinaryPipe, flexGrow: 0.5, resizeable: false, }
9: {name: 'HDDs', prop: '', flexGrow: 0.3, resizeable: false, $$id: 'u1tz', }
10: {name: 'Flash', prop: '', headerTemplate: TemplateRef, flexGrow: 0.3, resizeable: false, }
11: {name: 'NICs', prop: '', flexGrow: 0.3, resizeable: false, $$id: 'od1t', }
length: 12
[[Prototype]]: Array(0)

Ceph_ Cluster _ Hosts .mp4 (608 KB) Sarthak Gupta, 04/04/2022 02:44 PM


Related issues

Copied to Dashboard - Backport #55273: pacific: mgr/dashboard: datatable in Cluster Host page hides wrong column on selection. Resolved
Copied to Dashboard - Backport #55274: quincy: mgr/dashboard: datatable in Cluster Host page hides wrong column on selection. Resolved

History

#1 Updated by Sarthak Gupta over 1 year ago

  • Description updated (diff)

#2 Updated by Sarthak Gupta over 1 year ago

  • Subject changed from mgr/dashboard: data table in Cluster Host page hides wrong column on slection. to mgr/dashboard: datatable in Cluster Host page hides wrong column on selection.

#3 Updated by Sarthak Gupta over 1 year ago

  • Status changed from New to Fix Under Review
  • Pull request ID set to 45790

#4 Updated by Ernesto Puerta over 1 year ago

  • Status changed from Fix Under Review to Pending Backport

#5 Updated by Backport Bot over 1 year ago

  • Copied to Backport #55273: pacific: mgr/dashboard: datatable in Cluster Host page hides wrong column on selection. added

#6 Updated by Backport Bot over 1 year ago

  • Copied to Backport #55274: quincy: mgr/dashboard: datatable in Cluster Host page hides wrong column on selection. added

#7 Updated by Ernesto Puerta over 1 year ago

  • Status changed from Pending Backport to Resolved

Also available in: Atom PDF