[PR #20986] [MERGED] Fixed #20944: Ensure cached scope fields stay consistent when Region, Site, or Location changes #16107

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/20986
Author: @kprince28
Created: 12/15/2025
Status: Merged
Merged: 12/22/2025
Merged by: @jeremystretch

Base: mainHead: 20944-update-cache-scope-values


📝 Commits (5)

  • 4489e23 Fixed #20944: Update cached scope values in db
  • 7b38a1a refactor code
  • 94bcf0d revert formatting changes
  • 96feeb8 skip triggering save if new instance is created
  • de0e5c1 added comment for cached scope models

📊 Changes

1 file changed (+42 additions, -3 deletions)

View changed files

📝 netbox/dcim/signals.py (+42 -3)

📄 Description

Fixes: #20944


🔄 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/20986 **Author:** [@kprince28](https://github.com/kprince28) **Created:** 12/15/2025 **Status:** ✅ Merged **Merged:** 12/22/2025 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `main` ← **Head:** `20944-update-cache-scope-values` --- ### 📝 Commits (5) - [`4489e23`](https://github.com/netbox-community/netbox/commit/4489e23017a87eb58dbbef370ec5fa1148152d70) Fixed #20944: Update cached scope values in db - [`7b38a1a`](https://github.com/netbox-community/netbox/commit/7b38a1a7b3f55fed61d7d04bd27590cfb8cc37fe) refactor code - [`94bcf0d`](https://github.com/netbox-community/netbox/commit/94bcf0d268cb4fb6bc5242a76ea3e5d3e58daec4) revert formatting changes - [`96feeb8`](https://github.com/netbox-community/netbox/commit/96feeb85078003bcf86223f999367e44febb0d1d) skip triggering save if new instance is created - [`de0e5c1`](https://github.com/netbox-community/netbox/commit/de0e5c17c125d054c32211776af5961aa564388a) added comment for cached scope models ### 📊 Changes **1 file changed** (+42 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `netbox/dcim/signals.py` (+42 -3) </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: #20944 <!-- Please include a summary of the proposed changes below. --> --- <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:25:50 +01:00
adam closed this issue 2025-12-30 00:25:50 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#16107