[PR #4269] [MERGED] Fixes #4227: Omit internal fields from the change log data #12805

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/4269
Author: @hSaria
Created: 2/25/2020
Status: Merged
Merged: 2/25/2020
Merged by: @jeremystretch

Base: developHead: 4227-omit-private-changelog


📝 Commits (2)

  • 3296298 Fixes #4227: Omit internal fields from the change log data
  • 40b56d7 Merge branch 'develop' into 4227-omit-private-changelog

📊 Changes

3 files changed (+28 additions, -6 deletions)

View changed files

📝 docs/release-notes/version-2.7.md (+3 -2)
📝 netbox/dcim/models/__init__.py (+11 -2)
📝 netbox/utilities/utils.py (+14 -2)

📄 Description

Fixes: #4227

Exclude private fields (starting with an underscore) from change log data.

In addition, allow for specific keys to be excluded to address for edge cases (currently just the Region model which has MPTT-internal fields: level, lft, rght, and tree_id)


🔄 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/4269 **Author:** [@hSaria](https://github.com/hSaria) **Created:** 2/25/2020 **Status:** ✅ Merged **Merged:** 2/25/2020 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop` ← **Head:** `4227-omit-private-changelog` --- ### 📝 Commits (2) - [`3296298`](https://github.com/netbox-community/netbox/commit/3296298d21f32173780c753f7f8b6c2e7bd9d3e7) Fixes #4227: Omit internal fields from the change log data - [`40b56d7`](https://github.com/netbox-community/netbox/commit/40b56d7f627388c1beff2e53cec8bc162422ac76) Merge branch 'develop' into 4227-omit-private-changelog ### 📊 Changes **3 files changed** (+28 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `docs/release-notes/version-2.7.md` (+3 -2) 📝 `netbox/dcim/models/__init__.py` (+11 -2) 📝 `netbox/utilities/utils.py` (+14 -2) </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. IF YOUR PULL REQUEST DOES NOT REFERENCE AN ACCEPTED BUG REPORT OR FEATURE REQUEST, IT WILL BE MARKED AS INVALID AND CLOSED. --> ### Fixes: #4227 <!-- Please include a summary of the proposed changes below. --> Exclude private fields (starting with an underscore) from change log data. In addition, allow for specific keys to be excluded to address for edge cases (currently just the Region model which has MPTT-internal fields: `level`, `lft`, `rght`, and `tree_id`) --- <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:23:42 +01:00
adam closed this issue 2025-12-29 22:23:42 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#12805