[PR #18351] [MERGED] Fixes: #18350 - Remove 'site' and 'provider_network' from CircuitTerminationIndex.display_attrs #15329

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/18351
Author: @bctiemann
Created: 1/8/2025
Status: Merged
Merged: 1/17/2025
Merged by: @jeremystretch

Base: mainHead: 18350-remove-scoping-fields-on-CircuitTerminationIndex


📝 Commits (3)

  • 2030e9f Remove 'site' and 'provider_network' from CircuitTerminationIndex.display_attrs
  • cafdfd7 Use '_site' and '_provider_network' in display_attrs
  • 2911441 Replace private fields with 'termination'

📊 Changes

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

View changed files

📝 netbox/circuits/search.py (+1 -1)

📄 Description

Fixes: #18350

As CircuitTermination has been refactored to move the fields site and provider_network to the new scoping model, this change uses the new internal (cached) versions of those fields in the displayed attributes in search results, resolving a crash condition.


🔄 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/18351 **Author:** [@bctiemann](https://github.com/bctiemann) **Created:** 1/8/2025 **Status:** ✅ Merged **Merged:** 1/17/2025 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `main` ← **Head:** `18350-remove-scoping-fields-on-CircuitTerminationIndex` --- ### 📝 Commits (3) - [`2030e9f`](https://github.com/netbox-community/netbox/commit/2030e9fe3a38946674fa2245e641dd15d8f1cc2d) Remove 'site' and 'provider_network' from CircuitTerminationIndex.display_attrs - [`cafdfd7`](https://github.com/netbox-community/netbox/commit/cafdfd70f50104fd3913f79f8ca84b7ec9216223) Use '_site' and '_provider_network' in display_attrs - [`2911441`](https://github.com/netbox-community/netbox/commit/2911441cd1a73e44318db24fbf99530a66314197) Replace private fields with 'termination' ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `netbox/circuits/search.py` (+1 -1) </details> ### 📄 Description ### Fixes: #18350 As `CircuitTermination` has been refactored to move the fields `site` and `provider_network` to the new scoping model, this change uses the new internal (cached) versions of those fields in the displayed attributes in search results, resolving a crash condition. --- <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:21:18 +01:00
adam closed this issue 2025-12-30 00:21:18 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#15329