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

Adding Inventory Items to a Device Type without an associated Inventory Item Type throws: 'component' does not resolve to an item that supports prefetching - this is an invalid parameter to prefetch_related(). #8875

Closed
zeddD1abl0 opened this issue Mar 15, 2022 · 2 comments
Labels
beta Concerns a bug/feature in a beta release status: duplicate This issue has already been raised type: bug A confirmed report of unexpected behavior in the application

Comments

@zeddD1abl0
Copy link

NetBox version

3.2.0-beta2

Python version

3.9

Steps to Reproduce

  1. Create a Device Template

NetboxErrorStep1
NetboxErrorStep2

  1. Add an Inventory Item without adding a Role

NetboxErrorStep4

  1. Click Create

Expected Behavior

The expected behavior would be for it to come back to the inventory items page, as per normal:

NetboxExpected

Observed Behavior

The server has an issue preloading related items. Probably because the inventory item has no role, thus nothing to preload.

NetboxError

@zeddD1abl0 zeddD1abl0 added the type: bug A confirmed report of unexpected behavior in the application label Mar 15, 2022
@zeddD1abl0
Copy link
Author

Sorry if this one has been raised before. I couldn't find a reference, but I probably didn't look correctly.

You can fix it if you assign a role, but otherwise, it stays broken. I haven't checked after assigning an inventory item to an inventory without a role.

@jeremystretch
Copy link
Member

Thank you for submitting this issue, however it appears that this topic has already been raised. Please see issue #8658 for further discussion.

@jeremystretch jeremystretch added status: duplicate This issue has already been raised beta Concerns a bug/feature in a beta release labels Mar 15, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 14, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
beta Concerns a bug/feature in a beta release status: duplicate This issue has already been raised type: bug A confirmed report of unexpected behavior in the application
Projects
None yet
Development

No branches or pull requests

2 participants