Cluster search results not showing counts of Devices and VMs #1530

Closed
opened 2025-12-29 16:32:43 +01:00 by adam · 0 comments
Owner

Originally created by @candlerb on GitHub (Feb 2, 2018).

Issue type

[ ] Feature request
[X] Bug report
[ ] Documentation

Environment

  • Python version: 3.5.2
  • NetBox version: 2.2.9

Description

In the global search results page, if any Clusters are found, they have a "Devices" and "VMs" column but this always shows as a dash.

Example: /search/?q=wrn-vm

image

But if I search specifically within clusters, i.e. /virtualization/clusters/?q=wrn-vm, then the correct counts are shown.

I suspect something is missing in ClusterTable but I don't understand the code well enough to fix.

Originally created by @candlerb on GitHub (Feb 2, 2018). ### Issue type [ ] Feature request <!-- An enhancement of existing functionality --> [X] Bug report <!-- Unexpected or erroneous behavior --> [ ] Documentation <!-- A modification to the documentation --> ### Environment * Python version: 3.5.2 * NetBox version: 2.2.9 ### Description In the global search results page, if any Clusters are found, they have a "Devices" and "VMs" column but this always shows as a dash. Example: `/search/?q=wrn-vm` ![image](https://user-images.githubusercontent.com/44789/35735181-ae01c258-081b-11e8-98b9-b7e231dfab76.png) But if I search specifically within clusters, i.e. `/virtualization/clusters/?q=wrn-vm`, then the correct counts are shown. I suspect something is missing in `ClusterTable` but I don't understand the code well enough to fix.
adam added the type: bugstatus: accepted labels 2025-12-29 16:32:43 +01:00
adam closed this issue 2025-12-29 16:32:43 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#1530