Location Sorting doesn't represent hierarchy anymore on v4.2.5 #10979

Closed
opened 2025-12-29 21:38:44 +01:00 by adam · 2 comments
Owner

Originally created by @JohnHyd on GitHub (Apr 3, 2025).

Deployment Type

Self-hosted

NetBox Version

v4.2.5

Python Version

3.10

Steps to Reproduce

Update was done from 4.0.9 to 4.2.5
After the update the location hierarchy is not showing right anymore.
A structure with 1st-level-location > - 2nd-level-location > -- 3rd level location exists.
Navigating to Locations a default sorting in the name column for ascending sorting for name and sitename is set - order is fine per site, but the hierarchy is not visible. Removing the ascending sorting for site, the 2nd and 3rd level locations are shown indented, but the order of parents and childs isn't right anymore.

Expected Behavior

Expected behavior navigating to Locations with the hierarchy being represented like this:
SiteX

  • A-Subsite
    -- A-Subsite.1
    -- A-Subsite.2
  • B-Subsites
    SiteY
  • B-Subsite
    -- B-Subsite.1

Observed Behavior

No sorting which represents the real hierarchy at all, sorting appears random
SiteX

  • A-Subsite
    -- A-Subsite.1
    -- B-Subsite.1
    B-Subsite
    -- A-Subsite.2
  • B-Subsites
    SiteY

Sorting by name/Site won't change the indentency - before the upgrade, the hierarchy was shown as expected

Originally created by @JohnHyd on GitHub (Apr 3, 2025). ### Deployment Type Self-hosted ### NetBox Version v4.2.5 ### Python Version 3.10 ### Steps to Reproduce Update was done from 4.0.9 to 4.2.5 After the update the location hierarchy is not showing right anymore. A structure with 1st-level-location > - 2nd-level-location > -- 3rd level location exists. Navigating to Locations a default sorting in the name column for ascending sorting for name and sitename is set - order is fine per site, but the hierarchy is not visible. Removing the ascending sorting for site, the 2nd and 3rd level locations are shown indented, but the order of parents and childs isn't right anymore. ### Expected Behavior Expected behavior navigating to Locations with the hierarchy being represented like this: SiteX - A-Subsite -- A-Subsite.1 -- A-Subsite.2 - B-Subsites SiteY - B-Subsite -- B-Subsite.1 ### Observed Behavior No sorting which represents the real hierarchy at all, sorting appears random SiteX - A-Subsite -- A-Subsite.1 -- B-Subsite.1 B-Subsite -- A-Subsite.2 - B-Subsites SiteY Sorting by name/Site won't change the indentency - before the upgrade, the hierarchy was shown as expected
adam added the type: bugstatus: duplicate labels 2025-12-29 21:38:44 +01:00
adam closed this issue 2025-12-29 21:38:44 +01:00
Author
Owner

@bctiemann commented on GitHub (Apr 3, 2025):

@JohnHyd Please try v4.2.6, this bug was fixed. https://github.com/netbox-community/netbox/issues/18863

@bctiemann commented on GitHub (Apr 3, 2025): @JohnHyd Please try v4.2.6, this bug was fixed. https://github.com/netbox-community/netbox/issues/18863
Author
Owner

@JohnHyd commented on GitHub (Apr 7, 2025):

Many thanks, 4.2.6 did the trick

@JohnHyd commented on GitHub (Apr 7, 2025): Many thanks, 4.2.6 did the trick
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#10979