[PR #5495] [CLOSED] Fixes: #5301 - Add positions when rack-face is not set #13031

Closed
opened 2025-12-29 22:25:02 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/5495
Author: @DanSheps
Created: 12/18/2020
Status: Closed

Base: developHead: 5301-rack-position-validation


📝 Commits (1)

  • cec66b5 Fixes: #5301 - Add positions when rack-face is not set to force proper field validation

📊 Changes

2 files changed (+37 additions, -0 deletions)

View changed files

📝 netbox/dcim/forms.py (+13 -0)
📝 netbox/utilities/utils.py (+24 -0)

📄 Description

Fixes: #5301

When rack face is not set, but positions are, this will result in a position_choices list being generated with a union between front and rear position choices.


🔄 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/5495 **Author:** [@DanSheps](https://github.com/DanSheps) **Created:** 12/18/2020 **Status:** ❌ Closed **Base:** `develop` ← **Head:** `5301-rack-position-validation` --- ### 📝 Commits (1) - [`cec66b5`](https://github.com/netbox-community/netbox/commit/cec66b5ff48df794a38cf2468a68fd3735498da1) Fixes: #5301 - Add positions when rack-face is not set to force proper field validation ### 📊 Changes **2 files changed** (+37 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `netbox/dcim/forms.py` (+13 -0) 📝 `netbox/utilities/utils.py` (+24 -0) </details> ### 📄 Description ### Fixes: #5301 When rack face is not set, but positions are, this will result in a position_choices list being generated with a union between front and rear position choices. --- <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 22:25:02 +01:00
adam closed this issue 2025-12-29 22:25:03 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#13031