Prevent logging to Change Log when no changes are made #14147
Labels
status: accepted
This issue has been accepted for implementation
type: feature
Introduction of new functionality to the application
Milestone
NetBox version
v3.6.4
Feature type
Change to existing functionality
Proposed functionality
When a record is patched via API and no changes are made, a Change Log entry is created stating "No changes". I would like to be able to either a) prevent those to be created, using a global configuration flag, or b) provide the ability to purge those manually...
Also, if those empty log gentries are kept, i would like to have, at minima, a filter in /extra/changelog/ section. Currently, it is not possible to filter by Action type = No changes.
This request is somewhat related to #13391 and #6599
Use case
I have a script that once in a while goes thru a list of 600+ sites and gather information from a corporate database, then patch the NB site with the required information. When it patches the site data, as expected, it does not update when information is the same between what's in the request and what's already in NetBox. Most of the time, nothing has changed. That said, even if nothing has changed, a change log is being created for each site. That means that every time my script runs, I get over 600 Change Logs entries even if only 20ish of those were really changed...
Database changes
None, AFAIK
External dependencies
none
The text was updated successfully, but these errors were encountered: