[PR #19600] [MERGED] Fixes #19487: fix ordering issues with CircuitTerminationTable/TunnelTerminationTable configuration #15676

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/19600
Author: @jnovinger
Created: 5/29/2025
Status: Merged
Merged: 6/4/2025
Merged by: @jnovinger

Base: mainHead: 19487-handle-sorting-termination-throws-field-error


📝 Commits (4)

  • 323173e Fixes #19487: make CircuitTermination.termination GFK not orderable
  • 0c2ac03 Add test to ensure no more broken sorting for CircuitTerminationTable
  • 197554b Fix CircuitTerminationTable.site_group accessor
  • 39373fc Make TunnelTerminationTable.termination GFK field non-orderable

📊 Changes

3 files changed (+28 additions, -3 deletions)

View changed files

📝 netbox/circuits/tables/circuits.py (+3 -2)
netbox/circuits/tests/test_tables.py (+23 -0)
📝 netbox/vpn/tables/tunnels.py (+2 -1)

📄 Description

Fixes: #19487

Fixes both issues mentioned in #19487:

  • Sorting on CircuitTerminationTable.termination ('Termination Point' column) throws FieldError
  • Sorting on TunnelTerminationTable.termination ('Tunnel Interface' column) throws FieldError
  • Adds a regression test

🔄 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/19600 **Author:** [@jnovinger](https://github.com/jnovinger) **Created:** 5/29/2025 **Status:** ✅ Merged **Merged:** 6/4/2025 **Merged by:** [@jnovinger](https://github.com/jnovinger) **Base:** `main` ← **Head:** `19487-handle-sorting-termination-throws-field-error` --- ### 📝 Commits (4) - [`323173e`](https://github.com/netbox-community/netbox/commit/323173e0e2e6102cf2ddb6d45bc815e31031ff4f) Fixes #19487: make CircuitTermination.termination GFK not orderable - [`0c2ac03`](https://github.com/netbox-community/netbox/commit/0c2ac033dd5f40baf4143e71eca4c0b139cfe425) Add test to ensure no more broken sorting for CircuitTerminationTable - [`197554b`](https://github.com/netbox-community/netbox/commit/197554bff1c33a14f9a5ebf9af99056c45f0340c) Fix CircuitTerminationTable.site_group accessor - [`39373fc`](https://github.com/netbox-community/netbox/commit/39373fc53f05e5f4e0e3e71b76d5fcde177d40fe) Make TunnelTerminationTable.termination GFK field non-orderable ### 📊 Changes **3 files changed** (+28 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `netbox/circuits/tables/circuits.py` (+3 -2) ➕ `netbox/circuits/tests/test_tables.py` (+23 -0) 📝 `netbox/vpn/tables/tunnels.py` (+2 -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: #19487 Fixes both issues mentioned in #19487: - Sorting on CircuitTerminationTable.termination ('Termination Point' column) throws `FieldError` - Sorting on TunnelTerminationTable.termination ('Tunnel Interface' column) throws `FieldError` - Adds a regression test <!-- 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:23:21 +01:00
adam closed this issue 2025-12-30 00:23:21 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#15676