[PR #14328] [MERGED] Closes #14312: Move ConfigRevision to core #14365

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/14328
Author: @jeremystretch
Created: 11/22/2023
Status: Merged
Merged: 11/27/2023
Merged by: @jeremystretch

Base: featureHead: 14312-move-configrevision


📝 Commits (3)

  • c4d87ef Move ConfigRevision model & write migrations
  • b567dfd Move ConfigRevision resources from extras to core
  • e111af4 Extend migration to update original content type for ConfigRevision

📊 Changes

26 files changed (+417 additions, -340 deletions)

View changed files

📝 netbox/core/filtersets.py (+21 -0)
📝 netbox/core/forms/filtersets.py (+7 -0)
📝 netbox/core/forms/model_forms.py (+117 -1)
📝 netbox/core/management/commands/clearcache.py (+1 -1)
netbox/core/migrations/0009_configrevision.py (+31 -0)
📝 netbox/core/models/__init__.py (+1 -0)
netbox/core/models/config.py (+66 -0)
📝 netbox/core/signals.py (+11 -0)
📝 netbox/core/tables/__init__.py (+1 -0)
netbox/core/tables/config.py (+33 -0)
📝 netbox/core/urls.py (+7 -0)
📝 netbox/core/views.py (+69 -4)
📝 netbox/extras/filtersets.py (+0 -25)
📝 netbox/extras/forms/filtersets.py (+0 -7)
📝 netbox/extras/forms/model_forms.py (+0 -117)
netbox/extras/migrations/0101_move_configrevision.py (+39 -0)
📝 netbox/extras/models/models.py (+1 -59)
📝 netbox/extras/signals.py (+1 -13)
📝 netbox/extras/tables/tables.py (+0 -26)
📝 netbox/extras/urls.py (+0 -7)

...and 6 more files

📄 Description

Fixes: #14312

  • Move the ConfigRevision model and all its associated resources from extras to core
  • Adapt schema migrations to retain all config revision history by renaming the table from extras_configrevision to core_configrevision

🔄 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/14328 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 11/22/2023 **Status:** ✅ Merged **Merged:** 11/27/2023 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `feature` ← **Head:** `14312-move-configrevision` --- ### 📝 Commits (3) - [`c4d87ef`](https://github.com/netbox-community/netbox/commit/c4d87efdebdf3e3907842efef11f0f8bed8aafac) Move ConfigRevision model & write migrations - [`b567dfd`](https://github.com/netbox-community/netbox/commit/b567dfd09e0f4c1ad203f208cde30f3fac280b14) Move ConfigRevision resources from extras to core - [`e111af4`](https://github.com/netbox-community/netbox/commit/e111af4764b8519a9b1a410f1e08c6bfb9c0631d) Extend migration to update original content type for ConfigRevision ### 📊 Changes **26 files changed** (+417 additions, -340 deletions) <details> <summary>View changed files</summary> 📝 `netbox/core/filtersets.py` (+21 -0) 📝 `netbox/core/forms/filtersets.py` (+7 -0) 📝 `netbox/core/forms/model_forms.py` (+117 -1) 📝 `netbox/core/management/commands/clearcache.py` (+1 -1) ➕ `netbox/core/migrations/0009_configrevision.py` (+31 -0) 📝 `netbox/core/models/__init__.py` (+1 -0) ➕ `netbox/core/models/config.py` (+66 -0) 📝 `netbox/core/signals.py` (+11 -0) 📝 `netbox/core/tables/__init__.py` (+1 -0) ➕ `netbox/core/tables/config.py` (+33 -0) 📝 `netbox/core/urls.py` (+7 -0) 📝 `netbox/core/views.py` (+69 -4) 📝 `netbox/extras/filtersets.py` (+0 -25) 📝 `netbox/extras/forms/filtersets.py` (+0 -7) 📝 `netbox/extras/forms/model_forms.py` (+0 -117) ➕ `netbox/extras/migrations/0101_move_configrevision.py` (+39 -0) 📝 `netbox/extras/models/models.py` (+1 -59) 📝 `netbox/extras/signals.py` (+1 -13) 📝 `netbox/extras/tables/tables.py` (+0 -26) 📝 `netbox/extras/urls.py` (+0 -7) _...and 6 more files_ </details> ### 📄 Description ### Fixes: #14312 - Move the ConfigRevision model and all its associated resources from `extras` to `core` - Adapt schema migrations to retain all config revision history by renaming the table from `extras_configrevision` to `core_configrevision` --- <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:24:04 +01:00
adam closed this issue 2025-12-29 23:24:04 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#14365