[PR #9571] [MERGED] Closes #51: Half height rack units #13487

Closed
opened 2025-12-29 23:19:09 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/9571
Author: @jeremystretch
Created: 6/20/2022
Status: Merged
Merged: 6/20/2022
Merged by: @jeremystretch

Base: featureHead: 51-half-height-rack-units


📝 Commits (7)

  • 84f0561 Initial work on half-height RUs
  • 0c915f7 Clean up rack elevation rendering
  • ae12948 Refactor device rendering methods
  • 278891c Fix rack utilization calculation
  • 0d6d68c Fix YAML representation of decimal values
  • 4ced0be Clean up rack model tests
  • 103729c Add test for 0.5U devices

📊 Changes

11 files changed (+403 additions, -320 deletions)

View changed files

📝 docs/release-notes/version-3.3.md (+11 -0)
📝 netbox/dcim/api/serializers.py (+22 -2)
📝 netbox/dcim/forms/models.py (+1 -1)
netbox/dcim/migrations/0154_half_height_rack_units.py (+23 -0)
📝 netbox/dcim/models/devices.py (+9 -5)
📝 netbox/dcim/models/racks.py (+33 -28)
📝 netbox/dcim/svg.py (+181 -168)
📝 netbox/dcim/tests/test_api.py (+4 -4)
📝 netbox/dcim/tests/test_models.py (+103 -111)
📝 netbox/utilities/forms/utils.py (+0 -1)
📝 netbox/utilities/utils.py (+16 -0)

📄 Description

Closes: #51

  • Change DeviceType u_height and Device position fields to decimal types
  • Permit the installation of devices at 0.5U intervals within a rack
  • Completely overhaul rack elevation SVG rendering
  • Clean up & extend rack model tests

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbox-community/netbox/pull/9571 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 6/20/2022 **Status:** ✅ Merged **Merged:** 6/20/2022 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `feature` ← **Head:** `51-half-height-rack-units` --- ### 📝 Commits (7) - [`84f0561`](https://github.com/netbox-community/netbox/commit/84f056171286d18c1c14a2fc9d28155a7dcf169a) Initial work on half-height RUs - [`0c915f7`](https://github.com/netbox-community/netbox/commit/0c915f7de9612c7485da3713cc6d63f368698a5d) Clean up rack elevation rendering - [`ae12948`](https://github.com/netbox-community/netbox/commit/ae129485583afe89c9bfa51d301f10de3a96a37d) Refactor device rendering methods - [`278891c`](https://github.com/netbox-community/netbox/commit/278891c262a49ef29079e2b4af186af265567555) Fix rack utilization calculation - [`0d6d68c`](https://github.com/netbox-community/netbox/commit/0d6d68c62fac1072b78ebfd91863b5405beb61a6) Fix YAML representation of decimal values - [`4ced0be`](https://github.com/netbox-community/netbox/commit/4ced0bed13a86b2f87788ed104944c5c1752e737) Clean up rack model tests - [`103729c`](https://github.com/netbox-community/netbox/commit/103729c0855aad2f45fcaa2cf680799236f3e201) Add test for 0.5U devices ### 📊 Changes **11 files changed** (+403 additions, -320 deletions) <details> <summary>View changed files</summary> 📝 `docs/release-notes/version-3.3.md` (+11 -0) 📝 `netbox/dcim/api/serializers.py` (+22 -2) 📝 `netbox/dcim/forms/models.py` (+1 -1) ➕ `netbox/dcim/migrations/0154_half_height_rack_units.py` (+23 -0) 📝 `netbox/dcim/models/devices.py` (+9 -5) 📝 `netbox/dcim/models/racks.py` (+33 -28) 📝 `netbox/dcim/svg.py` (+181 -168) 📝 `netbox/dcim/tests/test_api.py` (+4 -4) 📝 `netbox/dcim/tests/test_models.py` (+103 -111) 📝 `netbox/utilities/forms/utils.py` (+0 -1) 📝 `netbox/utilities/utils.py` (+16 -0) </details> ### 📄 Description ### Closes: #51 - Change DeviceType `u_height` and Device `position` fields to decimal types - Permit the installation of devices at 0.5U intervals within a rack - Completely overhaul rack elevation SVG rendering - Clean up & extend rack model tests --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 23:19:09 +01:00
adam closed this issue 2025-12-29 23:19:09 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#13487