{"action":"created","comment":{"url":"https://api.github.com/repos/all-of-us/workbench/pulls/comments/219936608","pull_request_review_id":158230165,"id":219936608,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxOTkzNjYwOA==","diff_hunk":"@@ -41,4 +54,40 @@ export const cohortActionList = [\n \n export const resourceActionList =  notebookActionList.concat(cohortActionList);\n \n+export function convertToResources(list: any[], component): RecentResource[] {\n+  const resourceList = [];\n+  if (component.resourceType === ResourceType.NOTEBOOK) {\n+    for (const file of list) {\n+      resourceList.push(this.convertToResource(file, component));\n+    }\n+    return resourceList;\n+  } else if (component.resourceType === ResourceType.COHORT) {\n+    for (const cohort of list) {\n+      resourceList.push(this.convertToResource(cohort, component));\n+    }\n+    return resourceList;\n+  }\n+}\n+\n+export function convertToResource(resource: any, component): RecentResource {","path":"ui/src/app/utils/resourceActions.ts","position":29,"original_position":36,"commit_id":"1c000262a7794e571ab5add5a249f0fbe25614d7","original_commit_id":"7bf32eeeb6bbfa7240072ce8f90fdad05c6c55c2","user":{"login":"UrsaStutsman","id":2631914,"node_id":"MDQ6VXNlcjI2MzE5MTQ=","avatar_url":"https://avatars0.githubusercontent.com/u/2631914?v=4","gravatar_id":"","url":"https://api.github.com/users/UrsaStutsman","html_url":"https://github.com/UrsaStutsman","followers_url":"https://api.github.com/users/UrsaStutsman/followers","following_url":"https://api.github.com/users/UrsaStutsman/following{/other_user}","gists_url":"https://api.github.com/users/UrsaStutsman/gists{/gist_id}","starred_url":"https://api.github.com/users/UrsaStutsman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UrsaStutsman/subscriptions","organizations_url":"https://api.github.com/users/UrsaStutsman/orgs","repos_url":"https://api.github.com/users/UrsaStutsman/repos","events_url":"https://api.github.com/users/UrsaStutsman/events{/privacy}","received_events_url":"https://api.github.com/users/UrsaStutsman/received_events","type":"User","site_admin":false},"body":"I tried this and it would not compile because when assigning resource to notebook or cohort it complained. I'll keep trying.","created_at":"2018-09-24T18:14:09Z","updated_at":"2018-09-24T18:14:09Z","html_url":"https://github.com/all-of-us/workbench/pull/1216#discussion_r219936608","pull_request_url":"https://api.github.com/repos/all-of-us/workbench/pulls/1216","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/all-of-us/workbench/pulls/comments/219936608"},"html":{"href":"https://github.com/all-of-us/workbench/pull/1216#discussion_r219936608"},"pull_request":{"href":"https://api.github.com/repos/all-of-us/workbench/pulls/1216"}},"in_reply_to_id":219931990},"pull_request":{"url":"https://api.github.com/repos/all-of-us/workbench/pulls/1216","id":216999848,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE2OTk5ODQ4","html_url":"https://github.com/all-of-us/workbench/pull/1216","diff_url":"https://github.com/all-of-us/workbench/pull/1216.diff","patch_url":"https://github.com/all-of-us/workbench/pull/1216.patch","issue_url":"https://api.github.com/repos/all-of-us/workbench/issues/1216","number":1216,"state":"open","locked":false,"title":"[RW-1299][Risk=no] Refactoring NotebookList and Cohort List to use ResourceCard","user":{"login":"UrsaStutsman","id":2631914,"node_id":"MDQ6VXNlcjI2MzE5MTQ=","avatar_url":"https://avatars0.githubusercontent.com/u/2631914?v=4","gravatar_id":"","url":"https://api.github.com/users/UrsaStutsman","html_url":"https://github.com/UrsaStutsman","followers_url":"https://api.github.com/users/UrsaStutsman/followers","following_url":"https://api.github.com/users/UrsaStutsman/following{/other_user}","gists_url":"https://api.github.com/users/UrsaStutsman/gists{/gist_id}","starred_url":"https://api.github.com/users/UrsaStutsman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UrsaStutsman/subscriptions","organizations_url":"https://api.github.com/users/UrsaStutsman/orgs","repos_url":"https://api.github.com/users/UrsaStutsman/repos","events_url":"https://api.github.com/users/UrsaStutsman/events{/privacy}","received_events_url":"https://api.github.com/users/UrsaStutsman/received_events","type":"User","site_admin":false},"body":"Ready for PR Review","created_at":"2018-09-20T14:46:09Z","updated_at":"2018-09-24T18:14:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8625d815edf256945f529d551ee4c79bdb351d06","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/all-of-us/workbench/pulls/1216/commits","review_comments_url":"https://api.github.com/repos/all-of-us/workbench/pulls/1216/comments","review_comment_url":"https://api.github.com/repos/all-of-us/workbench/pulls/comments{/number}","comments_url":"https://api.github.com/repos/all-of-us/workbench/issues/1216/comments","statuses_url":"https://api.github.com/repos/all-of-us/workbench/statuses/1c000262a7794e571ab5add5a249f0fbe25614d7","head":{"label":"all-of-us:us/rw-1299","ref":"us/rw-1299","sha":"1c000262a7794e571ab5add5a249f0fbe25614d7","user":{"login":"all-of-us","id":22846942,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyODQ2OTQy","avatar_url":"https://avatars0.githubusercontent.com/u/22846942?v=4","gravatar_id":"","url":"https://api.github.com/users/all-of-us","html_url":"https://github.com/all-of-us","followers_url":"https://api.github.com/users/all-of-us/followers","following_url":"https://api.github.com/users/all-of-us/following{/other_user}","gists_url":"https://api.github.com/users/all-of-us/gists{/gist_id}","starred_url":"https://api.github.com/users/all-of-us/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/all-of-us/subscriptions","organizations_url":"https://api.github.com/users/all-of-us/orgs","repos_url":"https://api.github.com/users/all-of-us/repos","events_url":"https://api.github.com/users/all-of-us/events{/privacy}","received_events_url":"https://api.github.com/users/all-of-us/received_events","type":"Organization","site_admin":false},"repo":{"id":95247186,"node_id":"MDEwOlJlcG9zaXRvcnk5NTI0NzE4Ng==","name":"workbench","full_name":"all-of-us/workbench","private":false,"owner":{"login":"all-of-us","id":22846942,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyODQ2OTQy","avatar_url":"https://avatars0.githubusercontent.com/u/22846942?v=4","gravatar_id":"","url":"https://api.github.com/users/all-of-us","html_url":"https://github.com/all-of-us","followers_url":"https://api.github.com/users/all-of-us/followers","following_url":"https://api.github.com/users/all-of-us/following{/other_user}","gists_url":"https://api.github.com/users/all-of-us/gists{/gist_id}","starred_url":"https://api.github.com/users/all-of-us/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/all-of-us/subscriptions","organizations_url":"https://api.github.com/users/all-of-us/orgs","repos_url":"https://api.github.com/users/all-of-us/repos","events_url":"https://api.github.com/users/all-of-us/events{/privacy}","received_events_url":"https://api.github.com/users/all-of-us/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/all-of-us/workbench","description":"All of Us Researcher Workbench","fork":false,"url":"https://api.github.com/repos/all-of-us/workbench","forks_url":"https://api.github.com/repos/all-of-us/workbench/forks","keys_url":"https://api.github.com/repos/all-of-us/workbench/keys{/key_id}","collaborators_url":"https://api.github.com/repos/all-of-us/workbench/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/all-of-us/workbench/teams","hooks_url":"https://api.github.com/repos/all-of-us/workbench/hooks","issue_events_url":"https://api.github.com/repos/all-of-us/workbench/issues/events{/number}","events_url":"https://api.github.com/repos/all-of-us/workbench/events","assignees_url":"https://api.github.com/repos/all-of-us/workbench/assignees{/user}","branches_url":"https://api.github.com/repos/all-of-us/workbench/branches{/branch}","tags_url":"https://api.github.com/repos/all-of-us/workbench/tags","blobs_url":"https://api.github.com/repos/all-of-us/workbench/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/all-of-us/workbench/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/all-of-us/workbench/git/refs{/sha}","trees_url":"https://api.github.com/repos/all-of-us/workbench/git/trees{/sha}","statuses_url":"https://api.github.com/repos/all-of-us/workbench/statuses/{sha}","languages_url":"https://api.github.com/repos/all-of-us/workbench/languages","stargazers_url":"https://api.github.com/repos/all-of-us/workbench/stargazers","contributors_url":"https://api.github.com/repos/all-of-us/workbench/contributors","subscribers_url":"https://api.github.com/repos/all-of-us/workbench/subscribers","subscription_url":"https://api.github.com/repos/all-of-us/workbench/subscription","commits_url":"https://api.github.com/repos/all-of-us/workbench/commits{/sha}","git_commits_url":"https://api.github.com/repos/all-of-us/workbench/git/commits{/sha}","comments_url":"https://api.github.com/repos/all-of-us/workbench/comments{/number}","issue_comment_url":"https://api.github.com/repos/all-of-us/workbench/issues/comments{/number}","contents_url":"https://api.github.com/repos/all-of-us/workbench/contents/{+path}","compare_url":"https://api.github.com/repos/all-of-us/workbench/compare/{base}...{head}","merges_url":"https://api.github.com/repos/all-of-us/workbench/merges","archive_url":"https://api.github.com/repos/all-of-us/workbench/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/all-of-us/workbench/downloads","issues_url":"https://api.github.com/repos/all-of-us/workbench/issues{/number}","pulls_url":"https://api.github.com/repos/all-of-us/workbench/pulls{/number}","milestones_url":"https://api.github.com/repos/all-of-us/workbench/milestones{/number}","notifications_url":"https://api.github.com/repos/all-of-us/workbench/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/all-of-us/workbench/labels{/name}","releases_url":"https://api.github.com/repos/all-of-us/workbench/releases{/id}","deployments_url":"https://api.github.com/repos/all-of-us/workbench/deployments","created_at":"2017-06-23T18:44:24Z","updated_at":"2018-09-24T17:29:11Z","pushed_at":"2018-09-24T18:09:29Z","git_url":"git://github.com/all-of-us/workbench.git","ssh_url":"git@github.com:all-of-us/workbench.git","clone_url":"https://github.com/all-of-us/workbench.git","svn_url":"https://github.com/all-of-us/workbench","homepage":"","size":200152,"stargazers_count":7,"watchers_count":7,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":5,"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","node_id":"MDc6TGljZW5zZTU="},"forks":3,"open_issues":5,"watchers":7,"default_branch":"master"}},"base":{"label":"all-of-us:master","ref":"master","sha":"39856e5c6740fdfedeaa1c8a01aa93a61b780892","user":{"login":"all-of-us","id":22846942,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyODQ2OTQy","avatar_url":"https://avatars0.githubusercontent.com/u/22846942?v=4","gravatar_id":"","url":"https://api.github.com/users/all-of-us","html_url":"https://github.com/all-of-us","followers_url":"https://api.github.com/users/all-of-us/followers","following_url":"https://api.github.com/users/all-of-us/following{/other_user}","gists_url":"https://api.github.com/users/all-of-us/gists{/gist_id}","starred_url":"https://api.github.com/users/all-of-us/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/all-of-us/subscriptions","organizations_url":"https://api.github.com/users/all-of-us/orgs","repos_url":"https://api.github.com/users/all-of-us/repos","events_url":"https://api.github.com/users/all-of-us/events{/privacy}","received_events_url":"https://api.github.com/users/all-of-us/received_events","type":"Organization","site_admin":false},"repo":{"id":95247186,"node_id":"MDEwOlJlcG9zaXRvcnk5NTI0NzE4Ng==","name":"workbench","full_name":"all-of-us/workbench","private":false,"owner":{"login":"all-of-us","id":22846942,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyODQ2OTQy","avatar_url":"https://avatars0.githubusercontent.com/u/22846942?v=4","gravatar_id":"","url":"https://api.github.com/users/all-of-us","html_url":"https://github.com/all-of-us","followers_url":"https://api.github.com/users/all-of-us/followers","following_url":"https://api.github.com/users/all-of-us/following{/other_user}","gists_url":"https://api.github.com/users/all-of-us/gists{/gist_id}","starred_url":"https://api.github.com/users/all-of-us/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/all-of-us/subscriptions","organizations_url":"https://api.github.com/users/all-of-us/orgs","repos_url":"https://api.github.com/users/all-of-us/repos","events_url":"https://api.github.com/users/all-of-us/events{/privacy}","received_events_url":"https://api.github.com/users/all-of-us/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/all-of-us/workbench","description":"All of Us Researcher Workbench","fork":false,"url":"https://api.github.com/repos/all-of-us/workbench","forks_url":"https://api.github.com/repos/all-of-us/workbench/forks","keys_url":"https://api.github.com/repos/all-of-us/workbench/keys{/key_id}","collaborators_url":"https://api.github.com/repos/all-of-us/workbench/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/all-of-us/workbench/teams","hooks_url":"https://api.github.com/repos/all-of-us/workbench/hooks","issue_events_url":"https://api.github.com/repos/all-of-us/workbench/issues/events{/number}","events_url":"https://api.github.com/repos/all-of-us/workbench/events","assignees_url":"https://api.github.com/repos/all-of-us/workbench/assignees{/user}","branches_url":"https://api.github.com/repos/all-of-us/workbench/branches{/branch}","tags_url":"https://api.github.com/repos/all-of-us/workbench/tags","blobs_url":"https://api.github.com/repos/all-of-us/workbench/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/all-of-us/workbench/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/all-of-us/workbench/git/refs{/sha}","trees_url":"https://api.github.com/repos/all-of-us/workbench/git/trees{/sha}","statuses_url":"https://api.github.com/repos/all-of-us/workbench/statuses/{sha}","languages_url":"https://api.github.com/repos/all-of-us/workbench/languages","stargazers_url":"https://api.github.com/repos/all-of-us/workbench/stargazers","contributors_url":"https://api.github.com/repos/all-of-us/workbench/contributors","subscribers_url":"https://api.github.com/repos/all-of-us/workbench/subscribers","subscription_url":"https://api.github.com/repos/all-of-us/workbench/subscription","commits_url":"https://api.github.com/repos/all-of-us/workbench/commits{/sha}","git_commits_url":"https://api.github.com/repos/all-of-us/workbench/git/commits{/sha}","comments_url":"https://api.github.com/repos/all-of-us/workbench/comments{/number}","issue_comment_url":"https://api.github.com/repos/all-of-us/workbench/issues/comments{/number}","contents_url":"https://api.github.com/repos/all-of-us/workbench/contents/{+path}","compare_url":"https://api.github.com/repos/all-of-us/workbench/compare/{base}...{head}","merges_url":"https://api.github.com/repos/all-of-us/workbench/merges","archive_url":"https://api.github.com/repos/all-of-us/workbench/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/all-of-us/workbench/downloads","issues_url":"https://api.github.com/repos/all-of-us/workbench/issues{/number}","pulls_url":"https://api.github.com/repos/all-of-us/workbench/pulls{/number}","milestones_url":"https://api.github.com/repos/all-of-us/workbench/milestones{/number}","notifications_url":"https://api.github.com/repos/all-of-us/workbench/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/all-of-us/workbench/labels{/name}","releases_url":"https://api.github.com/repos/all-of-us/workbench/releases{/id}","deployments_url":"https://api.github.com/repos/all-of-us/workbench/deployments","created_at":"2017-06-23T18:44:24Z","updated_at":"2018-09-24T17:29:11Z","pushed_at":"2018-09-24T18:09:29Z","git_url":"git://github.com/all-of-us/workbench.git","ssh_url":"git@github.com:all-of-us/workbench.git","clone_url":"https://github.com/all-of-us/workbench.git","svn_url":"https://github.com/all-of-us/workbench","homepage":"","size":200152,"stargazers_count":7,"watchers_count":7,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":5,"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","node_id":"MDc6TGljZW5zZTU="},"forks":3,"open_issues":5,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/all-of-us/workbench/pulls/1216"},"html":{"href":"https://github.com/all-of-us/workbench/pull/1216"},"issue":{"href":"https://api.github.com/repos/all-of-us/workbench/issues/1216"},"comments":{"href":"https://api.github.com/repos/all-of-us/workbench/issues/1216/comments"},"review_comments":{"href":"https://api.github.com/repos/all-of-us/workbench/pulls/1216/comments"},"review_comment":{"href":"https://api.github.com/repos/all-of-us/workbench/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/all-of-us/workbench/pulls/1216/commits"},"statuses":{"href":"https://api.github.com/repos/all-of-us/workbench/statuses/1c000262a7794e571ab5add5a249f0fbe25614d7"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"UrsaStutsman"}}