Skip to content
This repository was archived by the owner on Apr 28, 2020. It is now read-only.

Conversation

@atiratree
Copy link
Contributor

fixes https://bugzilla.redhat.com/show_bug.cgi?id=1667828

a

I also changed units to Gi in VmCreateDialog StorageTab for more consistent UI

b

@coveralls
Copy link

Pull Request Test Coverage Report for Build 851

  • 10 of 10 (100.0%) changed or added relevant lines in 6 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.03%) to 87.154%

Totals Coverage Status
Change from base Build 665: 0.03%
Covered Lines: 2078
Relevant Lines: 2279

💛 - Coveralls

@coveralls
Copy link

Pull Request Test Coverage Report for Build 674

  • 10 of 10 (100.0%) changed or added relevant lines in 6 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.03%) to 87.154%

Totals Coverage Status
Change from base Build 665: 0.03%
Covered Lines: 2078
Relevant Lines: 2279

💛 - Coveralls

@andybraren
Copy link

I don't have an easy way of checking at the moment, but I believe the rest of OKD's UI includes the "B" in MiB/GiB/TiB, even though the YAML uses the shorthand Mi/Gi/Ti. Should we change to that for consistency? I think they also include a space between the number value and unit label: "4 GiB".

@atiratree
Copy link
Contributor Author

I think they also include a space between the number value and unit label: "4 GiB".

there is 1Gi in pvc detail for example.

We are also showing the Gi shorthand in the disks table as seen in the picture.
The consistency is the way to go, but I don't know what is better solution. IMO shorthands are better, because they are the native k8s format.

@rawagner
Copy link
Contributor

Gi in PVC detail but GiB in new PVC form. So tectonic itself has inconsistencies. Also they do not add space between number and unit (based on PVC detail)

@rawagner rawagner merged commit a94ea14 into kubevirt:master Feb 21, 2019
@atiratree
Copy link
Contributor Author

@andybraren maybe you can bring up the issue somewhere higher to get the whole UI consistent?

@andybraren
Copy link

andybraren commented Feb 21, 2019

I was wrong - using 4Gi without a space is okay for the reasons you both noted. I agree this is something we need to figure out at a higher level, but since shorthand is the native k8s format that's a strong reason to use this format (even though it will look even less familiar to virtualization users expecting to see GB/TB).

Weirdly, clicking the unit dropdown in the Add PVC form changes GiB to shorthand units. A bug?

pvc-unit-change

@atiratree
Copy link
Contributor Author

seems like it, nevertheless this should go to https://github.com/openshift/console

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants