Skip to content

Enhance spo list set with extra versioning settings #6655

@milanholemans

Description

@milanholemans

Idea

Let's enhance the spo list set command with some additional options.

Option Description
--versionExpireAfterDays [versionExpireAfterDays] Number that defines how many days a version should be removed after. When using this option, be sure to also set majorVersionLimit.
--versionAutoExpireTrim [versionAutoExpireTrim] Boolean that indicates whether the automatic version trim should be enabled. Valid values are: true, false.

Requests

AFAIK, we'll have to use a CSOM request to set these values.

When implementing this enhancement, make sure that:

  • versionExpireAfterDays is a valid positive integer (we have a validation function for this).
  • It is not possible to specify versionExpireAfterDays and versionAutoExpireTrim (unless the latter is false).
  • Currently you'll have to set enableVersioning to true to make majorVersionLimit work. I don't see a point for this, for me it is obvious when majorVersionLimit is specified that versioning should be enabled. Let's remove this necessity.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions