Devices count on site page does not include unracked devices #750

Closed
opened 2025-12-29 16:25:25 +01:00 by adam · 1 comment
Owner

Originally created by @mjclancyau on GitHub (Mar 6, 2017).

Issue type: Bug Report

Python version: Python 2.7.10
NetBox version: 1.9.0-r1

It appears that the devices count on site page does not include unracked devices, the following screencap lists 0 devices:
image

But then clicking on the devices count lists the unracked devices, as follows:

image

Seems to an issue with the way stats.device_count is calculated?

Thanks for any help you can provide.

Kind regards,
Matt

Originally created by @mjclancyau on GitHub (Mar 6, 2017). <!-- Please note: GitHub issues are to be used only for feature requests and bug reports. For installation assistance or general discussion, please join us on the mailing list: https://groups.google.com/forum/#!forum/netbox-discuss Please indicate "bug report" or "feature request" below. Be sure to search the existing set of issues (both open and closed) to see if a similar issue has already been raised. --> ### Issue type: Bug Report <!-- If filing a bug, please indicate the version of Python and NetBox you are running. (This is not necessary for feature requests.) --> **Python version:** Python 2.7.10 **NetBox version:** 1.9.0-r1 <!-- If filing a bug, please record the exact steps taken to reproduce the bug and any errors messages that are generated. If filing a feature request, please precisely describe the data model or workflow you would like to see implemented, and provide a use case. --> It appears that the devices count on site page does not include unracked devices, the following screencap lists 0 devices: ![image](https://cloud.githubusercontent.com/assets/11141825/23593282/96bb8030-0258-11e7-8e95-d1bd2acfbb5e.png) But then clicking on the devices count lists the unracked devices, as follows: ![image](https://cloud.githubusercontent.com/assets/11141825/23593347/7d316c28-0259-11e7-86bd-06d443272c25.png) Seems to an issue with the way stats.device_count is calculated? Thanks for any help you can provide. Kind regards, Matt
adam added the type: bug label 2025-12-29 16:25:25 +01:00
adam closed this issue 2025-12-29 16:25:25 +01:00
Author
Owner

@jeremystretch commented on GitHub (Mar 6, 2017):

Looks like I missed some ORM references while implementing #198. Easy fix.

@jeremystretch commented on GitHub (Mar 6, 2017): Looks like I missed some ORM references while implementing #198. Easy fix.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#750