[PR #2198] [MERGED] Closes #1898: Change logging #12327

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/2198
Author: @jeremystretch
Created: 6/25/2018
Status: Merged
Merged: 6/25/2018
Merged by: @jeremystretch

Base: develop-2.4Head: 1898-activity-logging


📝 Commits (10+)

  • b556d2d Renamed CreatedUpdatedModel to ChangeLoggedModel and applied it to all primary and organizational models
  • 33cf227 Implemented new object change logging to replace UserActions
  • 21c4085 Moved object header templates into object base templates
  • 3c2e0b0 Added changelog views
  • 3856902 Prevent duplicate signals from change logging middleware
  • 23f9127 Added API serializer for ObjectChange
  • a8b11e4 Record a unique request ID with each ObjectChange
  • ddd8786 Implemented changelog views
  • 0921269 Added changelog links for organizational models
  • 4ffce75 Fixed typo

📊 Changes

80 files changed (+3133 additions, -1716 deletions)

View changed files

📝 docs/configuration/optional-settings.md (+8 -0)
netbox/circuits/migrations/0012_change_logging.py (+45 -0)
📝 netbox/circuits/models.py (+7 -8)
📝 netbox/circuits/tables.py (+3 -0)
📝 netbox/circuits/urls.py (+5 -0)
netbox/dcim/migrations/0059_devicetype_add_created_updated_times.py (+0 -27)
📝 netbox/dcim/migrations/0059_site_latitude_longitude.py (+1 -1)
netbox/dcim/migrations/0060_change_logging.py (+135 -0)
📝 netbox/dcim/models.py (+150 -38)
📝 netbox/dcim/tables.py (+30 -6)
📝 netbox/dcim/urls.py (+17 -2)
📝 netbox/dcim/views.py (+5 -13)
📝 netbox/extras/admin.py (+45 -2)
📝 netbox/extras/api/serializers.py (+34 -4)
📝 netbox/extras/api/urls.py (+3 -0)
📝 netbox/extras/api/views.py (+16 -1)
📝 netbox/extras/constants.py (+10 -0)
📝 netbox/extras/filters.py (+21 -1)
📝 netbox/extras/forms.py (+42 -3)
netbox/extras/middleware.py (+65 -0)

...and 60 more files

📄 Description

Fixes: #1898

Implemented a new ObjectChange model and chnage-logging middleware to record a serialized snapshot of every object.


🔄 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/2198 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 6/25/2018 **Status:** ✅ Merged **Merged:** 6/25/2018 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop-2.4` ← **Head:** `1898-activity-logging` --- ### 📝 Commits (10+) - [`b556d2d`](https://github.com/netbox-community/netbox/commit/b556d2d6267f583b49bae4ec6ce223bbb8373375) Renamed CreatedUpdatedModel to ChangeLoggedModel and applied it to all primary and organizational models - [`33cf227`](https://github.com/netbox-community/netbox/commit/33cf227bc8336d8ba30c658d7a2869520930740c) Implemented new object change logging to replace UserActions - [`21c4085`](https://github.com/netbox-community/netbox/commit/21c4085c51863f589da8e4a7a91ec41425c2b83d) Moved object header templates into object base templates - [`3c2e0b0`](https://github.com/netbox-community/netbox/commit/3c2e0b0b173dc50ad50fd504a1e923dd1e3c3063) Added changelog views - [`3856902`](https://github.com/netbox-community/netbox/commit/38569029d8c7318b2e4d18fb79eda43f9ff9d24c) Prevent duplicate signals from change logging middleware - [`23f9127`](https://github.com/netbox-community/netbox/commit/23f91274d6b8123c87943b2bc893f692e68803b7) Added API serializer for ObjectChange - [`a8b11e4`](https://github.com/netbox-community/netbox/commit/a8b11e45c1a11f77be45f09ca3a38f9f8f81ba6f) Record a unique request ID with each ObjectChange - [`ddd8786`](https://github.com/netbox-community/netbox/commit/ddd878683dd86a3f1e87562ba12aeaea97161fda) Implemented changelog views - [`0921269`](https://github.com/netbox-community/netbox/commit/09212691e260554045da7cbfd005f50639897fbf) Added changelog links for organizational models - [`4ffce75`](https://github.com/netbox-community/netbox/commit/4ffce75b70da89c467480f397922e8f0bf25a1b3) Fixed typo ### 📊 Changes **80 files changed** (+3133 additions, -1716 deletions) <details> <summary>View changed files</summary> 📝 `docs/configuration/optional-settings.md` (+8 -0) ➕ `netbox/circuits/migrations/0012_change_logging.py` (+45 -0) 📝 `netbox/circuits/models.py` (+7 -8) 📝 `netbox/circuits/tables.py` (+3 -0) 📝 `netbox/circuits/urls.py` (+5 -0) ➖ `netbox/dcim/migrations/0059_devicetype_add_created_updated_times.py` (+0 -27) 📝 `netbox/dcim/migrations/0059_site_latitude_longitude.py` (+1 -1) ➕ `netbox/dcim/migrations/0060_change_logging.py` (+135 -0) 📝 `netbox/dcim/models.py` (+150 -38) 📝 `netbox/dcim/tables.py` (+30 -6) 📝 `netbox/dcim/urls.py` (+17 -2) 📝 `netbox/dcim/views.py` (+5 -13) 📝 `netbox/extras/admin.py` (+45 -2) 📝 `netbox/extras/api/serializers.py` (+34 -4) 📝 `netbox/extras/api/urls.py` (+3 -0) 📝 `netbox/extras/api/views.py` (+16 -1) 📝 `netbox/extras/constants.py` (+10 -0) 📝 `netbox/extras/filters.py` (+21 -1) 📝 `netbox/extras/forms.py` (+42 -3) ➕ `netbox/extras/middleware.py` (+65 -0) _...and 60 more files_ </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 opened for approval prior to filing a pull request. This helps avoid wasting time and effort on something that we might not be able to accept. Please indicate the relevant feature request or bug report below. --> ### Fixes: #1898 Implemented a new ObjectChange model and chnage-logging middleware to record a serialized snapshot of every object. --- <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:20:54 +01:00
adam closed this issue 2025-12-29 22:20:54 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#12327