Tenant Groups list display doesn't show count of tenants #3565

Closed
opened 2025-12-29 18:29:55 +01:00 by adam · 4 comments
Owner

Originally created by @cpmills1975 on GitHub (Apr 14, 2020).

Originally assigned to: @lampwins on GitHub.

Environment

  • Python version: 3.7.7
  • NetBox version: 2.8.0

Steps to Reproduce

  1. Create a bunch of tenant groups
  2. Create a tenant assigned to one of the groups
  3. View the Tenant Groups list at /tenancy/tenant-groups

Expected Behavior

The tenants column should show the number of tenants in the tenant group or sub groups. The rack groups view does this correctly.

Observed Behavior

The 'Tenants' column shows 0 for all tenant groups. Compare this to racks in a rack-group - the rack groups display shows the number of racks in the rack group or in one or it's sub-groups.

Originally created by @cpmills1975 on GitHub (Apr 14, 2020). Originally assigned to: @lampwins on GitHub. ### Environment * Python version: 3.7.7 * NetBox version: 2.8.0 <!-- Describe in detail the exact steps that someone else can take to reproduce this bug using the current stable release of NetBox. Begin with the creation of any necessary database objects and call out every operation being performed explicitly. If reporting a bug in the REST API, be sure to reconstruct the raw HTTP request(s) being made: Don't rely on a client library such as pynetbox. --> ### Steps to Reproduce 1. Create a bunch of tenant groups 2. Create a tenant assigned to one of the groups 3. View the Tenant Groups list at /tenancy/tenant-groups <!-- What did you expect to happen? --> ### Expected Behavior The tenants column should show the number of tenants in the tenant group or sub groups. The rack groups view does this correctly. <!-- What happened instead? --> ### Observed Behavior The 'Tenants' column shows 0 for all tenant groups. Compare this to racks in a rack-group - the rack groups display shows the number of racks in the rack group or in one or it's sub-groups.
adam added the type: bugstatus: under review labels 2025-12-29 18:29:55 +01:00
adam closed this issue 2025-12-29 18:29:55 +01:00
Author
Owner

@jeremystretch commented on GitHub (Apr 14, 2020):

Looks like another caching issue. I'm not able to replicate this with caching disabled. Can you confirm?

@jeremystretch commented on GitHub (Apr 14, 2020): Looks like another caching issue. I'm not able to replicate this with caching disabled. Can you confirm?
Author
Owner

@cpmills1975 commented on GitHub (Apr 14, 2020):

Indeed. Having disabled the cache, it does now show the count of tenants. I'll close this one too!

@cpmills1975 commented on GitHub (Apr 14, 2020): Indeed. Having disabled the cache, it does now show the count of tenants. I'll close this one too!
Author
Owner

@lampwins commented on GitHub (Apr 29, 2020):

@cpmills1975 this should have been resolved in 2.8.1. Can you confirm?

@lampwins commented on GitHub (Apr 29, 2020): @cpmills1975 this should have been resolved in 2.8.1. Can you confirm?
Author
Owner

@lampwins commented on GitHub (May 5, 2020):

I confirmed this is fixed in 2.8.1

@lampwins commented on GitHub (May 5, 2020): I confirmed this is fixed in 2.8.1
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#3565