[PR #4353] [MERGED] Closes #3939: Nested tenant groups #12822

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/4353
Author: @jeremystretch
Created: 3/12/2020
Status: Merged
Merged: 3/12/2020
Merged by: @jeremystretch

Base: develop-2.8Head: 3939-nested-tenantgroups


📝 Commits (2)

  • 45f6ea2 Implement support for nested TenantGroups
  • b5d5726 Update tests for nested TenantGroups

📊 Changes

17 files changed (+289 additions, -88 deletions)

View changed files

📝 netbox/circuits/tests/test_filters.py (+2 -1)
📝 netbox/dcim/tests/test_filters.py (+8 -4)
📝 netbox/extras/tests/test_api.py (+4 -2)
📝 netbox/extras/tests/test_filters.py (+2 -1)
📝 netbox/ipam/tests/test_filters.py (+8 -4)
📝 netbox/tenancy/api/serializers.py (+2 -1)
📝 netbox/tenancy/filters.py (+26 -12)
📝 netbox/tenancy/forms.py (+17 -1)
netbox/tenancy/migrations/0007_nested_tenantgroups.py (+43 -0)
netbox/tenancy/migrations/0008_nested_tenantgroups_rebuild.py (+21 -0)
📝 netbox/tenancy/models.py (+26 -3)
📝 netbox/tenancy/tables.py (+21 -4)
📝 netbox/tenancy/tests/test_api.py (+59 -33)
📝 netbox/tenancy/tests/test_filters.py (+27 -10)
📝 netbox/tenancy/tests/test_views.py (+12 -9)
📝 netbox/tenancy/views.py (+7 -1)
📝 netbox/virtualization/tests/test_filters.py (+4 -2)

📄 Description

Fixes: #3939

  • Add parent field to TenantGroup model to support recursive nesting
  • Update filters and tests appropriately

🔄 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/4353 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 3/12/2020 **Status:** ✅ Merged **Merged:** 3/12/2020 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop-2.8` ← **Head:** `3939-nested-tenantgroups` --- ### 📝 Commits (2) - [`45f6ea2`](https://github.com/netbox-community/netbox/commit/45f6ea211d107652393b6f9a0d12709e3e2b7b82) Implement support for nested TenantGroups - [`b5d5726`](https://github.com/netbox-community/netbox/commit/b5d57262f9c5feede98123aff2f9c46c9085c45e) Update tests for nested TenantGroups ### 📊 Changes **17 files changed** (+289 additions, -88 deletions) <details> <summary>View changed files</summary> 📝 `netbox/circuits/tests/test_filters.py` (+2 -1) 📝 `netbox/dcim/tests/test_filters.py` (+8 -4) 📝 `netbox/extras/tests/test_api.py` (+4 -2) 📝 `netbox/extras/tests/test_filters.py` (+2 -1) 📝 `netbox/ipam/tests/test_filters.py` (+8 -4) 📝 `netbox/tenancy/api/serializers.py` (+2 -1) 📝 `netbox/tenancy/filters.py` (+26 -12) 📝 `netbox/tenancy/forms.py` (+17 -1) ➕ `netbox/tenancy/migrations/0007_nested_tenantgroups.py` (+43 -0) ➕ `netbox/tenancy/migrations/0008_nested_tenantgroups_rebuild.py` (+21 -0) 📝 `netbox/tenancy/models.py` (+26 -3) 📝 `netbox/tenancy/tables.py` (+21 -4) 📝 `netbox/tenancy/tests/test_api.py` (+59 -33) 📝 `netbox/tenancy/tests/test_filters.py` (+27 -10) 📝 `netbox/tenancy/tests/test_views.py` (+12 -9) 📝 `netbox/tenancy/views.py` (+7 -1) 📝 `netbox/virtualization/tests/test_filters.py` (+4 -2) </details> ### 📄 Description ### Fixes: #3939 - Add `parent` field to TenantGroup model to support recursive nesting - Update filters and tests appropriately --- <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:23:49 +01:00
adam closed this issue 2025-12-29 22:23:49 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#12822