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

12118 fix instantiting device template with parent-child relations #12170

Closed
wants to merge 2 commits into from

Conversation

arthanson
Copy link
Collaborator

@arthanson arthanson commented Apr 4, 2023

Fixes: #12118

Fixes case of instantiating device with inventory items with parent-child relationships. Previously the parent pointer in the template was referencing the template parent object when instantiating the new device, the parent object needs to be mapped to the previously created parent inventory item.

@arthanson arthanson changed the title DRAFT: 12118 fix instantiting device template with parent-child relations 12118 fix instantiting device template with parent-child relations Apr 4, 2023
@arthanson arthanson marked this pull request as ready for review April 4, 2023 17:23
@arthanson arthanson requested a review from jeremystretch April 4, 2023 17:23
@jeremystretch
Copy link
Member

Inspired by @arthanson's work above, I took a slightly different tact and managed to simplify the underlying bulk creation logic in #12198.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 7, 2023
@jeremystretch jeremystretch deleted the 12118-parent-inventory branch July 31, 2023 13:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error when creating device from device type with parent inventory item
2 participants