Skip to content

List views of self-nesting (recursive) object types are displayed incorrectly #18863

@jii8by

Description

@jii8by

Deployment Type

Self-hosted

NetBox Version

v4.2.5

Python Version

3.11

Steps to Reproduce

  1. Create three regions without parent: "North America", "South America", "Europe"
  2. Create three child regions under North America: "United States", "Canada", "Mexico"
  3. Create three grandchildren within United States: "Wisconsin", "Oklahoma", "Tennessee"
  4. Navigate to /dcim/regions/ to view all regions

Expected Behavior

The three child regions that were created within North America are displayed directly below NA. Additionally, "Oklahoma", "Wisconsin" and "Tennessee" are indented under the US.

Observed Behavior

Child regions "Canada" and "Mexico" are below "Europe". Grandchild "Oklahoma" is now in "Mexico".

Image

Note that this might not be the only list view that appears to be broken. Replicating the above steps as contact groups behaves in a similar way:

Image

Metadata

Metadata

Assignees

Labels

severity: mediumResults in substantial degraded or broken functionality for specfic workflowsstatus: acceptedThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the application

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions