Skip to content

ui: Display root disk size in Compute offering details#4862

Merged
yadvr merged 1 commit intoapache:4.15from
shapeblue:root-disk-svc-off
Apr 1, 2021
Merged

ui: Display root disk size in Compute offering details#4862
yadvr merged 1 commit intoapache:4.15from
shapeblue:root-disk-svc-off

Conversation

@Pearl1594
Copy link
Copy Markdown
Contributor

Description

This PR displays the Root disk size as part of compute offering details if the offering was created with it specified.

Types of changes

  • Breaking change (fix or feature that would cause existing functionality to change)
  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (improves an existing feature and functionality)
  • Cleanup (Code refactoring and cleanup, that may add test cases)

Feature/Enhancement Scale or Bug Severity

Bug Severity

  • BLOCKER
  • Critical
  • Major
  • Minor
  • Trivial

How Has This Been Tested?

Prior to this fix: When a compute offering is created with root disk size specified, there is not indication of this attribute in the corresponding Compute offering's details.

Post fix:
image

@Pearl1594
Copy link
Copy Markdown
Contributor Author

@blueorangutan ui

@blueorangutan
Copy link
Copy Markdown

@Pearl1594 a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress.

@blueorangutan
Copy link
Copy Markdown

UI build: ✔️
Live QA URL: http://qa.cloudstack.cloud:8080/client/pr/4862 (SL-JID-62)

</div>
<div v-else-if="$route.meta.name === 'computeoffering' && item === 'rootdisksize'">
<div>
{{ parseFloat( resource.rootdisksize / (1024.0 * 1024.0 * 1024.0)).toFixed(1) }} GB
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggestion:

I think it would be nice to us to have an utility that centralizes and assures that we always do the same calculation.

@Pearl1594 do you think it would be possible to create an utility to centralize these byte convertions? Like a getGib(value = 1) which return value * 1024 * 1024 * 1024 or value * GiB (GiB would be a constant = 1024 * 1024 * 1024).

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Makes sense.. I can do that. Thanks @GutoVeronezi

@yadvr yadvr added this to the 4.15.1.0 milestone Mar 29, 2021
@yadvr yadvr requested review from davidjumani and utchoang March 30, 2021 08:48
@yadvr yadvr merged commit 69825f6 into apache:4.15 Apr 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants