[PR #8573] [MERGED] Fixes 8553: Fix contacts and ASNs missing in the search dropdown and … #13372

Closed
opened 2025-12-29 22:27:02 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/8573
Author: @991jo
Created: 2/7/2022
Status: Merged
Merged: 3/17/2022
Merged by: @jeremystretch

Base: developHead: asn_search_fix


📝 Commits (1)

  • 538984c Fixes 8553: Fix Provider network, ASN, and contact options missings from global search selector

📊 Changes

2 files changed (+224 additions, -195 deletions)

View changed files

📝 netbox/netbox/constants.py (+207 -163)
📝 netbox/netbox/forms.py (+17 -32)

📄 Description

…contacts not showing the number of assigned objects

Fixes: #8553

The contact and ASN object were not shown in the global object search dropdown.
Also the contant queryset used in the global search was not annotated with the assigned_count


🔄 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/8573 **Author:** [@991jo](https://github.com/991jo) **Created:** 2/7/2022 **Status:** ✅ Merged **Merged:** 3/17/2022 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop` ← **Head:** `asn_search_fix` --- ### 📝 Commits (1) - [`538984c`](https://github.com/netbox-community/netbox/commit/538984c6d2a806f2de4e1af4e5d5f510840c6929) Fixes 8553: Fix Provider network, ASN, and contact options missings from global search selector ### 📊 Changes **2 files changed** (+224 additions, -195 deletions) <details> <summary>View changed files</summary> 📝 `netbox/netbox/constants.py` (+207 -163) 📝 `netbox/netbox/forms.py` (+17 -32) </details> ### 📄 Description …contacts not showing the number of assigned objects <!-- Thank you for your interest in contributing to NetBox! Please note that our contribution policy requires that a feature request or bug report be opened for approval prior to filing a pull request. This helps avoid wasting time and effort on something that we might not be able to accept. Please indicate the relevant feature request or bug report below. IF YOUR PULL REQUEST DOES NOT REFERENCE AN ACCEPTED BUG REPORT OR FEATURE REQUEST, IT WILL BE MARKED AS INVALID AND CLOSED. --> ### Fixes: #8553 <!-- Please include a summary of the proposed changes below. --> The contact and ASN object were not shown in the global object search dropdown. Also the contant queryset used in the global search was not annotated with the `assigned_count` --- <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 22:27:02 +01:00
adam closed this issue 2025-12-29 22:27:03 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#13372