[PR #20345] [MERGED] Closes #19865: Improve CableTypeChoices structure and grouping #15900

Closed
opened 2025-12-30 00:24:40 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/20345
Author: @pheus
Created: 9/12/2025
Status: Merged
Merged: 9/15/2025
Merged by: @jeremystretch

Base: mainHead: 19865-tweak-cable-type-groupings


📝 Commits (1)

  • 755825d feat(dcim): Improve CableTypeChoices structure and grouping

📊 Changes

1 file changed (+56 additions, -11 deletions)

View changed files

📝 netbox/dcim/choices.py (+56 -11)

📄 Description

Fixes: #19865

Summary

Regroups CableTypeChoices into clearer headings to improve scanability of the cable type dropdown. This is a UI‑only change; no slugs or stored values are modified.

Proposed UI grouping

  • Copper — Ethernet (Twisted Pair)
    • CAT3, CAT5, CAT5e, CAT6, CAT6a, CAT7, CAT7a, CAT8, MRJ21 Trunk
  • Copper — Twinax (DAC)
    • Direct Attach Copper (Active), Direct Attach Copper (Passive)
  • Copper — Coaxial
    • Coaxial
  • Fiber — Multimode
    • Multimode Fiber (OM1/OM2/OM3/OM4/OM5)
  • Fiber — Singlemode
    • Singlemode Fiber (OS1/OS2)
  • Fiber — Other / Active
    • Active Optical Cabling (AOC)
  • Other
    • USB, Power

Rationale

Makes the dropdown easier to read by grouping related families; keeps coax generic for now.

Backward compatibility

No breaking changes. Existing API slugs and database values remain unchanged.


🔄 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/20345 **Author:** [@pheus](https://github.com/pheus) **Created:** 9/12/2025 **Status:** ✅ Merged **Merged:** 9/15/2025 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `main` ← **Head:** `19865-tweak-cable-type-groupings` --- ### 📝 Commits (1) - [`755825d`](https://github.com/netbox-community/netbox/commit/755825d298fc78d64ef3f3650f1e18c15c184ba4) feat(dcim): Improve CableTypeChoices structure and grouping ### 📊 Changes **1 file changed** (+56 additions, -11 deletions) <details> <summary>View changed files</summary> 📝 `netbox/dcim/choices.py` (+56 -11) </details> ### 📄 Description <!-- Thank you for your interest in contributing to NetBox! Please note that our contribution policy requires that a feature request or bug report be approved and assigned prior to opening a pull request. This helps avoid wasted time and effort on a proposed change that we might not be able to accept. IF YOUR PULL REQUEST DOES NOT REFERENCE AN ISSUE WHICH HAS BEEN ASSIGNED TO YOU, IT WILL BE CLOSED AUTOMATICALLY. Please specify your assigned issue number on the line below. --> ### Fixes: #19865 ### Summary Regroups `CableTypeChoices` into clearer headings to improve scanability of the cable type dropdown. This is a UI‑only change; no slugs or stored values are modified. ### Proposed UI grouping - **Copper — Ethernet (Twisted Pair)** - CAT3, CAT5, CAT5e, CAT6, CAT6a, CAT7, CAT7a, CAT8, MRJ21 Trunk - **Copper — Twinax (DAC)** - Direct Attach Copper (Active), Direct Attach Copper (Passive) - **Copper — Coaxial** - Coaxial - **Fiber — Multimode** - Multimode Fiber (OM1/OM2/OM3/OM4/OM5) - **Fiber — Singlemode** - Singlemode Fiber (OS1/OS2) - **Fiber — Other / Active** - Active Optical Cabling (AOC) - **Other** - USB, Power ### Rationale Makes the dropdown easier to read by grouping related families; keeps coax generic for now. ### Backward compatibility No breaking changes. Existing API slugs and database values remain unchanged. --- <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-30 00:24:40 +01:00
adam closed this issue 2025-12-30 00:24:41 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#15900