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

make cluster resource counters more readable (add commas or convert amounts to more readable measurements) #15873

Open
ITJamie opened this issue Apr 26, 2024 · 2 comments
Assignees
Labels
status: accepted This issue has been accepted for implementation type: feature Introduction of new functionality to the application

Comments

@ITJamie
Copy link
Contributor

ITJamie commented Apr 26, 2024

NetBox version

v4.0-beta1

Feature type

Change to existing functionality

Proposed functionality

adjust the resource counters on the cluster view page to add comma's or change from MB -> GB -> TB
Screenshot 2024-04-26 at 23 47 29

right now it can be kind of unreadable for larger clusters

Use case

when viewing clusters with a large amount of assigned resources (high amounts of ram , CPU or storage) it can be a little hard to read (especially memory as its in MB)

Database changes

n/a

External dependencies

n/a

@ITJamie ITJamie added status: needs triage This issue is awaiting triage by a maintainer type: feature Introduction of new functionality to the application labels Apr 26, 2024
@ITJamie ITJamie changed the title make cluster resource counters more readable (commas or convert amounts to more readable measurements) make cluster resource counters more readable (add commas or convert amounts to more readable measurements) Apr 26, 2024
@jeremystretch
Copy link
Member

We have the humanize_megabytes() template filter in place which does this for certain values, but only for even multiples of 1024. E.g. a value of 4096 MB will display as 4 GB but a value of 4000 MB will not be converted. It seems reasonable to display fractional values, e.g. 2.5 GB, however we also want to ensure that the exact numeric value is always conveyed somehow.

@jeremystretch jeremystretch removed their assignment Apr 29, 2024
@jeremystretch jeremystretch added status: needs owner This issue is tentatively accepted pending a volunteer committed to its implementation and removed status: needs triage This issue is awaiting triage by a maintainer labels Apr 29, 2024
@Julio-Oliveira-Encora
Copy link
Contributor

Could you please assign it to me?

@jeremystretch jeremystretch added status: accepted This issue has been accepted for implementation and removed status: needs owner This issue is tentatively accepted pending a volunteer committed to its implementation labels Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: accepted This issue has been accepted for implementation type: feature Introduction of new functionality to the application
Projects
None yet
Development

No branches or pull requests

3 participants