Project

General

Profile

Collections as regular Arvados objects » History » Version 7

Peter Amstutz, 08/08/2014 01:15 PM

1 1 Peter Amstutz
h1. Collections as regular Arvados objects
2
3
* Collections are assigned regular UUIDs
4 5 Peter Amstutz
* Collections have a regular @owner_uuid@ instead
5 1 Peter Amstutz
* Manifest hash goes into the @portable_data_hash@ field
6 6 Peter Amstutz
* @manifest_text@ and @portable_data_hash@ can be edited
7
* Can access collections on API by uuid (returns regular record) or @portable_data_hash@ (returns record containing @uuid@, @portable_data_hash@ and @manifest_text@ with @uuid@==@portable_data_hash@)
8
** Setting/changing @manifest_text@ on its own updates @portable_data_hash@
9
** Setting/changing @portable_data_hash@ on its own fetches the manifest from Keep
10
** @manifest_text@ and @portable_data_hash@ have to match
11 1 Peter Amstutz
* Add mutable @name@, @description@, @properties@ fields
12 7 Peter Amstutz
** Use same logic for names/descriptions as already exist for other Arvados objects
13 1 Peter Amstutz
* Continue to use manifest text hash (@portable_data_hash@) for crunch
14
** Choosers set the value to the manifest hash, record the selected collection uuid on link_uuid
15 6 Peter Amstutz
** Task output continues to be a manifest fragment or manifest hash+token stored in Keep
16
** Crunch-job continues to set job output to manifest hash+token
17
** Crunch-job creates output collection with @owner_uuid@ as the user (which means it will show up in the "home" project when #3499 is merged)
18
* Pipeline runner is responsible for creating a collection in the target project and setting the name
19
** Add an @output_name@ field to the component description
20
* When user clicks on a link to a collection uuid, it should include the expected portable data hash in the URL
21
** If there is a mismatch, it should throw up a warning and possibly tell the user what changed
22
* Disallow content hashes in @head_uuid@ and @tail_uuid@ fields of links
23 4 Peter Amstutz
24 3 Peter Amstutz
h2. Migration
25 1 Peter Amstutz
26 7 Peter Amstutz
* Update schema to add @name@, @description@, @properties@ columns
27
* Convert name links to collection objects owned by @tail_uuid@ and delete the name links
28
* For remaining collections not accessible through name links, look for *can_read* permission links and create collections owned to the relevant user or group
29
* Any other collections will remain owned by system user and will have to be assigned manually (?)
30
* Update links (other than name or permission links) that point to a manifest hash to point to an appropriate collection uuid instead