Extend #10268 and display whole rack-units for device-type, child device positions #7025

Closed
opened 2025-12-29 19:48:02 +01:00 by adam · 1 comment
Owner

Originally created by @phurrelmann on GitHub (Sep 26, 2022).

Originally assigned to: @phurrelmann on GitHub.

NetBox version

v3.3.4

Feature type

Change to existing functionality

Proposed functionality

Since introduction of half rack-units, the rack-units for device-type and child device positions are always displayed as floats.
The changes done with #10268 should also be added to device-type and child device position on the device details view.

Please assign to me if accepted. I'll try to flesh out a PR for that.

Use case

Rack-positions shown as "1.0" can easily be misread as "10" and thus should be avoided where possible. Additionally this restores the pre v3.3 behavior.

Database changes

none, change should only be cosmetic

External dependencies

none

Originally created by @phurrelmann on GitHub (Sep 26, 2022). Originally assigned to: @phurrelmann on GitHub. ### NetBox version v3.3.4 ### Feature type Change to existing functionality ### Proposed functionality Since introduction of half rack-units, the rack-units for device-type and child device positions are always displayed as floats. The changes done with #10268 should also be added to device-type and child device position on the device details view. Please assign to me if accepted. I'll try to flesh out a PR for that. ### Use case Rack-positions shown as "1.0" can easily be misread as "10" and thus should be avoided where possible. Additionally this restores the pre v3.3 behavior. ### Database changes none, change should only be cosmetic ### External dependencies none
adam added the status: acceptedtype: feature labels 2025-12-29 19:48:02 +01:00
adam closed this issue 2025-12-29 19:48:02 +01:00
Author
Owner

@phurrelmann commented on GitHub (Sep 27, 2022):

I have a PR ready for this: https://github.com/netbox-community/netbox/compare/develop...phurrelmann:netbox:10465-display-whole-rackunits

@phurrelmann commented on GitHub (Sep 27, 2022): I have a PR ready for this: https://github.com/netbox-community/netbox/compare/develop...phurrelmann:netbox:10465-display-whole-rackunits
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#7025