netbox icon indicating copy to clipboard operation
netbox copied to clipboard

Add ability to display parent location on dcim locations table

Open drossy opened this issue 1 year ago • 4 comments

NetBox version

v3.6.4

Feature type

Change to existing functionality

Proposed functionality

Add parent location to the fields able to be displayed on the Locations table displayed on /dcim/locations.

Use case

Adding the ability to display the parent Location on the /dcim/locations page would make it easier to distinguish between identically named Locations which have different Location hierarchies in the same Site.

We are looking to implement a new hierarchy in our netbox instance where our data centre is a Site and the multiple data centre rooms inside are Locations; and individual rows in those rooms are Locations whose parent is the Location corresponding to the appropriate room. These rows are labelled e.g. "Row 1", etc in each room. However the /dcim/locations table does not make it easy to distinguish between Row 1 in Room 1 and Row 1 in Room 2, as it only shows the Site.

Database changes

None I believe - parent is an existing entry in the location api object

External dependencies

None

drossy avatar Nov 07 '23 14:11 drossy

I dont think this is a valid/actionable FR as the parent field on the locations page will be redundant due to the hierarchical structure which already exists.

image

abhi1693 avatar Nov 09 '23 15:11 abhi1693

If you filter for the specific name of the child location then its becomes less obvious: Screenshot 2023-11-10 at 09 53 46

drossy avatar Nov 10 '23 09:11 drossy

We should also omit the leading hierarchy bullets from the "Name" column when a filter is in place.

jeremystretch avatar Dec 14 '23 19:12 jeremystretch

I'm happy to take a look at implementing this if no one else is going to?

drossy avatar Feb 09 '24 10:02 drossy

@drossy are you still planning to work on this?

jeremystretch avatar May 22 '24 13:05 jeremystretch

un-assigning as no action on this.

arthanson avatar Jun 13 '24 16:06 arthanson