Skip to content

Conversation

@TheRealJon
Copy link

@TheRealJon TheRealJon commented Jun 27, 2019

Adjust to account for new return format of humanize functions in frontend/public/components/utils/units.js

openshift#1723 (comment)

Copy link
Owner

@rawagner rawagner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for PR! Sorry for forgetting updating all these :/

I think there is still one humanize* function usage which is not updated https://github.com/rawagner/console/blob/dashboard-capacity-2/frontend/public/components/image-stream-tag.tsx#L44 .Should be const humanizedSize = _.isFinite(size) && humanizeBinaryBytes(size).string;



export type MutatorFunction = (value: string | number, options?: any) => string;
export type HumanizeFunction = (value: string | number, initialUnit?: string, preferredUnit?: string) => {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, yeah that works too. Didn't realize that was there.

@rawagner rawagner merged commit b7399f3 into rawagner:dashboard-capacity-2 Jun 28, 2019
@TheRealJon TheRealJon deleted the fix-humanize-callbacks branch August 5, 2019 13:59
rawagner pushed a commit that referenced this pull request Aug 15, 2019
rawagner pushed a commit that referenced this pull request Oct 30, 2019
rawagner pushed a commit that referenced this pull request Dec 9, 2019
Adds test case to check cluster's health before and after adding capacity
rawagner pushed a commit that referenced this pull request Aug 17, 2021
rawagner pushed a commit that referenced this pull request Aug 17, 2021
…ants

Bug 1993975: remove kubevirt dependants #1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants