[PR #8172] [MERGED] Closes #3087: Add inventory item roles #13325

Closed
opened 2025-12-29 22:26:46 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/8172
Author: @jeremystretch
Created: 12/27/2021
Status: Merged
Merged: 12/27/2021
Merged by: @jeremystretch

Base: featureHead: 3087-inventory-item-roles


📝 Commits (3)

📊 Changes

27 files changed (+590 additions, -48 deletions)

View changed files

📝 docs/models/dcim/inventoryitem.md (+1 -1)
docs/models/dcim/inventoryitemrole.md (+3 -0)
📝 docs/release-notes/version-3.2.md (+8 -1)
📝 netbox/dcim/api/nested_serializers.py (+10 -0)
📝 netbox/dcim/api/serializers.py (+18 -5)
📝 netbox/dcim/api/urls.py (+3 -0)
📝 netbox/dcim/api/views.py (+12 -0)
📝 netbox/dcim/filtersets.py (+19 -0)
📝 netbox/dcim/forms/bulk_create.py (+3 -3)
📝 netbox/dcim/forms/bulk_edit.py (+28 -2)
📝 netbox/dcim/forms/bulk_import.py (+35 -1)
📝 netbox/dcim/forms/filtersets.py (+16 -0)
📝 netbox/dcim/forms/models.py (+25 -2)
📝 netbox/dcim/forms/object_create.py (+9 -5)
📝 netbox/dcim/graphql/schema.py (+3 -0)
📝 netbox/dcim/graphql/types.py (+9 -0)
netbox/dcim/migrations/0146_inventoryitemrole.py (+38 -0)
📝 netbox/dcim/models/device_components.py (+43 -2)
📝 netbox/dcim/tables/devices.py (+37 -10)
📝 netbox/dcim/tests/test_api.py (+47 -3)

...and 7 more files

📄 Description

Closes: #3087

  • Introduce the InventoryItemRole model
  • Add an optional role ForeignKey field to InventoryItem

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbox-community/netbox/pull/8172 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 12/27/2021 **Status:** ✅ Merged **Merged:** 12/27/2021 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `feature` ← **Head:** `3087-inventory-item-roles` --- ### 📝 Commits (3) - [`04fb5e5`](https://github.com/netbox-community/netbox/commit/04fb5e544d2d23622f82cc2d837182eabb123eea) #3087: Add InvetoryItemRole - [`6e9afcc`](https://github.com/netbox-community/netbox/commit/6e9afccfd79363d9862c4a99aff0e477c3b27e45) #8037: Add role field to InventoryItem - [`a748083`](https://github.com/netbox-community/netbox/commit/a748083f2606b28baf9ed2cf2a9c4e48d92480bd) Changelog for #3087 ### 📊 Changes **27 files changed** (+590 additions, -48 deletions) <details> <summary>View changed files</summary> 📝 `docs/models/dcim/inventoryitem.md` (+1 -1) ➕ `docs/models/dcim/inventoryitemrole.md` (+3 -0) 📝 `docs/release-notes/version-3.2.md` (+8 -1) 📝 `netbox/dcim/api/nested_serializers.py` (+10 -0) 📝 `netbox/dcim/api/serializers.py` (+18 -5) 📝 `netbox/dcim/api/urls.py` (+3 -0) 📝 `netbox/dcim/api/views.py` (+12 -0) 📝 `netbox/dcim/filtersets.py` (+19 -0) 📝 `netbox/dcim/forms/bulk_create.py` (+3 -3) 📝 `netbox/dcim/forms/bulk_edit.py` (+28 -2) 📝 `netbox/dcim/forms/bulk_import.py` (+35 -1) 📝 `netbox/dcim/forms/filtersets.py` (+16 -0) 📝 `netbox/dcim/forms/models.py` (+25 -2) 📝 `netbox/dcim/forms/object_create.py` (+9 -5) 📝 `netbox/dcim/graphql/schema.py` (+3 -0) 📝 `netbox/dcim/graphql/types.py` (+9 -0) ➕ `netbox/dcim/migrations/0146_inventoryitemrole.py` (+38 -0) 📝 `netbox/dcim/models/device_components.py` (+43 -2) 📝 `netbox/dcim/tables/devices.py` (+37 -10) 📝 `netbox/dcim/tests/test_api.py` (+47 -3) _...and 7 more files_ </details> ### 📄 Description ### Closes: #3087 - Introduce the InventoryItemRole model - Add an optional `role` ForeignKey field to InventoryItem --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 22:26:46 +01:00
adam closed this issue 2025-12-29 22:26:46 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#13325