Display 'Stats' for tenant groups as well as tenants #3567

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

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

Environment

  • Python version: 3.7.7
  • NetBox version: 2.8.0

Proposed Functionality

When clicking on a tenant (/tenancy/tenants/tenant-name), the details of the tenant is shown along with a 'Stats' panel showing the primary objects 'owned' by that tenant. Clicking on one of the 'primary' types, for example 'Devices' takes the user to the devices page pre-filtered with the selected tenant (/dcim/devices/?tenant=tenant-name).

I'd like to suggest that rather than having the tenant group name link to the list of tenants, it directs to a page similar to the tenant display showing the stats panel for all objects assigned to a tenant under that group. Clicking on on one of the boxes in the stats panel will direct to the list view for that type, filtered by tenant group rather than an individual tenant (e.g. /dcim/devices/?q=&tenant_group=group-name)

To address the loss of a view showing lists of tenants within a group, I'd propose adding another item to the stats panel showing 'tenants' - the stats panel currently contains 11 items arranged in four rows of three, so an additional one for tenants would work perfectly.

Alternatively, would a hybrid view be possible? Perhaps clicking on a tenant group could show the stats panel on the right and a list of contained tenant groups (just like the existing tenant groups list view) on the left?

Obviously the ability to view devices by tenant group already exists, so these enhancements are purely UI enhancements.

Use Case

Equipment, VMs, etc are usually purchased/requested by a project. A project is usually part of a team and a team is part of a department. This project/team/department modelling is now available using nested tenant groups. Allowing users to view everything 'owned' by a team or a department as well as a project (tenant) would be useful. The functionality to do this already exists by filtering each of the lists by tenant group, but this enhancement reduces the number of clicks to achieve that.

Database Changes

None required.

External Dependencies

None.

Originally created by @cpmills1975 on GitHub (Apr 14, 2020). <!-- NOTE: IF YOUR ISSUE DOES NOT FOLLOW THIS TEMPLATE, IT WILL BE CLOSED. This form is only for proposing specific new features or enhancements. If you have a general idea or question, please post to our mailing list instead of opening an issue: https://groups.google.com/forum/#!forum/netbox-discuss NOTE: Due to an excessive backlog of feature requests, we are not currently accepting any proposals which significantly extend NetBox's feature scope. Please describe the environment in which you are running NetBox. Be sure that you are running an unmodified instance of the latest stable release before submitting a bug report. --> ### Environment * Python version: 3.7.7 * NetBox version: 2.8.0 <!-- Describe in detail the new functionality you are proposing. Include any specific changes to work flows, data models, or the user interface. --> ### Proposed Functionality When clicking on a tenant (/tenancy/tenants/tenant-name), the details of the tenant is shown along with a 'Stats' panel showing the primary objects 'owned' by that tenant. Clicking on one of the 'primary' types, for example 'Devices' takes the user to the devices page pre-filtered with the selected tenant (/dcim/devices/?tenant=tenant-name). I'd like to suggest that rather than having the tenant group name link to the list of tenants, it directs to a page similar to the tenant display showing the stats panel for all objects assigned to a tenant under that group. Clicking on on one of the boxes in the stats panel will direct to the list view for that type, filtered by tenant group rather than an individual tenant (e.g. /dcim/devices/?q=&tenant_group=group-name) To address the loss of a view showing lists of tenants within a group, I'd propose adding another item to the stats panel showing 'tenants' - the stats panel currently contains 11 items arranged in four rows of three, so an additional one for tenants would work perfectly. Alternatively, would a hybrid view be possible? Perhaps clicking on a tenant group could show the stats panel on the right and a list of contained tenant groups (just like the existing tenant groups list view) on the left? Obviously the ability to view devices by tenant group already exists, so these enhancements are purely UI enhancements. <!-- Convey an example use case for your proposed feature. Write from the perspective of a NetBox user who would benefit from the proposed functionality and describe how. ---> ### Use Case Equipment, VMs, etc are usually purchased/requested by a project. A project is usually part of a team and a team is part of a department. This project/team/department modelling is now available using nested tenant groups. Allowing users to view everything 'owned' by a team or a department as well as a project (tenant) would be useful. The functionality to do this already exists by filtering each of the lists by tenant group, but this enhancement reduces the number of clicks to achieve that. <!-- Note any changes to the database schema necessary to support the new feature. For example, does the proposal require adding a new model or field? (Not all new features require database changes.) ---> ### Database Changes None required. <!-- List any new dependencies on external libraries or services that this new feature would introduce. For example, does the proposal require the installation of a new Python package? (Not all new features introduce new dependencies.) --> ### External Dependencies None.
adam closed this issue 2025-12-29 18:29:55 +01:00
Author
Owner

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

NetBox does not provide dedicated views for organizational models such as tenant groups, rack groups, etc. This may change in the future but the current view structure does not allow for it.

@jeremystretch commented on GitHub (Apr 14, 2020): NetBox does not provide dedicated views for organizational models such as tenant groups, rack groups, etc. This may change in the future but the current view structure does not allow for it.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#3567