-
Notifications
You must be signed in to change notification settings - Fork 30
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
Adds column for quota utilization in client list page #1670
Adds column for quota utilization in client list page #1670
Conversation
c8ce31c
to
146ecba
Compare
Signed-off-by: Bipul Adhikari <[email protected]>
146ecba
to
415fe91
Compare
@@ -216,6 +225,9 @@ const ClientsList: React.FC<ClientListProps> = (props) => { | |||
const getOpenshiftVersion = (obj: StorageConsumerKind) => | |||
obj?.status?.client?.platformVersion; | |||
|
|||
const getStorageQuotaUtilizationRatio = (obj: StorageConsumerKind) => | |||
`${obj?.status?.client?.storageQuotaUtilizationRatio}`; |
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.
`${obj?.status?.client?.storageQuotaUtilizationRatio}`; | |
obj?.status?.client?.storageQuotaUtilizationRatio; |
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.
It needs to be string or JSX.Element number is neither
@bipuladh can u plz add the Jira link to the PR description ? |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: bipuladh, SanjalKatiyar 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 |
d61b5ce
into
red-hat-storage:master
@@ -171,6 +175,11 @@ const ClientsList: React.FC<ClientListProps> = (props) => { | |||
column.sort = 'status.storageQuotaInGiB'; | |||
column.props.info = { popover: <StorageQuotaPopoverContent /> }; | |||
break; | |||
case 'storageQuotaUtilRation': |
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.
@bipuladh it should be storageQuotaUtilRatio
Fixes: https://issues.redhat.com/browse/RHSTOR-6481