From 48e790c9f029a9f3d52dacc942a9b9904833ae65 Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Tue, 7 Apr 2026 10:26:26 -0400 Subject: [PATCH] #21409: Disable CHANGELOG_RETAIN_CREATE_LAST_UPDATE by default (#21849) --- docs/configuration/miscellaneous.md | 6 +----- netbox/netbox/config/parameters.py | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/docs/configuration/miscellaneous.md b/docs/configuration/miscellaneous.md index 2de8a861d..048f72452 100644 --- a/docs/configuration/miscellaneous.md +++ b/docs/configuration/miscellaneous.md @@ -77,7 +77,7 @@ This data enables the project maintainers to estimate how many NetBox deployment !!! tip "Dynamic Configuration Parameter" -Default: `True` +Default: `False` When pruning expired changelog entries (per `CHANGELOG_RETENTION`), retain each non-deleted object's original `create` change record and its most recent `update` change record. If an object has a `delete` change record, its changelog @@ -88,10 +88,6 @@ entries are pruned normally according to `CHANGELOG_RETENTION`. exempt from pruning. All other changelog records (including intermediate `update` records and all `delete` records) remain subject to pruning per `CHANGELOG_RETENTION`. -!!! warning - This setting is enabled by default. Upgrading deployments that rely on complete pruning of expired changelog entries - should explicitly set `CHANGELOG_RETAIN_CREATE_LAST_UPDATE = False` to preserve the previous behavior. - --- ## CHANGELOG_RETENTION diff --git a/netbox/netbox/config/parameters.py b/netbox/netbox/config/parameters.py index 80081509a..0c9975941 100644 --- a/netbox/netbox/config/parameters.py +++ b/netbox/netbox/config/parameters.py @@ -186,7 +186,7 @@ PARAMS = ( ConfigParam( name='CHANGELOG_RETAIN_CREATE_LAST_UPDATE', label=_('Retain create & last update changelog records'), - default=True, + default=False, description=_( "Retain each object's create record and most recent update record when pruning expired changelog entries " "(excluding objects with a delete record)."