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

Inventory item cannot be reassgined to another device #12255

Closed
ntopee opened this issue Apr 14, 2023 · 1 comment · Fixed by #12311
Closed

Inventory item cannot be reassgined to another device #12255

ntopee opened this issue Apr 14, 2023 · 1 comment · Fixed by #12311
Assignees
Labels
status: accepted This issue has been accepted for implementation type: bug A confirmed report of unexpected behavior in the application

Comments

@ntopee
Copy link

ntopee commented Apr 14, 2023

NetBox version

v3.4.8

Python version

3.8

Steps to Reproduce

  1. Click on Edit on any inventory item in the UI
  2. Edit Device field
  3. Click save

Expected Behavior

The inventory item should be assigned to the selected device.

Observed Behavior

"Components cannot be moved to a different device." validation error is shown
This validation is introduced in #11567 , but I don't think the change that even inventory items cannot be reassigned to another device via the UI was intended.

@ntopee ntopee added the type: bug A confirmed report of unexpected behavior in the application label Apr 14, 2023
@kkthxbye-code kkthxbye-code added the status: needs owner This issue is tentatively accepted pending a volunteer committed to its implementation label Apr 14, 2023
@kkthxbye-code
Copy link
Contributor

but I don't think the change that even inventory items cannot be reassigned to another device via the UI was intended.

Correct, it was specified in both the original issue and a comment to the PR, that it was to only apply to InterfaceComponents other than InterfaceItem. Not sure what went wrong here.

@arthanson

arthanson added a commit that referenced this issue Apr 19, 2023
@arthanson arthanson self-assigned this Apr 19, 2023
@arthanson arthanson removed the status: needs owner This issue is tentatively accepted pending a volunteer committed to its implementation label Apr 19, 2023
@jeremystretch jeremystretch added the status: accepted This issue has been accepted for implementation label Apr 21, 2023
jeremystretch pushed a commit that referenced this issue Apr 21, 2023
* #12255 allow inventory items to change devices

* #12255 allow inventory item template to change devices

* #12255 fix init

* 12255 remove can_swtich from template model

* 12255 change to check module list
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 21, 2023
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: bug A confirmed report of unexpected behavior in the application
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants