[PR #5937] [MERGED] Closes #5892: Introduce SiteGroup model #13072

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/5937
Author: @jeremystretch
Created: 3/8/2021
Status: Merged
Merged: 3/8/2021
Merged by: @jeremystretch

Base: featureHead: 5892-sitegroup


📝 Commits (5)

📊 Changes

44 files changed (+1388 additions, -232 deletions)

View changed files

📝 docs/core-functionality/sites-and-racks.md (+1 -0)
docs/models/dcim/sitegroup.md (+3 -0)
📝 docs/release-notes/version-2.11.md (+10 -0)
📝 netbox/circuits/filters.py (+38 -12)
📝 netbox/circuits/forms.py (+12 -4)
📝 netbox/circuits/tests/test_filters.py (+43 -15)
📝 netbox/dcim/api/nested_serializers.py (+11 -0)
📝 netbox/dcim/api/serializers.py (+19 -11)
📝 netbox/dcim/api/urls.py (+1 -0)
📝 netbox/dcim/api/views.py (+17 -7)
📝 netbox/dcim/filters.py (+122 -8)
📝 netbox/dcim/forms.py (+214 -38)
netbox/dcim/migrations/0130_sitegroup.py (+39 -0)
📝 netbox/dcim/models/__init__.py (+1 -0)
📝 netbox/dcim/models/sites.py (+68 -4)
📝 netbox/dcim/tables/sites.py (+25 -3)
📝 netbox/dcim/tests/test_api.py (+14 -11)
📝 netbox/dcim/tests/test_filters.py (+297 -55)
📝 netbox/dcim/tests/test_views.py (+12 -3)
📝 netbox/dcim/urls.py (+10 -5)

...and 24 more files

📄 Description

Fixes: #5892

  • Adds the new model dcim.SiteGroup
  • Adds group foreign key field on dcim.Site
  • Adds site_groups M2M field on extras.ConfigContext
  • Updates REST API serializers, forms, etc.

🔄 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/5937 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 3/8/2021 **Status:** ✅ Merged **Merged:** 3/8/2021 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `feature` ← **Head:** `5892-sitegroup` --- ### 📝 Commits (5) - [`07e412e`](https://github.com/netbox-community/netbox/commit/07e412e06cd9a648643f0dbfff0290517bf55567) Initial work on #5892 - [`f8c788e`](https://github.com/netbox-community/netbox/commit/f8c788efafbb17a56a84e9e2cff3fadde9a2e50f) Add site group selection to object edit forms - [`981d169`](https://github.com/netbox-community/netbox/commit/981d1699a01e5ae38adadebe1ef13910f42e5392) Add documentation for site groups - [`d8d6ff6`](https://github.com/netbox-community/netbox/commit/d8d6ff624978a93d72dec36ef31b2c11b4d20621) Changelog for #5892 - [`bbbc3f5`](https://github.com/netbox-community/netbox/commit/bbbc3f55e3bcc43ae80230b05424f0e2dfa9b7a6) Finish application of site groups to config context ### 📊 Changes **44 files changed** (+1388 additions, -232 deletions) <details> <summary>View changed files</summary> 📝 `docs/core-functionality/sites-and-racks.md` (+1 -0) ➕ `docs/models/dcim/sitegroup.md` (+3 -0) 📝 `docs/release-notes/version-2.11.md` (+10 -0) 📝 `netbox/circuits/filters.py` (+38 -12) 📝 `netbox/circuits/forms.py` (+12 -4) 📝 `netbox/circuits/tests/test_filters.py` (+43 -15) 📝 `netbox/dcim/api/nested_serializers.py` (+11 -0) 📝 `netbox/dcim/api/serializers.py` (+19 -11) 📝 `netbox/dcim/api/urls.py` (+1 -0) 📝 `netbox/dcim/api/views.py` (+17 -7) 📝 `netbox/dcim/filters.py` (+122 -8) 📝 `netbox/dcim/forms.py` (+214 -38) ➕ `netbox/dcim/migrations/0130_sitegroup.py` (+39 -0) 📝 `netbox/dcim/models/__init__.py` (+1 -0) 📝 `netbox/dcim/models/sites.py` (+68 -4) 📝 `netbox/dcim/tables/sites.py` (+25 -3) 📝 `netbox/dcim/tests/test_api.py` (+14 -11) 📝 `netbox/dcim/tests/test_filters.py` (+297 -55) 📝 `netbox/dcim/tests/test_views.py` (+12 -3) 📝 `netbox/dcim/urls.py` (+10 -5) _...and 24 more files_ </details> ### 📄 Description ### Fixes: #5892 - Adds the new model dcim.SiteGroup - Adds `group` foreign key field on dcim.Site - Adds `site_groups` M2M field on extras.ConfigContext - Updates REST API serializers, forms, etc. --- <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:25:15 +01:00
adam closed this issue 2025-12-29 22:25:15 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#13072