Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert InventoryItem's parent field to an MPTTField #1846

Closed
jeremystretch opened this issue Jan 30, 2018 · 0 comments
Closed

Convert InventoryItem's parent field to an MPTTField #1846

jeremystretch opened this issue Jan 30, 2018 · 0 comments
Assignees
Labels
status: accepted This issue has been accepted for implementation type: housekeeping Changes to the application which do not directly impact the end user
Milestone

Comments

@jeremystretch
Copy link
Member

Issue type

[x] Feature request
[ ] Bug report
[ ] Documentation

Environment

  • Python version: 3.5.2
  • NetBox version: 2.2.8

Description

The parent field of an InventoryItem is used to arrange items hierarchically within a Device. For example:

- FPC 0
    - PIC 0
        - Xvcr 0

Currently, the parent field is a recursive ForeignKey, which does not allow for intelligent hierarchical ordering. We can change this to an MPTTField (like on the Region model) to greatly improve ordering and allow for more efficient queries.

@jeremystretch jeremystretch added status: accepted This issue has been accepted for implementation type: feature Introduction of new functionality to the application labels Jan 30, 2018
@jeremystretch jeremystretch added type: housekeeping Changes to the application which do not directly impact the end user and removed type: feature Introduction of new functionality to the application labels May 2, 2019
@jeremystretch jeremystretch added this to the v2.10 milestone Aug 21, 2020
@jeremystretch jeremystretch self-assigned this Sep 18, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 18, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status: accepted This issue has been accepted for implementation type: housekeeping Changes to the application which do not directly impact the end user
Projects
None yet
Development

No branches or pull requests

1 participant