{"action":"created","comment":{"url":"https://api.github.com/repos/DataBiosphere/job-manager/pulls/comments/168817960","pull_request_review_id":97252765,"id":168817960,"diff_hunk":"@@ -1,7 +1,43 @@\n+from jobs.controllers.utils.providers import ProviderType\n+from jobs.models.authentication_capability import AuthenticationCapability\n+from jobs.models.capabilities_response import CapabilitiesResponse\n+\n+\n def get_capabilities():\n     \"\"\"Get the capabilities of this backend implementation.\n \n     Returns:\n         CapabilitiesResponse: Response containing this backend's capabilities\n     \"\"\"\n-    raise NotImplemented('Not yet supported.')\n+    capabilities = CapabilitiesResponse(\n+        authentication=AuthenticationCapability(\n+            is_required=true,\n+            scopes=[\n+                'https://www.googleapis.com/auth/genomics',\n+                'https://www.googleapis.com/auth/cloudplatformprojects.readonly'\n+            ]),\n+        display_fields={\n+            'name': 'Job',\n+            'status': 'Status',\n+            'submission': 'Submitted',\n+            'labels.job_id': 'Job ID',\n+            'labels.task_id': 'Task ID',\n+            'extensions.user_id': 'User ID',\n+            'extensions.status_detail': 'Status Detail'\n+        },\n+        common_labels=['job_id', 'task_id'],\n+        extended_query_fields=['project_id', 'user_id', 'submission'])\n+\n+    if _provider_type() == ProviderType.GOOGLE:\n+        capabilities.authentication = AuthenticationCapability(","path":"servers/dsub/jobs/controllers/capabilities_controller.py","position":27,"original_position":33,"commit_id":"e80c237775b44b0fcbf72714400da432f793abe5","original_commit_id":"29695250354042bac3aabcf332c2ffaeb2721da1","user":{"login":"calbach","id":822298,"avatar_url":"https://avatars0.githubusercontent.com/u/822298?v=4","gravatar_id":"","url":"https://api.github.com/users/calbach","html_url":"https://github.com/calbach","followers_url":"https://api.github.com/users/calbach/followers","following_url":"https://api.github.com/users/calbach/following{/other_user}","gists_url":"https://api.github.com/users/calbach/gists{/gist_id}","starred_url":"https://api.github.com/users/calbach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/calbach/subscriptions","organizations_url":"https://api.github.com/users/calbach/orgs","repos_url":"https://api.github.com/users/calbach/repos","events_url":"https://api.github.com/users/calbach/events{/privacy}","received_events_url":"https://api.github.com/users/calbach/received_events","type":"User","site_admin":false},"body":"Did you mean to leave this unset above?","created_at":"2018-02-16T17:18:50Z","updated_at":"2018-02-16T17:19:05Z","html_url":"https://github.com/DataBiosphere/job-manager/pull/209#discussion_r168817960","pull_request_url":"https://api.github.com/repos/DataBiosphere/job-manager/pulls/209","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/DataBiosphere/job-manager/pulls/comments/168817960"},"html":{"href":"https://github.com/DataBiosphere/job-manager/pull/209#discussion_r168817960"},"pull_request":{"href":"https://api.github.com/repos/DataBiosphere/job-manager/pulls/209"}}},"pull_request":{"url":"https://api.github.com/repos/DataBiosphere/job-manager/pulls/209","id":169679284,"html_url":"https://github.com/DataBiosphere/job-manager/pull/209","diff_url":"https://github.com/DataBiosphere/job-manager/pull/209.diff","patch_url":"https://github.com/DataBiosphere/job-manager/pull/209.patch","issue_url":"https://api.github.com/repos/DataBiosphere/job-manager/issues/209","number":209,"state":"open","locked":false,"title":"[dsub] Implement capabilities endpoint","user":{"login":"bfcrampton","id":1890623,"avatar_url":"https://avatars1.githubusercontent.com/u/1890623?v=4","gravatar_id":"","url":"https://api.github.com/users/bfcrampton","html_url":"https://github.com/bfcrampton","followers_url":"https://api.github.com/users/bfcrampton/followers","following_url":"https://api.github.com/users/bfcrampton/following{/other_user}","gists_url":"https://api.github.com/users/bfcrampton/gists{/gist_id}","starred_url":"https://api.github.com/users/bfcrampton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bfcrampton/subscriptions","organizations_url":"https://api.github.com/users/bfcrampton/orgs","repos_url":"https://api.github.com/users/bfcrampton/repos","events_url":"https://api.github.com/users/bfcrampton/events{/privacy}","received_events_url":"https://api.github.com/users/bfcrampton/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-02-16T17:15:29Z","updated_at":"2018-02-16T17:19:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"77e4102e8daade51cc1fa781d0bd19199648978a","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/DataBiosphere/job-manager/pulls/209/commits","review_comments_url":"https://api.github.com/repos/DataBiosphere/job-manager/pulls/209/comments","review_comment_url":"https://api.github.com/repos/DataBiosphere/job-manager/pulls/comments{/number}","comments_url":"https://api.github.com/repos/DataBiosphere/job-manager/issues/209/comments","statuses_url":"https://api.github.com/repos/DataBiosphere/job-manager/statuses/e80c237775b44b0fcbf72714400da432f793abe5","head":{"label":"DataBiosphere:bc/dsub-capabilities","ref":"bc/dsub-capabilities","sha":"e80c237775b44b0fcbf72714400da432f793abe5","user":{"login":"DataBiosphere","id":32805087,"avatar_url":"https://avatars0.githubusercontent.com/u/32805087?v=4","gravatar_id":"","url":"https://api.github.com/users/DataBiosphere","html_url":"https://github.com/DataBiosphere","followers_url":"https://api.github.com/users/DataBiosphere/followers","following_url":"https://api.github.com/users/DataBiosphere/following{/other_user}","gists_url":"https://api.github.com/users/DataBiosphere/gists{/gist_id}","starred_url":"https://api.github.com/users/DataBiosphere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DataBiosphere/subscriptions","organizations_url":"https://api.github.com/users/DataBiosphere/orgs","repos_url":"https://api.github.com/users/DataBiosphere/repos","events_url":"https://api.github.com/users/DataBiosphere/events{/privacy}","received_events_url":"https://api.github.com/users/DataBiosphere/received_events","type":"Organization","site_admin":false},"repo":{"id":101917710,"name":"job-manager","full_name":"DataBiosphere/job-manager","owner":{"login":"DataBiosphere","id":32805087,"avatar_url":"https://avatars0.githubusercontent.com/u/32805087?v=4","gravatar_id":"","url":"https://api.github.com/users/DataBiosphere","html_url":"https://github.com/DataBiosphere","followers_url":"https://api.github.com/users/DataBiosphere/followers","following_url":"https://api.github.com/users/DataBiosphere/following{/other_user}","gists_url":"https://api.github.com/users/DataBiosphere/gists{/gist_id}","starred_url":"https://api.github.com/users/DataBiosphere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DataBiosphere/subscriptions","organizations_url":"https://api.github.com/users/DataBiosphere/orgs","repos_url":"https://api.github.com/users/DataBiosphere/repos","events_url":"https://api.github.com/users/DataBiosphere/events{/privacy}","received_events_url":"https://api.github.com/users/DataBiosphere/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/DataBiosphere/job-manager","description":"Job Manager API and UI for interacting with asynchronous batch jobs and workflows.","fork":false,"url":"https://api.github.com/repos/DataBiosphere/job-manager","forks_url":"https://api.github.com/repos/DataBiosphere/job-manager/forks","keys_url":"https://api.github.com/repos/DataBiosphere/job-manager/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DataBiosphere/job-manager/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DataBiosphere/job-manager/teams","hooks_url":"https://api.github.com/repos/DataBiosphere/job-manager/hooks","issue_events_url":"https://api.github.com/repos/DataBiosphere/job-manager/issues/events{/number}","events_url":"https://api.github.com/repos/DataBiosphere/job-manager/events","assignees_url":"https://api.github.com/repos/DataBiosphere/job-manager/assignees{/user}","branches_url":"https://api.github.com/repos/DataBiosphere/job-manager/branches{/branch}","tags_url":"https://api.github.com/repos/DataBiosphere/job-manager/tags","blobs_url":"https://api.github.com/repos/DataBiosphere/job-manager/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DataBiosphere/job-manager/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DataBiosphere/job-manager/git/refs{/sha}","trees_url":"https://api.github.com/repos/DataBiosphere/job-manager/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DataBiosphere/job-manager/statuses/{sha}","languages_url":"https://api.github.com/repos/DataBiosphere/job-manager/languages","stargazers_url":"https://api.github.com/repos/DataBiosphere/job-manager/stargazers","contributors_url":"https://api.github.com/repos/DataBiosphere/job-manager/contributors","subscribers_url":"https://api.github.com/repos/DataBiosphere/job-manager/subscribers","subscription_url":"https://api.github.com/repos/DataBiosphere/job-manager/subscription","commits_url":"https://api.github.com/repos/DataBiosphere/job-manager/commits{/sha}","git_commits_url":"https://api.github.com/repos/DataBiosphere/job-manager/git/commits{/sha}","comments_url":"https://api.github.com/repos/DataBiosphere/job-manager/comments{/number}","issue_comment_url":"https://api.github.com/repos/DataBiosphere/job-manager/issues/comments{/number}","contents_url":"https://api.github.com/repos/DataBiosphere/job-manager/contents/{+path}","compare_url":"https://api.github.com/repos/DataBiosphere/job-manager/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DataBiosphere/job-manager/merges","archive_url":"https://api.github.com/repos/DataBiosphere/job-manager/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DataBiosphere/job-manager/downloads","issues_url":"https://api.github.com/repos/DataBiosphere/job-manager/issues{/number}","pulls_url":"https://api.github.com/repos/DataBiosphere/job-manager/pulls{/number}","milestones_url":"https://api.github.com/repos/DataBiosphere/job-manager/milestones{/number}","notifications_url":"https://api.github.com/repos/DataBiosphere/job-manager/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DataBiosphere/job-manager/labels{/name}","releases_url":"https://api.github.com/repos/DataBiosphere/job-manager/releases{/id}","deployments_url":"https://api.github.com/repos/DataBiosphere/job-manager/deployments","created_at":"2017-08-30T18:51:22Z","updated_at":"2018-01-10T20:25:04Z","pushed_at":"2018-02-16T17:18:28Z","git_url":"git://github.com/DataBiosphere/job-manager.git","ssh_url":"git@github.com:DataBiosphere/job-manager.git","clone_url":"https://github.com/DataBiosphere/job-manager.git","svn_url":"https://github.com/DataBiosphere/job-manager","homepage":"","size":703,"stargazers_count":3,"watchers_count":3,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":7,"license":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause"},"forks":0,"open_issues":7,"watchers":3,"default_branch":"master"}},"base":{"label":"DataBiosphere:bc/capabilities-job-models","ref":"bc/capabilities-job-models","sha":"825f6025e812a2f1ff8f8a586f0a872c8ca32c5a","user":{"login":"DataBiosphere","id":32805087,"avatar_url":"https://avatars0.githubusercontent.com/u/32805087?v=4","gravatar_id":"","url":"https://api.github.com/users/DataBiosphere","html_url":"https://github.com/DataBiosphere","followers_url":"https://api.github.com/users/DataBiosphere/followers","following_url":"https://api.github.com/users/DataBiosphere/following{/other_user}","gists_url":"https://api.github.com/users/DataBiosphere/gists{/gist_id}","starred_url":"https://api.github.com/users/DataBiosphere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DataBiosphere/subscriptions","organizations_url":"https://api.github.com/users/DataBiosphere/orgs","repos_url":"https://api.github.com/users/DataBiosphere/repos","events_url":"https://api.github.com/users/DataBiosphere/events{/privacy}","received_events_url":"https://api.github.com/users/DataBiosphere/received_events","type":"Organization","site_admin":false},"repo":{"id":101917710,"name":"job-manager","full_name":"DataBiosphere/job-manager","owner":{"login":"DataBiosphere","id":32805087,"avatar_url":"https://avatars0.githubusercontent.com/u/32805087?v=4","gravatar_id":"","url":"https://api.github.com/users/DataBiosphere","html_url":"https://github.com/DataBiosphere","followers_url":"https://api.github.com/users/DataBiosphere/followers","following_url":"https://api.github.com/users/DataBiosphere/following{/other_user}","gists_url":"https://api.github.com/users/DataBiosphere/gists{/gist_id}","starred_url":"https://api.github.com/users/DataBiosphere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DataBiosphere/subscriptions","organizations_url":"https://api.github.com/users/DataBiosphere/orgs","repos_url":"https://api.github.com/users/DataBiosphere/repos","events_url":"https://api.github.com/users/DataBiosphere/events{/privacy}","received_events_url":"https://api.github.com/users/DataBiosphere/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/DataBiosphere/job-manager","description":"Job Manager API and UI for interacting with asynchronous batch jobs and workflows.","fork":false,"url":"https://api.github.com/repos/DataBiosphere/job-manager","forks_url":"https://api.github.com/repos/DataBiosphere/job-manager/forks","keys_url":"https://api.github.com/repos/DataBiosphere/job-manager/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DataBiosphere/job-manager/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DataBiosphere/job-manager/teams","hooks_url":"https://api.github.com/repos/DataBiosphere/job-manager/hooks","issue_events_url":"https://api.github.com/repos/DataBiosphere/job-manager/issues/events{/number}","events_url":"https://api.github.com/repos/DataBiosphere/job-manager/events","assignees_url":"https://api.github.com/repos/DataBiosphere/job-manager/assignees{/user}","branches_url":"https://api.github.com/repos/DataBiosphere/job-manager/branches{/branch}","tags_url":"https://api.github.com/repos/DataBiosphere/job-manager/tags","blobs_url":"https://api.github.com/repos/DataBiosphere/job-manager/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DataBiosphere/job-manager/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DataBiosphere/job-manager/git/refs{/sha}","trees_url":"https://api.github.com/repos/DataBiosphere/job-manager/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DataBiosphere/job-manager/statuses/{sha}","languages_url":"https://api.github.com/repos/DataBiosphere/job-manager/languages","stargazers_url":"https://api.github.com/repos/DataBiosphere/job-manager/stargazers","contributors_url":"https://api.github.com/repos/DataBiosphere/job-manager/contributors","subscribers_url":"https://api.github.com/repos/DataBiosphere/job-manager/subscribers","subscription_url":"https://api.github.com/repos/DataBiosphere/job-manager/subscription","commits_url":"https://api.github.com/repos/DataBiosphere/job-manager/commits{/sha}","git_commits_url":"https://api.github.com/repos/DataBiosphere/job-manager/git/commits{/sha}","comments_url":"https://api.github.com/repos/DataBiosphere/job-manager/comments{/number}","issue_comment_url":"https://api.github.com/repos/DataBiosphere/job-manager/issues/comments{/number}","contents_url":"https://api.github.com/repos/DataBiosphere/job-manager/contents/{+path}","compare_url":"https://api.github.com/repos/DataBiosphere/job-manager/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DataBiosphere/job-manager/merges","archive_url":"https://api.github.com/repos/DataBiosphere/job-manager/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DataBiosphere/job-manager/downloads","issues_url":"https://api.github.com/repos/DataBiosphere/job-manager/issues{/number}","pulls_url":"https://api.github.com/repos/DataBiosphere/job-manager/pulls{/number}","milestones_url":"https://api.github.com/repos/DataBiosphere/job-manager/milestones{/number}","notifications_url":"https://api.github.com/repos/DataBiosphere/job-manager/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DataBiosphere/job-manager/labels{/name}","releases_url":"https://api.github.com/repos/DataBiosphere/job-manager/releases{/id}","deployments_url":"https://api.github.com/repos/DataBiosphere/job-manager/deployments","created_at":"2017-08-30T18:51:22Z","updated_at":"2018-01-10T20:25:04Z","pushed_at":"2018-02-16T17:18:28Z","git_url":"git://github.com/DataBiosphere/job-manager.git","ssh_url":"git@github.com:DataBiosphere/job-manager.git","clone_url":"https://github.com/DataBiosphere/job-manager.git","svn_url":"https://github.com/DataBiosphere/job-manager","homepage":"","size":703,"stargazers_count":3,"watchers_count":3,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":7,"license":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause"},"forks":0,"open_issues":7,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/DataBiosphere/job-manager/pulls/209"},"html":{"href":"https://github.com/DataBiosphere/job-manager/pull/209"},"issue":{"href":"https://api.github.com/repos/DataBiosphere/job-manager/issues/209"},"comments":{"href":"https://api.github.com/repos/DataBiosphere/job-manager/issues/209/comments"},"review_comments":{"href":"https://api.github.com/repos/DataBiosphere/job-manager/pulls/209/comments"},"review_comment":{"href":"https://api.github.com/repos/DataBiosphere/job-manager/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/DataBiosphere/job-manager/pulls/209/commits"},"statuses":{"href":"https://api.github.com/repos/DataBiosphere/job-manager/statuses/e80c237775b44b0fcbf72714400da432f793abe5"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"calbach"}}