[PR #18634] [MERGED] Fixes #18594: asn_count sort in Sites list #15398

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/18634
Author: @jnovinger
Created: 2/12/2025
Status: Merged
Merged: 2/20/2025
Merged by: @jeremystretch

Base: mainHead: 18594-fix-asn_count-ordering


📝 Commits (2)

  • 5a0f429 Fixes #18594: asn_count sort in Sites list
  • 88a7e26 Fixes similar issue in circuits.views.ProviderListView

📊 Changes

4 files changed (+5 additions, -4 deletions)

View changed files

📝 netbox/circuits/tables/providers.py (+0 -1)
📝 netbox/circuits/views.py (+3 -1)
📝 netbox/dcim/tables/sites.py (+0 -1)
📝 netbox/dcim/views.py (+2 -1)

📄 Description

Fixes: #18594 - Site list can now be sorted by the asn_count column

Changes:

  • adds asn_count annotation
  • removes now unnecessary accessor argument for asn_count column

🔄 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/18634 **Author:** [@jnovinger](https://github.com/jnovinger) **Created:** 2/12/2025 **Status:** ✅ Merged **Merged:** 2/20/2025 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `main` ← **Head:** `18594-fix-asn_count-ordering` --- ### 📝 Commits (2) - [`5a0f429`](https://github.com/netbox-community/netbox/commit/5a0f429e9320dd1334d0c5fafe304a3a8c1dabd2) Fixes #18594: asn_count sort in Sites list - [`88a7e26`](https://github.com/netbox-community/netbox/commit/88a7e26189c9d688f8da83c839e557319d954ce8) Fixes similar issue in `circuits.views.ProviderListView` ### 📊 Changes **4 files changed** (+5 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `netbox/circuits/tables/providers.py` (+0 -1) 📝 `netbox/circuits/views.py` (+3 -1) 📝 `netbox/dcim/tables/sites.py` (+0 -1) 📝 `netbox/dcim/views.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: #18594 - Site list can now be sorted by the `asn_count` column Changes: - adds `asn_count` annotation - removes now unnecessary `accessor` argument for `asn_count` column <!-- 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:21:42 +01:00
adam closed this issue 2025-12-30 00:21:42 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#15398