Project

General

Profile

Actions

Bug #19586

open

Error creating a collection with "preserve_version" using the Python SDK

Added by Ben Pring over 1 year ago. Updated about 2 months ago.

Status:
New
Priority:
Normal
Assigned To:
-
Category:
-
Target version:
Story points:
-
Release:
Release relationship:
Auto

Description

I'm trying to create a collection with the "preserve_version" flag set. It seems using the API in the following way never allows this:

output_collection = arvados.collection.Collection()

output_collection.save_new(
    name=output_collection_name,
    owner_uuid=output_collection_owner_uuid,
    preserve_version=True,
)
output_collection.update()

This always responds with an error:

arvados.errors.ArgumentError: preserve_version is not supported when CollectionVersioning is not enabled.

But I believe this is just a local check, which is never passes - it doesn't appear to matter that CollectionVersioning is indeed enabled in the config.yaml on the back-end.

Am I using the API incorrectly to do this?

Actions #1

Updated by Peter Amstutz about 1 year ago

  • Release set to 60
Actions #2

Updated by Peter Amstutz about 2 months ago

  • Target version set to Future
Actions

Also available in: Atom PDF