[PR #11692] [MERGED] Closes #9073: Remote data support for config contexts #13821

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/11692
Author: @jeremystretch
Created: 2/7/2023
Status: Merged
Merged: 2/7/2023
Merged by: @jeremystretch

Base: featureHead: 9073-config-context-remote-data


📝 Commits (6)

  • e5f6603 WIP
  • 5f73b55 Add bulk sync view for config contexts
  • 283a7d6 Introduce 'sync' permission for synced data models
  • 0b68a9c Docs & cleanup
  • a97db67 Remove unused method
  • bb6eff8 Add a REST API endpoint to synchronize config context data

📊 Changes

20 files changed (+423 additions, -91 deletions)

View changed files

📝 docs/models/extras/configcontext.md (+4 -0)
📝 docs/release-notes/version-3.5.md (+1 -0)
📝 netbox/core/models/data.py (+8 -0)
📝 netbox/extras/api/serializers.py (+9 -1)
📝 netbox/extras/api/views.py (+4 -2)
📝 netbox/extras/constants.py (+1 -0)
📝 netbox/extras/filtersets.py (+10 -1)
📝 netbox/extras/forms/filtersets.py (+15 -0)
📝 netbox/extras/forms/mixins.py (+19 -1)
📝 netbox/extras/forms/model_forms.py (+15 -3)
netbox/extras/migrations/0085_configcontext_synced_data.py (+35 -0)
📝 netbox/extras/models/configcontexts.py (+10 -2)
📝 netbox/extras/tables/tables.py (+13 -4)
📝 netbox/extras/urls.py (+1 -0)
📝 netbox/extras/views.py (+6 -1)
netbox/netbox/api/features.py (+30 -0)
📝 netbox/netbox/models/features.py (+80 -2)
📝 netbox/netbox/views/generic/feature_views.py (+54 -2)
📝 netbox/templates/extras/configcontext.html (+98 -72)
netbox/templates/extras/configcontext_list.html (+10 -0)

📄 Description

Fixes: #9073

  • Introduces SyncedDataMixin to add synced data support to models
  • Adds ObjectSyncDataView and BulkSyncDataView to handle object syncing
  • Enable synced data support for ConfigContext

🔄 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/11692 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 2/7/2023 **Status:** ✅ Merged **Merged:** 2/7/2023 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `feature` ← **Head:** `9073-config-context-remote-data` --- ### 📝 Commits (6) - [`e5f6603`](https://github.com/netbox-community/netbox/commit/e5f660327bf9a40456a4dd344499859f882c2a7d) WIP - [`5f73b55`](https://github.com/netbox-community/netbox/commit/5f73b556230953b6c1179d1ba5448b6c62c951af) Add bulk sync view for config contexts - [`283a7d6`](https://github.com/netbox-community/netbox/commit/283a7d6da89aeb42734be17d057635c1815f4433) Introduce 'sync' permission for synced data models - [`0b68a9c`](https://github.com/netbox-community/netbox/commit/0b68a9c2599e331668990413f456a9329255c2dc) Docs & cleanup - [`a97db67`](https://github.com/netbox-community/netbox/commit/a97db672372cb149c3779db97abb02f357af2ea4) Remove unused method - [`bb6eff8`](https://github.com/netbox-community/netbox/commit/bb6eff89405011a6acda1876c3379fe3c6710cac) Add a REST API endpoint to synchronize config context data ### 📊 Changes **20 files changed** (+423 additions, -91 deletions) <details> <summary>View changed files</summary> 📝 `docs/models/extras/configcontext.md` (+4 -0) 📝 `docs/release-notes/version-3.5.md` (+1 -0) 📝 `netbox/core/models/data.py` (+8 -0) 📝 `netbox/extras/api/serializers.py` (+9 -1) 📝 `netbox/extras/api/views.py` (+4 -2) 📝 `netbox/extras/constants.py` (+1 -0) 📝 `netbox/extras/filtersets.py` (+10 -1) 📝 `netbox/extras/forms/filtersets.py` (+15 -0) 📝 `netbox/extras/forms/mixins.py` (+19 -1) 📝 `netbox/extras/forms/model_forms.py` (+15 -3) ➕ `netbox/extras/migrations/0085_configcontext_synced_data.py` (+35 -0) 📝 `netbox/extras/models/configcontexts.py` (+10 -2) 📝 `netbox/extras/tables/tables.py` (+13 -4) 📝 `netbox/extras/urls.py` (+1 -0) 📝 `netbox/extras/views.py` (+6 -1) ➕ `netbox/netbox/api/features.py` (+30 -0) 📝 `netbox/netbox/models/features.py` (+80 -2) 📝 `netbox/netbox/views/generic/feature_views.py` (+54 -2) 📝 `netbox/templates/extras/configcontext.html` (+98 -72) ➕ `netbox/templates/extras/configcontext_list.html` (+10 -0) </details> ### 📄 Description ### Fixes: #9073 - Introduces `SyncedDataMixin` to add synced data support to models - Adds `ObjectSyncDataView` and `BulkSyncDataView` to handle object syncing - Enable synced data support for `ConfigContext` --- <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 23:21:00 +01:00
adam closed this issue 2025-12-29 23:21:00 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#13821