Skip to content
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

feat(new-vm): show resource set limits #1563

Merged
merged 7 commits into from
Sep 21, 2016

Conversation

pdonias
Copy link
Member

@pdonias pdonias commented Sep 21, 2016

Fixes #1541

@@ -225,6 +225,38 @@ $select-input-height: 40px; // Bootstrap input height
opacity: 0.6;
}

// LIMITS STYLE ================================================================
Copy link
Member

Choose a reason for hiding this comment

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

Move usage and limits in their own CSS file and import it.

@@ -143,27 +146,19 @@ export default class NewVm extends BaseComponent {
this.state = { state: {} }
}

componentDidMount () {
componentWillMount () {
Copy link
Member

Choose a reason for hiding this comment

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

Remove this change.

}
_getResolvedResourceSet = createSelector(
this._getResourceSet,
resourceSet => resolveResourceSet(resourceSet)
Copy link
Member

Choose a reason for hiding this comment

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

You can simplify this line.

@@ -314,7 +307,9 @@ export default class NewVm extends BaseComponent {

const storeState = store.getState()
const _isInResourceSet = this._getIsInResourceSet()
Copy link
Member

Choose a reason for hiding this comment

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

Remove this _ prefix.

return (
CPUs <= availableCpus &&
memory <= availableMemory &&
sumBy(VDIs, 'size') <= availableDisk
Copy link
Member

Choose a reason for hiding this comment

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

You should handle when some limits are not defined.

@julien-f julien-f assigned olivierlambert and unassigned julien-f Sep 21, 2016
@pdonias pdonias force-pushed the pierre-new-vm-self-service-quotas branch from df15f4f to fa32f5f Compare September 21, 2016 15:52
@olivierlambert olivierlambert merged commit bf49595 into next-release Sep 21, 2016
@julien-f julien-f deleted the pierre-new-vm-self-service-quotas branch September 23, 2016 14:22
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.

None yet

3 participants