Add unit to power port overview on device view #8525

Closed
opened 2025-12-29 20:37:47 +01:00 by adam · 2 comments
Owner

Originally created by @rodvand on GitHub (Aug 28, 2023).

Originally assigned to: @abhi1693 on GitHub.

NetBox version

v3.5.8

Feature type

New functionality

Proposed functionality

On the power ports view within a device, add the unit to the Maximum draw and Allocated draw.
From this:
Screenshot 2023-08-28 at 21 14 29

To this
Screenshot 2023-08-28 at 21 14 29

Use case

Just makes it more apparent for users that the unit of power is W.

Database changes

No response

External dependencies

No response

Originally created by @rodvand on GitHub (Aug 28, 2023). Originally assigned to: @abhi1693 on GitHub. ### NetBox version v3.5.8 ### Feature type New functionality ### Proposed functionality On the power ports view within a device, add the unit to the Maximum draw and Allocated draw. From this: <img width="526" alt="Screenshot 2023-08-28 at 21 14 29" src="https://github.com/netbox-community/netbox/assets/56864/d2a60eab-0466-4b30-b915-29af3e2596f7"> To this <img width="526" alt="Screenshot 2023-08-28 at 21 14 29" src="https://github.com/netbox-community/netbox/assets/56864/fb5f081f-a406-4a7a-85cd-18241ba77fd0"> ### Use case Just makes it more apparent for users that the unit of power is W. ### Database changes _No response_ ### External dependencies _No response_
adam added the status: acceptedtype: feature labels 2025-12-29 20:37:47 +01:00
adam closed this issue 2025-12-29 20:37:47 +01:00
Author
Owner

@jeremystretch commented on GitHub (Nov 9, 2023):

Does it make sense to replicate the unit for each value in the column? It's always going to be the same; maybe annotating it in the column header would be more efficient. Typically we want to avoid attaching units to numeric data, especially when being exported e.g. as CSV.

@jeremystretch commented on GitHub (Nov 9, 2023): Does it make sense to replicate the unit for each value in the column? It's always going to be the same; maybe annotating it in the column header would be more efficient. Typically we want to avoid attaching units to numeric data, especially when being exported e.g. as CSV.
Author
Owner

@jeremystretch commented on GitHub (Nov 9, 2023):

Another option would be to render the unit in the UI, but omit it for CSV export. This would keep the exported data "cleaner" by retaining the native integer format.

@jeremystretch commented on GitHub (Nov 9, 2023): Another option would be to render the unit in the UI, but omit it for CSV export. This would keep the exported data "cleaner" by retaining the native integer format.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#8525