[PR #21029] [MERGED] Fixes #21011: Avoid updating database when loading active ConfigRevision #16125

Closed
opened 2025-12-30 00:25:55 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/21029
Author: @jeremystretch
Created: 12/22/2025
Status: Merged
Merged: 12/22/2025
Merged by: @bctiemann

Base: mainHead: 21011-configrevision-save


📝 Commits (1)

  • f67cc47 Fixes #21011: Avoid updating database when loading active ConfigRevision

📊 Changes

2 files changed (+13 additions, -10 deletions)

View changed files

📝 netbox/core/models/config.py (+8 -4)
📝 netbox/netbox/config/__init__.py (+5 -6)

📄 Description

Fixes: #21011

  • Add an update_db parameter to the activate() method on ConfigRevision
    • Set this to False when loading the active revision from the database
  • Miscellaneous cleanup of debug messages

🔄 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/21029 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 12/22/2025 **Status:** ✅ Merged **Merged:** 12/22/2025 **Merged by:** [@bctiemann](https://github.com/bctiemann) **Base:** `main` ← **Head:** `21011-configrevision-save` --- ### 📝 Commits (1) - [`f67cc47`](https://github.com/netbox-community/netbox/commit/f67cc47def0f10cbca3131ae3cac3696268fbf67) Fixes #21011: Avoid updating database when loading active ConfigRevision ### 📊 Changes **2 files changed** (+13 additions, -10 deletions) <details> <summary>View changed files</summary> 📝 `netbox/core/models/config.py` (+8 -4) 📝 `netbox/netbox/config/__init__.py` (+5 -6) </details> ### 📄 Description ### Fixes: #21011 - Add an `update_db` parameter to the `activate()` method on ConfigRevision - Set this to False when loading the active revision from the database - Miscellaneous cleanup of debug messages --- <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-30 00:25:55 +01:00
adam closed this issue 2025-12-30 00:25:56 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#16125