{"action":"created","comment":{"url":"https://api.github.com/repos/genialis/resolwe-bio/pulls/comments/176376433","pull_request_review_id":106065041,"id":176376433,"diff_hunk":"@@ -0,0 +1,55 @@\n+- slug: basespace-file-import\n+  name: BaseSpace File Import\n+  requirements:\n+    expression-engine: jinja\n+    executor:\n+      docker:\n+        image: resolwebio/utils:1.2.0\n+    resources:\n+      network: true\n+      secrets: true\n+  data_name: 'BaseSpace File Import ({{ file_id|default(\"?\") }})'\n+  version: 0.0.1\n+  type: data:file\n+  category: upload\n+  persistence: RAW\n+  description: >\n+    Import file from Illumina BaseSpace.\n+  input:\n+    - name: file_id\n+      label: BaseSpace file ID\n+      type: basic:string\n+    - name: access_token_secret\n+      label: BaseSpace access token\n+      type: basic:secret\n+      description: >\n+        BaseSpace access token secret handle needed to download the file.\n+    - name: verbose\n+      label: Verbose\n+      description: >\n+        Print additional information when errors occur.\n+      type: basic:boolean\n+      default: false\n+  output:\n+    - name: file\n+      label: File\n+      type: basic:file\n+  run:\n+    runtime: polyglot\n+    language: bash\n+    program: |\n+      {% set SECRET_PATH = '/secrets/' ~ access_token_secret.handle %}\n+\n+      BASESPACE_OUTPUT=$(basespace_download.py \\\n+        --file-id {{ file_id }} \\\n+        --access-token-secret-path {{ SECRET_PATH }} \\\n+        {% if verbose %} --verbose {% endif %} \\\n+      )\n+      re-checkrc \"Failed downloading files from BaseSpace.\"\n+\n+      function extract_filename_from_output() {","path":"resolwe_bio/processes/import_data/basespace.yml","position":50,"original_position":50,"commit_id":"a3b5eae53587cbe89a87e899f1a99c7d9155c376","original_commit_id":"a3b5eae53587cbe89a87e899f1a99c7d9155c376","user":{"login":"kostko","id":543739,"avatar_url":"https://avatars1.githubusercontent.com/u/543739?v=4","gravatar_id":"","url":"https://api.github.com/users/kostko","html_url":"https://github.com/kostko","followers_url":"https://api.github.com/users/kostko/followers","following_url":"https://api.github.com/users/kostko/following{/other_user}","gists_url":"https://api.github.com/users/kostko/gists{/gist_id}","starred_url":"https://api.github.com/users/kostko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kostko/subscriptions","organizations_url":"https://api.github.com/users/kostko/orgs","repos_url":"https://api.github.com/users/kostko/repos","events_url":"https://api.github.com/users/kostko/events{/privacy}","received_events_url":"https://api.github.com/users/kostko/received_events","type":"User","site_admin":false},"body":"> This wouldn't be a problem if processes were written in Python.\r\n\r\nSure, but until they are I think the `--output` flag is not that bad.","created_at":"2018-03-22T10:48:00Z","updated_at":"2018-03-22T10:48:00Z","html_url":"https://github.com/genialis/resolwe-bio/pull/479#discussion_r176376433","pull_request_url":"https://api.github.com/repos/genialis/resolwe-bio/pulls/479","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/genialis/resolwe-bio/pulls/comments/176376433"},"html":{"href":"https://github.com/genialis/resolwe-bio/pull/479#discussion_r176376433"},"pull_request":{"href":"https://api.github.com/repos/genialis/resolwe-bio/pulls/479"}},"in_reply_to_id":176371484},"pull_request":{"url":"https://api.github.com/repos/genialis/resolwe-bio/pulls/479","id":167694747,"html_url":"https://github.com/genialis/resolwe-bio/pull/479","diff_url":"https://github.com/genialis/resolwe-bio/pull/479.diff","patch_url":"https://github.com/genialis/resolwe-bio/pull/479.patch","issue_url":"https://api.github.com/repos/genialis/resolwe-bio/issues/479","number":479,"state":"open","locked":false,"title":"Add BaseSpace import processes","user":{"login":"hadalin","id":1746370,"avatar_url":"https://avatars0.githubusercontent.com/u/1746370?v=4","gravatar_id":"","url":"https://api.github.com/users/hadalin","html_url":"https://github.com/hadalin","followers_url":"https://api.github.com/users/hadalin/followers","following_url":"https://api.github.com/users/hadalin/following{/other_user}","gists_url":"https://api.github.com/users/hadalin/gists{/gist_id}","starred_url":"https://api.github.com/users/hadalin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hadalin/subscriptions","organizations_url":"https://api.github.com/users/hadalin/orgs","repos_url":"https://api.github.com/users/hadalin/repos","events_url":"https://api.github.com/users/hadalin/events{/privacy}","received_events_url":"https://api.github.com/users/hadalin/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-02-07T13:38:17Z","updated_at":"2018-03-22T10:48:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"925c7d437a659fc3ab977e8092abd717953d8bdf","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":636785598,"url":"https://api.github.com/repos/genialis/resolwe-bio/labels/priority-medium","name":"priority-medium","color":"fbca04","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/genialis/resolwe-bio/pulls/479/commits","review_comments_url":"https://api.github.com/repos/genialis/resolwe-bio/pulls/479/comments","review_comment_url":"https://api.github.com/repos/genialis/resolwe-bio/pulls/comments{/number}","comments_url":"https://api.github.com/repos/genialis/resolwe-bio/issues/479/comments","statuses_url":"https://api.github.com/repos/genialis/resolwe-bio/statuses/a3b5eae53587cbe89a87e899f1a99c7d9155c376","head":{"label":"hadalin:basespace","ref":"basespace","sha":"a3b5eae53587cbe89a87e899f1a99c7d9155c376","user":{"login":"hadalin","id":1746370,"avatar_url":"https://avatars0.githubusercontent.com/u/1746370?v=4","gravatar_id":"","url":"https://api.github.com/users/hadalin","html_url":"https://github.com/hadalin","followers_url":"https://api.github.com/users/hadalin/followers","following_url":"https://api.github.com/users/hadalin/following{/other_user}","gists_url":"https://api.github.com/users/hadalin/gists{/gist_id}","starred_url":"https://api.github.com/users/hadalin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hadalin/subscriptions","organizations_url":"https://api.github.com/users/hadalin/orgs","repos_url":"https://api.github.com/users/hadalin/repos","events_url":"https://api.github.com/users/hadalin/events{/privacy}","received_events_url":"https://api.github.com/users/hadalin/received_events","type":"User","site_admin":false},"repo":{"id":50648334,"name":"resolwe-bio","full_name":"hadalin/resolwe-bio","owner":{"login":"hadalin","id":1746370,"avatar_url":"https://avatars0.githubusercontent.com/u/1746370?v=4","gravatar_id":"","url":"https://api.github.com/users/hadalin","html_url":"https://github.com/hadalin","followers_url":"https://api.github.com/users/hadalin/followers","following_url":"https://api.github.com/users/hadalin/following{/other_user}","gists_url":"https://api.github.com/users/hadalin/gists{/gist_id}","starred_url":"https://api.github.com/users/hadalin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hadalin/subscriptions","organizations_url":"https://api.github.com/users/hadalin/orgs","repos_url":"https://api.github.com/users/hadalin/repos","events_url":"https://api.github.com/users/hadalin/events{/privacy}","received_events_url":"https://api.github.com/users/hadalin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hadalin/resolwe-bio","description":"Bioinformatics pipelines for Resolwe","fork":true,"url":"https://api.github.com/repos/hadalin/resolwe-bio","forks_url":"https://api.github.com/repos/hadalin/resolwe-bio/forks","keys_url":"https://api.github.com/repos/hadalin/resolwe-bio/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hadalin/resolwe-bio/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hadalin/resolwe-bio/teams","hooks_url":"https://api.github.com/repos/hadalin/resolwe-bio/hooks","issue_events_url":"https://api.github.com/repos/hadalin/resolwe-bio/issues/events{/number}","events_url":"https://api.github.com/repos/hadalin/resolwe-bio/events","assignees_url":"https://api.github.com/repos/hadalin/resolwe-bio/assignees{/user}","branches_url":"https://api.github.com/repos/hadalin/resolwe-bio/branches{/branch}","tags_url":"https://api.github.com/repos/hadalin/resolwe-bio/tags","blobs_url":"https://api.github.com/repos/hadalin/resolwe-bio/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hadalin/resolwe-bio/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hadalin/resolwe-bio/git/refs{/sha}","trees_url":"https://api.github.com/repos/hadalin/resolwe-bio/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hadalin/resolwe-bio/statuses/{sha}","languages_url":"https://api.github.com/repos/hadalin/resolwe-bio/languages","stargazers_url":"https://api.github.com/repos/hadalin/resolwe-bio/stargazers","contributors_url":"https://api.github.com/repos/hadalin/resolwe-bio/contributors","subscribers_url":"https://api.github.com/repos/hadalin/resolwe-bio/subscribers","subscription_url":"https://api.github.com/repos/hadalin/resolwe-bio/subscription","commits_url":"https://api.github.com/repos/hadalin/resolwe-bio/commits{/sha}","git_commits_url":"https://api.github.com/repos/hadalin/resolwe-bio/git/commits{/sha}","comments_url":"https://api.github.com/repos/hadalin/resolwe-bio/comments{/number}","issue_comment_url":"https://api.github.com/repos/hadalin/resolwe-bio/issues/comments{/number}","contents_url":"https://api.github.com/repos/hadalin/resolwe-bio/contents/{+path}","compare_url":"https://api.github.com/repos/hadalin/resolwe-bio/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hadalin/resolwe-bio/merges","archive_url":"https://api.github.com/repos/hadalin/resolwe-bio/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hadalin/resolwe-bio/downloads","issues_url":"https://api.github.com/repos/hadalin/resolwe-bio/issues{/number}","pulls_url":"https://api.github.com/repos/hadalin/resolwe-bio/pulls{/number}","milestones_url":"https://api.github.com/repos/hadalin/resolwe-bio/milestones{/number}","notifications_url":"https://api.github.com/repos/hadalin/resolwe-bio/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hadalin/resolwe-bio/labels{/name}","releases_url":"https://api.github.com/repos/hadalin/resolwe-bio/releases{/id}","deployments_url":"https://api.github.com/repos/hadalin/resolwe-bio/deployments","created_at":"2016-01-29T08:09:09Z","updated_at":"2018-03-22T08:20:36Z","pushed_at":"2018-03-22T08:22:36Z","git_url":"git://github.com/hadalin/resolwe-bio.git","ssh_url":"git@github.com:hadalin/resolwe-bio.git","clone_url":"https://github.com/hadalin/resolwe-bio.git","svn_url":"https://github.com/hadalin/resolwe-bio","homepage":"","size":21613,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"genialis:master","ref":"master","sha":"543be636fa97bf68ca67425346e92201073405d6","user":{"login":"genialis","id":2120224,"avatar_url":"https://avatars0.githubusercontent.com/u/2120224?v=4","gravatar_id":"","url":"https://api.github.com/users/genialis","html_url":"https://github.com/genialis","followers_url":"https://api.github.com/users/genialis/followers","following_url":"https://api.github.com/users/genialis/following{/other_user}","gists_url":"https://api.github.com/users/genialis/gists{/gist_id}","starred_url":"https://api.github.com/users/genialis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/genialis/subscriptions","organizations_url":"https://api.github.com/users/genialis/orgs","repos_url":"https://api.github.com/users/genialis/repos","events_url":"https://api.github.com/users/genialis/events{/privacy}","received_events_url":"https://api.github.com/users/genialis/received_events","type":"Organization","site_admin":false},"repo":{"id":46388888,"name":"resolwe-bio","full_name":"genialis/resolwe-bio","owner":{"login":"genialis","id":2120224,"avatar_url":"https://avatars0.githubusercontent.com/u/2120224?v=4","gravatar_id":"","url":"https://api.github.com/users/genialis","html_url":"https://github.com/genialis","followers_url":"https://api.github.com/users/genialis/followers","following_url":"https://api.github.com/users/genialis/following{/other_user}","gists_url":"https://api.github.com/users/genialis/gists{/gist_id}","starred_url":"https://api.github.com/users/genialis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/genialis/subscriptions","organizations_url":"https://api.github.com/users/genialis/orgs","repos_url":"https://api.github.com/users/genialis/repos","events_url":"https://api.github.com/users/genialis/events{/privacy}","received_events_url":"https://api.github.com/users/genialis/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/genialis/resolwe-bio","description":"Bioinformatics pipelines for Resolwe","fork":false,"url":"https://api.github.com/repos/genialis/resolwe-bio","forks_url":"https://api.github.com/repos/genialis/resolwe-bio/forks","keys_url":"https://api.github.com/repos/genialis/resolwe-bio/keys{/key_id}","collaborators_url":"https://api.github.com/repos/genialis/resolwe-bio/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/genialis/resolwe-bio/teams","hooks_url":"https://api.github.com/repos/genialis/resolwe-bio/hooks","issue_events_url":"https://api.github.com/repos/genialis/resolwe-bio/issues/events{/number}","events_url":"https://api.github.com/repos/genialis/resolwe-bio/events","assignees_url":"https://api.github.com/repos/genialis/resolwe-bio/assignees{/user}","branches_url":"https://api.github.com/repos/genialis/resolwe-bio/branches{/branch}","tags_url":"https://api.github.com/repos/genialis/resolwe-bio/tags","blobs_url":"https://api.github.com/repos/genialis/resolwe-bio/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/genialis/resolwe-bio/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/genialis/resolwe-bio/git/refs{/sha}","trees_url":"https://api.github.com/repos/genialis/resolwe-bio/git/trees{/sha}","statuses_url":"https://api.github.com/repos/genialis/resolwe-bio/statuses/{sha}","languages_url":"https://api.github.com/repos/genialis/resolwe-bio/languages","stargazers_url":"https://api.github.com/repos/genialis/resolwe-bio/stargazers","contributors_url":"https://api.github.com/repos/genialis/resolwe-bio/contributors","subscribers_url":"https://api.github.com/repos/genialis/resolwe-bio/subscribers","subscription_url":"https://api.github.com/repos/genialis/resolwe-bio/subscription","commits_url":"https://api.github.com/repos/genialis/resolwe-bio/commits{/sha}","git_commits_url":"https://api.github.com/repos/genialis/resolwe-bio/git/commits{/sha}","comments_url":"https://api.github.com/repos/genialis/resolwe-bio/comments{/number}","issue_comment_url":"https://api.github.com/repos/genialis/resolwe-bio/issues/comments{/number}","contents_url":"https://api.github.com/repos/genialis/resolwe-bio/contents/{+path}","compare_url":"https://api.github.com/repos/genialis/resolwe-bio/compare/{base}...{head}","merges_url":"https://api.github.com/repos/genialis/resolwe-bio/merges","archive_url":"https://api.github.com/repos/genialis/resolwe-bio/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/genialis/resolwe-bio/downloads","issues_url":"https://api.github.com/repos/genialis/resolwe-bio/issues{/number}","pulls_url":"https://api.github.com/repos/genialis/resolwe-bio/pulls{/number}","milestones_url":"https://api.github.com/repos/genialis/resolwe-bio/milestones{/number}","notifications_url":"https://api.github.com/repos/genialis/resolwe-bio/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/genialis/resolwe-bio/labels{/name}","releases_url":"https://api.github.com/repos/genialis/resolwe-bio/releases{/id}","deployments_url":"https://api.github.com/repos/genialis/resolwe-bio/deployments","created_at":"2015-11-18T02:11:58Z","updated_at":"2018-03-22T10:41:38Z","pushed_at":"2018-03-22T10:41:35Z","git_url":"git://github.com/genialis/resolwe-bio.git","ssh_url":"git@github.com:genialis/resolwe-bio.git","clone_url":"https://github.com/genialis/resolwe-bio.git","svn_url":"https://github.com/genialis/resolwe-bio","homepage":"","size":21618,"stargazers_count":4,"watchers_count":4,"language":"HTML","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":22,"mirror_url":null,"archived":false,"open_issues_count":12,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":22,"open_issues":12,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/genialis/resolwe-bio/pulls/479"},"html":{"href":"https://github.com/genialis/resolwe-bio/pull/479"},"issue":{"href":"https://api.github.com/repos/genialis/resolwe-bio/issues/479"},"comments":{"href":"https://api.github.com/repos/genialis/resolwe-bio/issues/479/comments"},"review_comments":{"href":"https://api.github.com/repos/genialis/resolwe-bio/pulls/479/comments"},"review_comment":{"href":"https://api.github.com/repos/genialis/resolwe-bio/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/genialis/resolwe-bio/pulls/479/commits"},"statuses":{"href":"https://api.github.com/repos/genialis/resolwe-bio/statuses/a3b5eae53587cbe89a87e899f1a99c7d9155c376"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"kostko"}}