[PR #17508] [CLOSED] Closes #16786: Clone device location from rack #15106

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/17508
Author: @alehaa
Created: 9/16/2024
Status: Closed

Base: developHead: 16786-device-location-from-rack


📝 Commits (4)

  • fd309a0 Clone device site and location from rack
  • f5e8e53 Add test cases for device site/location
  • 98ca4b2 Revert "Clone device site and location from rack"
  • add8640 Fix device location check

📊 Changes

2 files changed (+58 additions, -1 deletions)

View changed files

📝 netbox/dcim/models/devices.py (+1 -1)
📝 netbox/dcim/tests/test_models.py (+57 -0)

📄 Description

Fixes: #16786

To fix errors when selecting a rack of a child location being not part of the parent location, the site and location are now always copied from the rack when a device is assigned to a rack.


🔄 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/17508 **Author:** [@alehaa](https://github.com/alehaa) **Created:** 9/16/2024 **Status:** ❌ Closed **Base:** `develop` ← **Head:** `16786-device-location-from-rack` --- ### 📝 Commits (4) - [`fd309a0`](https://github.com/netbox-community/netbox/commit/fd309a0003a8442b4c635a311441dfe8b48a83c0) Clone device site and location from rack - [`f5e8e53`](https://github.com/netbox-community/netbox/commit/f5e8e532832ff1d3bf8ce4e66ca077fcc0d0f6ef) Add test cases for device site/location - [`98ca4b2`](https://github.com/netbox-community/netbox/commit/98ca4b2eef6eff42ed503564561b2a0548d09b3a) Revert "Clone device site and location from rack" - [`add8640`](https://github.com/netbox-community/netbox/commit/add8640514564c79141db31527d677b6673891c1) Fix device location check ### 📊 Changes **2 files changed** (+58 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `netbox/dcim/models/devices.py` (+1 -1) 📝 `netbox/dcim/tests/test_models.py` (+57 -0) </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 waste 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: #16786 <!-- Please include a summary of the proposed changes below. --> To fix errors when selecting a rack of a child location being not part of the parent location, the site and location are now always copied from the rack when a device is assigned to a rack. --- <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:20:03 +01:00
adam closed this issue 2025-12-30 00:20: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#15106