X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/16f704326f44fd1e5e5e60b936c9b5895d6a6ff8..4e5838bd9e1a7baa5b3e53e97e308140e4b6105f:/doc/admin/collection-versioning.html.textile.liquid diff --git a/doc/admin/collection-versioning.html.textile.liquid b/doc/admin/collection-versioning.html.textile.liquid index 6da1756b5c..7b25f7b395 100644 --- a/doc/admin/collection-versioning.html.textile.liquid +++ b/doc/admin/collection-versioning.html.textile.liquid @@ -12,21 +12,28 @@ SPDX-License-Identifier: CC-BY-SA-3.0 This page describes how to enable and configure the collection versioning feature on the API server. -h3. API Server configuration +h3. Configuration -There are 2 configuration settings that control this feature, both go on the @application.yml@ file. +There are 2 configuration settings in the @Collections@ section of @config.yml@ that control this feature. -h4. Settting: @collection_versioning@ (Boolean. Default: false) +
+    Collections:
+      # If true, enable collection versioning.
+      # When a collection's preserve_version field is true or the current version
+      # is older than the amount of seconds defined on PreserveVersionIfIdle,
+      # a snapshot of the collection's previous state is created and linked to
+      # the current collection.
+      CollectionVersioning: true
 
-If @true@, collection versioning is enabled, meaning that new version records can be created. Note that if you set @collection_versioning@ to @false@ after being enabled, old versions will still be accessible, but further changes will not be versioned.
+      # This setting control the auto-save aspect of collection versioning, and can be set to:
+      #   0s = auto-create a new version on every update.
+      #  -1s = never auto-create new versions.
+      # > 0s = auto-create a new version when older than the specified number of seconds.
+      PreserveVersionIfIdle: 10s
+
-h4. Setting: @preserve_version_if_idle@ (Numeric. Default: -1) - -This setting control the auto-save aspect of collection versioning, and can be set to: -* @-1@: Never auto-save versions. Only save versions when the client ask for it by setting @preserve_version@ to @true@ on any given collection. -* @0@: Preserve all versions every time a collection gets a versionable update. -* @N@ (being N > 0): Preserve version when a collection gets a versionable update after a period of at least N seconds since the last time it was modified. +Note that if you set @CollectionVersioning@ to @false@ after being enabled, old versions will still be accessible, but further changes will not be versioned. h3. Using collection versioning -"Discussed in the user guide":{{site.baseurl}}/user/topics/collection-versioning.html \ No newline at end of file +"Discussed in the user guide":{{site.baseurl}}/user/topics/collection-versioning.html