[PR #11514] [CLOSED] Added db read-only mode implementation #13801

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/11514
Author: @abhi1693
Created: 1/16/2023
Status: Closed

Base: developHead: feat/11233-ro-db


📝 Commits (3)

📊 Changes

4 files changed (+165 additions, -3 deletions)

View changed files

netbox/netbox/cursor.py (+110 -0)
netbox/netbox/exceptions.py (+8 -0)
📝 netbox/netbox/middleware.py (+39 -3)
📝 netbox/netbox/settings.py (+8 -0)

📄 Description

Fixes: #11233

Added a wrapper to prevent write operations by raising an exception and catching it to gracefully inform the user.


🔄 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/11514 **Author:** [@abhi1693](https://github.com/abhi1693) **Created:** 1/16/2023 **Status:** ❌ Closed **Base:** `develop` ← **Head:** `feat/11233-ro-db` --- ### 📝 Commits (3) - [`6346e4d`](https://github.com/netbox-community/netbox/commit/6346e4dd6036751f58559a2e72a950b83dcc013e) added db read-only mode implementation - [`496cfb4`](https://github.com/netbox-community/netbox/commit/496cfb4dca2d06cc323f525539c2a45b436d94d8) cleaned up code - [`e63a0b0`](https://github.com/netbox-community/netbox/commit/e63a0b05012bb80628a7a0a71a918eb02f581c65) cleaned up code ### 📊 Changes **4 files changed** (+165 additions, -3 deletions) <details> <summary>View changed files</summary> ➕ `netbox/netbox/cursor.py` (+110 -0) ➕ `netbox/netbox/exceptions.py` (+8 -0) 📝 `netbox/netbox/middleware.py` (+39 -3) 📝 `netbox/netbox/settings.py` (+8 -0) </details> ### 📄 Description <!-- Thank you for your interest in contributing to NetBox! Please note that our contribution policy requires that a feature request or bug report be approved and assigned prior to opening a pull request. This helps avoid waste time and effort on a proposed change that we might not be able to accept. IF YOUR PULL REQUEST DOES NOT REFERENCE AN ISSUE WHICH HAS BEEN ASSIGNED TO YOU, IT WILL BE CLOSED AUTOMATICALLY. Please specify your assigned issue number on the line below. --> ### Fixes: #11233 <!-- Please include a summary of the proposed changes below. --> Added a wrapper to prevent write operations by raising an exception and catching it to gracefully inform the user. --- <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:20:53 +01:00
adam closed this issue 2025-12-29 23:20:53 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#13801