2
0
Эх сурвалжийг харах

#21409: Disable CHANGELOG_RETAIN_CREATE_LAST_UPDATE by default (#21849)

Jeremy Stretch 1 өдөр өмнө
parent
commit
48e790c9f0

+ 1 - 5
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

+ 1 - 1
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)."