[PR #14992] [MERGED] Issue #14962 VM to merge directly related site context #14496

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/14992
Author: @ChrisPortman
Created: 1/31/2024
Status: Merged
Merged: 2/2/2024
Merged by: @jeremystretch

Base: developHead: issue-14962-vm-context-render-with-site


📝 Commits (2)

📊 Changes

2 files changed (+52 additions, -17 deletions)

View changed files

📝 netbox/extras/querysets.py (+11 -16)
📝 netbox/extras/tests/test_models.py (+41 -1)

📄 Description

Fixes: #14962

Update the code such that site attached context data is accessed via the site attribute on the virtual machine rather than the site attribute on the optionally associated cluster.
Noting that the full_clean of a virtual machine will transpose the cluster's site directly onto the virtual machine if it is not already set.


🔄 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/14992 **Author:** [@ChrisPortman](https://github.com/ChrisPortman) **Created:** 1/31/2024 **Status:** ✅ Merged **Merged:** 2/2/2024 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop` ← **Head:** `issue-14962-vm-context-render-with-site` --- ### 📝 Commits (2) - [`2f19c79`](https://github.com/netbox-community/netbox/commit/2f19c79b4ca159929bff2acfa1ee0a37d0d87bb9) Issue #14962 VM to merge directly related site context - [`8088db9`](https://github.com/netbox-community/netbox/commit/8088db987e996071ae3eae991bd4f96883791fe4) Cleanup & rewrite test ### 📊 Changes **2 files changed** (+52 additions, -17 deletions) <details> <summary>View changed files</summary> 📝 `netbox/extras/querysets.py` (+11 -16) 📝 `netbox/extras/tests/test_models.py` (+41 -1) </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: #14962 <!-- Please include a summary of the proposed changes below. --> Update the code such that site attached context data is accessed via the site attribute on the virtual machine rather than the site attribute on the optionally associated cluster. Noting that the `full_clean` of a virtual machine will transpose the cluster's site directly onto the virtual machine if it is not already set. --- <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:24:49 +01:00
adam closed this issue 2025-12-29 23:24:49 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#14496