[PR #4351] [MERGED] Closes #1754: Nested rack groups #12821

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/4351
Author: @jeremystretch
Created: 3/11/2020
Status: Merged
Merged: 3/12/2020
Merged by: @jeremystretch

Base: develop-2.8Head: 1754-nested-rackgroups


📝 Commits (2)

📊 Changes

11 files changed (+234 additions, -51 deletions)

View changed files

📝 netbox/dcim/api/serializers.py (+2 -1)
📝 netbox/dcim/filters.py (+32 -15)
📝 netbox/dcim/forms.py (+35 -3)
netbox/dcim/migrations/0101_nested_rackgroups.py (+43 -0)
netbox/dcim/migrations/0102_nested_rackgroups_rebuild.py (+21 -0)
📝 netbox/dcim/models/__init__.py (+29 -2)
📝 netbox/dcim/tables.py (+7 -4)
📝 netbox/dcim/tests/test_api.py (+19 -10)
📝 netbox/dcim/tests/test_filters.py (+31 -11)
📝 netbox/dcim/tests/test_views.py (+8 -4)
📝 netbox/dcim/views.py (+7 -1)

📄 Description

Closes: #1754

  • Adds a parent field to dcim.RackGroup to allow recursive nesting (similar to regions)
  • Updates all relevant filters on related objects
  • Updates/extends tests

🔄 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/4351 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 3/11/2020 **Status:** ✅ Merged **Merged:** 3/12/2020 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop-2.8` ← **Head:** `1754-nested-rackgroups` --- ### 📝 Commits (2) - [`84de045`](https://github.com/netbox-community/netbox/commit/84de0458aa440ee8b79fa76484ac345c67bbbcf5) Implement nested RackGroups - [`c42613c`](https://github.com/netbox-community/netbox/commit/c42613cf4d727cb3f0780ec6fd0921ee3097148b) Update filter fields ### 📊 Changes **11 files changed** (+234 additions, -51 deletions) <details> <summary>View changed files</summary> 📝 `netbox/dcim/api/serializers.py` (+2 -1) 📝 `netbox/dcim/filters.py` (+32 -15) 📝 `netbox/dcim/forms.py` (+35 -3) ➕ `netbox/dcim/migrations/0101_nested_rackgroups.py` (+43 -0) ➕ `netbox/dcim/migrations/0102_nested_rackgroups_rebuild.py` (+21 -0) 📝 `netbox/dcim/models/__init__.py` (+29 -2) 📝 `netbox/dcim/tables.py` (+7 -4) 📝 `netbox/dcim/tests/test_api.py` (+19 -10) 📝 `netbox/dcim/tests/test_filters.py` (+31 -11) 📝 `netbox/dcim/tests/test_views.py` (+8 -4) 📝 `netbox/dcim/views.py` (+7 -1) </details> ### 📄 Description ### Closes: #1754 - Adds a `parent` field to dcim.RackGroup to allow recursive nesting (similar to regions) - Updates all relevant filters on related objects - Updates/extends tests --- <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#12821