Tags WebUI count doesn't match API #2557

Closed
opened 2025-12-29 18:19:56 +01:00 by adam · 1 comment
Owner

Originally created by @pm17788 on GitHub (Apr 26, 2019).

Environment

  • Python version: 3.5.2
  • NetBox version: 2.5.8

Steps to Reproduce

  1. Browse to: https://NetBoxURL/extras/tags, see count of tags (ex: 25)
  2. Browse to: https://NetBoxURL/api/extras/tags, see count which is an aggregate of all tagged items, rather then the count of distinct tags in NetBox

Expected Behavior

API count of tags should match the WebUI and the API

Observed Behavior

API count of tags doesn't match the WebUI, or the behavior of count variable on other API endpoints.

Originally created by @pm17788 on GitHub (Apr 26, 2019). ### Environment * Python version: 3.5.2 * NetBox version: 2.5.8 ### Steps to Reproduce 1. Browse to: https://NetBoxURL/extras/tags, see count of tags (ex: 25) 2. Browse to: https://NetBoxURL/api/extras/tags, see count which is an aggregate of *all* tagged items, rather then the count of distinct tags in NetBox ### Expected Behavior API count of tags should match the WebUI and the API ### Observed Behavior API count of tags doesn't match the WebUI, or the behavior of `count` variable on other API endpoints.
adam added the type: bugstatus: accepted labels 2025-12-29 18:19:56 +01:00
adam closed this issue 2025-12-29 18:19:56 +01:00
Author
Owner

@pm17788 commented on GitHub (May 9, 2019):

@jeremystretch: Just tested on 2.5.12, and this appears to still be an issue.
https://netbox-dev/api/extras/tags/ still returns as its top-most thing:

{
    "count": 4436,
    "next": "https://netbox-dev/api/extras/tags/?limit=150&offset=150",
    "previous": null,
    "results": [
<SNIP Much Data>

I only have 25 distinct tags (per https://netbox-dev/extras/tags/)
Am I misunderstanding the purpose of the /api/extras/tags endpoint?

@pm17788 commented on GitHub (May 9, 2019): @jeremystretch: Just tested on 2.5.12, and this appears to still be an issue. https://netbox-dev/api/extras/tags/ still returns as its top-most thing: ```json { "count": 4436, "next": "https://netbox-dev/api/extras/tags/?limit=150&offset=150", "previous": null, "results": [ <SNIP Much Data> ``` I only have 25 distinct tags (per https://netbox-dev/extras/tags/) Am I misunderstanding the purpose of the `/api/extras/tags` endpoint?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#2557