New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug 1800459: [RFE] Add column Storage Class for PVCs [openshift-4.5] #4339
Bug 1800459: [RFE] Add column Storage Class for PVCs [openshift-4.5] #4339
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: benjaminapetersen, cyril-ui-developer The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@cyril-ui-developer: Bugzilla bug 1800459 is in an unrecognized state (ON_QA) and will not be moved to the MODIFIED state. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/bugzilla refresh |
@TheRealJon: Bugzilla bug 1800459 is in an unrecognized state (ON_QA) and will not be moved to the MODIFIED state. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/bugzilla refresh |
@cyril-ui-developer: Bugzilla bug 1800459 is in an unrecognized state (MODIFIED) and will not be moved to the MODIFIED state. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cyril-ui-developer Sorry I know this is merged, but it looks like we've introduced a bug with the column classes
@@ -36,6 +36,7 @@ const tableColumnClasses = [ | |||
classNames('col-lg-2', 'col-md-2', 'col-sm-4', 'hidden-xs'), | |||
classNames('col-lg-3', 'col-md-3', 'hidden-sm', 'hidden-xs'), | |||
classNames('col-lg-3', 'col-md-3', 'hidden-sm', 'hidden-xs'), | |||
classNames('col-lg-3', 'col-md-3', 'hidden-sm', 'hidden-xs'), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The column classes no longer add up to 12.
We should consider removing Bootstrap grid here as we've done in other places (for instance, https://github.com/openshift/console/blob/master/frontend/public/components/pod.tsx#L97-L108)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cyril-ui-developer Ack, thanks. I did just open a related bug
@@ -116,7 +123,18 @@ const PVCTableRow = ({ obj, index, key, style }) => { | |||
<TableData className={tableColumnClasses[4]}> | |||
{_.get(obj, 'status.capacity.storage', '-')} | |||
</TableData> | |||
<TableData className={tableColumnClasses[5]}> | |||
<TableData className={classNames(tableColumnClasses[5])}> | |||
{obj?.spec?.storageClassName ? ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Optional chaining isn't necessary here. obj.spec
will always be defined
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<ResourceLink | ||
kind="StorageClass" | ||
name={obj?.spec?.storageClassName} | ||
title={obj?.spec?.storageClassName} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd leave off title.
title={obj?.spec?.storageClassName} | ||
/> | ||
) : ( | ||
<div className="text-muted">-</div> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Most places we don't use text-muted
for -
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@spadgett Will address this and the removal of Bootstrap grid on a new PR.
/assign @TheRealJon
/cc @benjaminapetersen @spadgett