Project

General

Profile

Actions

Feature #18600

closed

Collection update API for manipulating files

Added by Peter Amstutz about 3 years ago. Updated almost 3 years ago.

Status:
Resolved
Priority:
Normal
Assigned To:
Category:
-
Target version:
Start date:
02/11/2022
Due date:
% Done:

100%

Estimated time:
(Total: 0.00 h)
Story points:
-
Release relationship:
Auto

Description

New endpoint "arvados/v1/collections/uuid/modify"

Map in the form:

{"destination": "source"}

destination: in the form "destination/path"

source: either "PDH/source/path" (can be a directory, including root) or empty (destination should be deleted)

Gets the file content from the path at the portable data hash. Replaces the contents of the destination.

The original portable data hash of the collection (before edits are applied) is valid.

Cannot have a destination that's within another destination, e.g.

{
"/sys": "abc",
"/sys/foobar": "xyz"
}

Is an error because the specification of "/sys" overlaps.

It is the job of the client to determine that there are no overlaps, when merging collections, the client must resolve conflicts (e.g. same named files).


Files

18600-doc-preview.png (150 KB) 18600-doc-preview.png Tom Clegg, 03/07/2022 07:35 PM

Subtasks 2 (0 open2 closed)

Task #18647: Review 18600-copy-by-refResolvedTom Clegg02/11/2022

Actions
Task #18827: Review 18600-update-filesResolvedTom Clegg02/11/2022

Actions

Related issues 2 (2 open0 closed)

Related to Arvados - Feature #18871: WebDAV uses replace_files APINew

Actions
Blocks Arvados Workbench 2 - Bug #18587: "Copy selected into collection" incorrect behaviorNew

Actions
Actions

Also available in: Atom PDF