[PR #16983] [MERGED] Closes #10500: Introduce support for nested modules #14966

Closed
opened 2025-12-30 00:19:11 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/16983
Author: @arthanson
Created: 7/25/2024
Status: Merged
Merged: 8/5/2024
Merged by: @jeremystretch

Base: featureHead: 10500-nested-modules


📝 Commits (10+)

  • 81b8152 10500 add ModularComponentModel
  • d293a8b Merge branch 'feature' into 10500-nested-modules
  • 4bd27ed 10500 add ModularComponentModel
  • d72d748 10500 add to forms
  • 2b41ba6 10500 add to serializer, tables
  • 61d84ef 10500 template
  • 097e1a6 Merge branch 'feature' into 10500-nested-modules
  • f1e5d14 10500 add docs
  • 0c7fb56 10500 check recursion
  • fda7a99 10500 fix graphql

📊 Changes

21 files changed (+475 additions, -86 deletions)

View changed files

📝 docs/models/dcim/modulebay.md (+4 -0)
📝 netbox/dcim/api/serializers_/device_components.py (+8 -1)
📝 netbox/dcim/api/serializers_/devicetype_components.py (+11 -2)
📝 netbox/dcim/filtersets.py (+10 -6)
📝 netbox/dcim/forms/common.py (+30 -5)
📝 netbox/dcim/forms/model_forms.py (+6 -6)
📝 netbox/dcim/graphql/types.py (+9 -3)
netbox/dcim/migrations/0190_nested_modules.py (+74 -0)
📝 netbox/dcim/models/device_component_templates.py (+34 -7)
📝 netbox/dcim/models/device_components.py (+42 -3)
📝 netbox/dcim/models/devices.py (+31 -13)
📝 netbox/dcim/tables/devices.py (+30 -8)
📝 netbox/dcim/tests/test_api.py (+5 -3)
📝 netbox/dcim/tests/test_filtersets.py (+51 -15)
📝 netbox/dcim/tests/test_models.py (+94 -0)
📝 netbox/dcim/tests/test_views.py (+7 -8)
📝 netbox/dcim/views.py (+15 -0)
📝 netbox/templates/dcim/module.html (+3 -0)
📝 netbox/templates/dcim/modulebay.html (+6 -2)
📝 netbox/templates/dcim/moduletype.html (+2 -4)

...and 1 more files

📄 Description

Fixes: #10500


🔄 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/16983 **Author:** [@arthanson](https://github.com/arthanson) **Created:** 7/25/2024 **Status:** ✅ Merged **Merged:** 8/5/2024 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `feature` ← **Head:** `10500-nested-modules` --- ### 📝 Commits (10+) - [`81b8152`](https://github.com/netbox-community/netbox/commit/81b815215503e9c4c54a2092506b780c00980c78) 10500 add ModularComponentModel - [`d293a8b`](https://github.com/netbox-community/netbox/commit/d293a8b87ea5fa2eb221f734edb0cc2edae61219) Merge branch 'feature' into 10500-nested-modules - [`4bd27ed`](https://github.com/netbox-community/netbox/commit/4bd27edf105a71e4d0a3edc9890542d10b9a6c94) 10500 add ModularComponentModel - [`d72d748`](https://github.com/netbox-community/netbox/commit/d72d7481649e7487b1790079bc186e354eddaaf3) 10500 add to forms - [`2b41ba6`](https://github.com/netbox-community/netbox/commit/2b41ba6a53c2c498d3f5de66b9eef722166a372f) 10500 add to serializer, tables - [`61d84ef`](https://github.com/netbox-community/netbox/commit/61d84ef48b2e3a4d95eaf9c5b6c15675f7060a81) 10500 template - [`097e1a6`](https://github.com/netbox-community/netbox/commit/097e1a6e4a695e41c67067e037f9bcf2708fa81c) Merge branch 'feature' into 10500-nested-modules - [`f1e5d14`](https://github.com/netbox-community/netbox/commit/f1e5d141d9388ccbc0aea1648acf060eedb0f1c6) 10500 add docs - [`0c7fb56`](https://github.com/netbox-community/netbox/commit/0c7fb56f2e3a6a0a30cf00a1223e9e9d8d8d2a9b) 10500 check recursion - [`fda7a99`](https://github.com/netbox-community/netbox/commit/fda7a9974bc2b2ee9a686095cea47292ec70562a) 10500 fix graphql ### 📊 Changes **21 files changed** (+475 additions, -86 deletions) <details> <summary>View changed files</summary> 📝 `docs/models/dcim/modulebay.md` (+4 -0) 📝 `netbox/dcim/api/serializers_/device_components.py` (+8 -1) 📝 `netbox/dcim/api/serializers_/devicetype_components.py` (+11 -2) 📝 `netbox/dcim/filtersets.py` (+10 -6) 📝 `netbox/dcim/forms/common.py` (+30 -5) 📝 `netbox/dcim/forms/model_forms.py` (+6 -6) 📝 `netbox/dcim/graphql/types.py` (+9 -3) ➕ `netbox/dcim/migrations/0190_nested_modules.py` (+74 -0) 📝 `netbox/dcim/models/device_component_templates.py` (+34 -7) 📝 `netbox/dcim/models/device_components.py` (+42 -3) 📝 `netbox/dcim/models/devices.py` (+31 -13) 📝 `netbox/dcim/tables/devices.py` (+30 -8) 📝 `netbox/dcim/tests/test_api.py` (+5 -3) 📝 `netbox/dcim/tests/test_filtersets.py` (+51 -15) 📝 `netbox/dcim/tests/test_models.py` (+94 -0) 📝 `netbox/dcim/tests/test_views.py` (+7 -8) 📝 `netbox/dcim/views.py` (+15 -0) 📝 `netbox/templates/dcim/module.html` (+3 -0) 📝 `netbox/templates/dcim/modulebay.html` (+6 -2) 📝 `netbox/templates/dcim/moduletype.html` (+2 -4) _...and 1 more files_ </details> ### 📄 Description ### Fixes: #10500 --- <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-30 00:19:11 +01:00
adam closed this issue 2025-12-30 00:19:11 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#14966