X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/9b1154beb90c7d174053e7487a3f9b7dc937dcf8..540e89bcb91a9f2f1f2828083eea632581953aa8:/doc/api/properties.html.textile.liquid diff --git a/doc/api/properties.html.textile.liquid b/doc/api/properties.html.textile.liquid index b8932fd312..175c59b8c4 100644 --- a/doc/api/properties.html.textile.liquid +++ b/doc/api/properties.html.textile.liquid @@ -15,11 +15,28 @@ Searching for records using properties is described in "Filtering on subproperti h2. Reserved properties -The following properties are set by Arvados components. +Components that ship with Arvados may automatically set properties on objects. These usually help track provenance or provide additional link metadata. These properties usually have a key that starts with @arv:@, and can always be set even when the system is configured with a strict vocabulary. + +table(table table-bordered table-condensed). +|_. Property name|_. Appears on|_. Value type|_.Description| +{% comment %} +The arv:git* container properties, and the associated Git commands, primarily come from arvados_cwl.executor.ArvCwlExecutor.get_git_info. +{% endcomment -%} +|arv:gitBranch|container request, collection of type=workflow|string|When @arvados-cwl-runner@ is run from a Git checkout, this property is set with the name of the branch checked out (the output of @git rev-parse --abbrev-ref HEAD@)| +|arv:gitCommitter|container request, collection of type=workflow|string|When @arvados-cwl-runner@ is run from a Git checkout, this property is set with the name and email address of the committer of the most recent commit (the output of @git log --format='%cn <%ce>' -n1 HEAD@)| +|arv:gitCommit|container request, collection of type=workflow|string|When @arvados-cwl-runner@ is run from a Git checkout, this property is set with the full checksum of the most recent commit (the output of @git log --format='%H' -n1 HEAD@)| +|arv:gitDate|container request, collection of type=workflow|string|When @arvados-cwl-runner@ is run from a Git checkout, this property is set with the commit date of the most recent commit in RFC 2822 format (the output of @git log --format='%cD' -n1 HEAD@)| +|arv:gitDescribe|container request, collection of type=workflow|string|When @arvados-cwl-runner@ is run from a Git checkout, this property is set with the name of the most recent tag that is reachable from the most recent commit (the output of @git describe --always --tags@)| +|arv:gitOrigin|container request, collection of type=workflow|string|When @arvados-cwl-runner@ is run from a Git checkout, this property is set with the URL of the remote named @origin@, if set (the output of @git remote get-url origin@)| +|arv:gitPath|container request, collection of type=workflow|string|When @arvados-cwl-runner@ is run from a Git checkout, this property is set with the absolute path of the checkout on the filesystem| +|arv:gitStatus|container request, collection of type=workflow|string|When @arvados-cwl-runner@ is run from a Git checkout, this property is set with a machine-readable summary of files modified in the checkout since the most recent commit (the output of @git status --untracked-files=no --porcelain@)| +|arv:workflowMain|collection of type=workflow|string|Set on a collection containing a workflow created by @arvados-cwl-runner --create-workflow@, this is a relative reference inside the collection to the entry point of the workflow.| + +The following system properties predate the @arv:@ key prefix, but are still reserved and can always be set. table(table table-bordered table-condensed). |_. Property name|_. Appears on|_. Value type|_.Description| -|type|collection|string|Appears on collections to indicates the contents or usage. See below for details.| +|type|collection|string|Appears on collections to indicates the contents or usage. See "Collection type values":#collectiontype below for details.| |container_request|collection|string|The UUID of the container request that produced an output or log collection.| |docker-image-repo-tag|collection|string|For collections containing a Docker image, the repo/name:tag identifier| |container_uuid|collection|string|The UUID of the container that produced a collection (set on collections with type=log)| @@ -31,15 +48,16 @@ table(table table-bordered table-condensed). |image_timestamp|link|string|When resolving a Docker image name and multiple links are found with @link_class=docker_image_repo+tag@ and same @link_name@, the @image_timestamp@ is used to determine precedence (most recent wins).| |filters|group|array of array of string|Used to define "filter groups":projects.html#filtergroup| -h3. Collection "type" values +h3(#collectiontype). Collection "type" values -Meaningful values of the @type@ property. +Meaningful values of the @type@ property. These are recognized by Workbench when filtering on types of collections from the project content listing. table(table table-bordered table-condensed). |_. Type|_.Description| |log|The collection contains log files from a container run.| |output|The collection contains the output of a top-level container run (this is a container request where @requesting_container_uuid@ is null).| |intermediate|The collection contains the output of a child container run (this is a container request where @requesting_container_uuid@ is non-empty).| +|workflow|A collection created by @arvados-cwl-runner --create-workflow@ containing a workflow definition.| h2. Controlling user-supplied properties