{"action":"created","comment":{"url":"https://api.github.com/repos/sillsdev/appbuilder-portal/pulls/comments/220943212","pull_request_review_id":159470859,"id":220943212,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyMDk0MzIxMg==","diff_hunk":"@@ -1,37 +1,55 @@\n import * as React from 'react';\n-\n-import { translate, InjectedTranslateProps as i18nProps } from 'react-i18next';\n import { compose } from 'recompose';\n-import { ProjectAttributes } from '@data/models/project';\n-import { ResourceObject } from 'jsonapi-typescript';\n-import { PROJECTS_TYPE } from '@data';\n+import { withData as withOrbit } from 'react-orbitjs';\n+\n+import { ProjectResource, ApplicationTypeResource, attributesFor } from '@data';\n+import { withTranslations, i18nProps } from '@lib/i18n';\n+\n \n interface Params {\n-  project: ResourceObject<PROJECTS_TYPE, ProjectAttributes>;\n+  project: ProjectResource;\n+  applicationType: ApplicationTypeResource;\n }\n \n type IProps =\n   & Params\n   & i18nProps;\n \n+const mapRecordsToProps = (passedProps) => {\n+  const { project } = passedProps;\n+  const { type, id } = project;\n+\n+  return {\n+    applicationType: q => q.findRelatedRecord({ type, id }, 'type')","path":"source/SIL.AppBuilder.Portal.Frontend/src/ui/routes/project/details/index.tsx","position":29,"original_position":29,"commit_id":"19a50329068dd73407985f13caf006bda31b3382","original_commit_id":"19a50329068dd73407985f13caf006bda31b3382","user":{"login":"NullVoxPopuli","id":199018,"node_id":"MDQ6VXNlcjE5OTAxOA==","avatar_url":"https://avatars1.githubusercontent.com/u/199018?v=4","gravatar_id":"","url":"https://api.github.com/users/NullVoxPopuli","html_url":"https://github.com/NullVoxPopuli","followers_url":"https://api.github.com/users/NullVoxPopuli/followers","following_url":"https://api.github.com/users/NullVoxPopuli/following{/other_user}","gists_url":"https://api.github.com/users/NullVoxPopuli/gists{/gist_id}","starred_url":"https://api.github.com/users/NullVoxPopuli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NullVoxPopuli/subscriptions","organizations_url":"https://api.github.com/users/NullVoxPopuli/orgs","repos_url":"https://api.github.com/users/NullVoxPopuli/repos","events_url":"https://api.github.com/users/NullVoxPopuli/events{/privacy}","received_events_url":"https://api.github.com/users/NullVoxPopuli/received_events","type":"User","site_admin":false},"body":"I think we should just pass the project here instead of specifically the type/id","created_at":"2018-09-27T14:20:35Z","updated_at":"2018-09-27T14:20:35Z","html_url":"https://github.com/sillsdev/appbuilder-portal/pull/159#discussion_r220943212","pull_request_url":"https://api.github.com/repos/sillsdev/appbuilder-portal/pulls/159","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/sillsdev/appbuilder-portal/pulls/comments/220943212"},"html":{"href":"https://github.com/sillsdev/appbuilder-portal/pull/159#discussion_r220943212"},"pull_request":{"href":"https://api.github.com/repos/sillsdev/appbuilder-portal/pulls/159"}}},"pull_request":{"url":"https://api.github.com/repos/sillsdev/appbuilder-portal/pulls/159","id":218518013,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE4NTE4MDEz","html_url":"https://github.com/sillsdev/appbuilder-portal/pull/159","diff_url":"https://github.com/sillsdev/appbuilder-portal/pull/159.diff","patch_url":"https://github.com/sillsdev/appbuilder-portal/pull/159.patch","issue_url":"https://api.github.com/repos/sillsdev/appbuilder-portal/issues/159","number":159,"state":"open","locked":false,"title":"Application type fix in project view page","user":{"login":"giancorzo","id":501129,"node_id":"MDQ6VXNlcjUwMTEyOQ==","avatar_url":"https://avatars3.githubusercontent.com/u/501129?v=4","gravatar_id":"","url":"https://api.github.com/users/giancorzo","html_url":"https://github.com/giancorzo","followers_url":"https://api.github.com/users/giancorzo/followers","following_url":"https://api.github.com/users/giancorzo/following{/other_user}","gists_url":"https://api.github.com/users/giancorzo/gists{/gist_id}","starred_url":"https://api.github.com/users/giancorzo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/giancorzo/subscriptions","organizations_url":"https://api.github.com/users/giancorzo/orgs","repos_url":"https://api.github.com/users/giancorzo/repos","events_url":"https://api.github.com/users/giancorzo/events{/privacy}","received_events_url":"https://api.github.com/users/giancorzo/received_events","type":"User","site_admin":false},"body":"https://developertown.visualstudio.com/SIL%20International%20Scriptoria/_workitems/edit/29084\r\n\r\n- [x] Completing the feature\r\n- [x] Add tests\r\n\r\n![project-view](https://user-images.githubusercontent.com/501129/46122828-8bf93400-c1e0-11e8-88f9-23f362a9d222.png)\r\n","created_at":"2018-09-27T04:04:44Z","updated_at":"2018-09-27T14:20:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"18a28cea1679f4d92cfb7cbeab9e4b6c644e7192","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/sillsdev/appbuilder-portal/pulls/159/commits","review_comments_url":"https://api.github.com/repos/sillsdev/appbuilder-portal/pulls/159/comments","review_comment_url":"https://api.github.com/repos/sillsdev/appbuilder-portal/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sillsdev/appbuilder-portal/issues/159/comments","statuses_url":"https://api.github.com/repos/sillsdev/appbuilder-portal/statuses/19a50329068dd73407985f13caf006bda31b3382","head":{"label":"sillsdev:feature/application-type","ref":"feature/application-type","sha":"19a50329068dd73407985f13caf006bda31b3382","user":{"login":"sillsdev","id":1095739,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwOTU3Mzk=","avatar_url":"https://avatars1.githubusercontent.com/u/1095739?v=4","gravatar_id":"","url":"https://api.github.com/users/sillsdev","html_url":"https://github.com/sillsdev","followers_url":"https://api.github.com/users/sillsdev/followers","following_url":"https://api.github.com/users/sillsdev/following{/other_user}","gists_url":"https://api.github.com/users/sillsdev/gists{/gist_id}","starred_url":"https://api.github.com/users/sillsdev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sillsdev/subscriptions","organizations_url":"https://api.github.com/users/sillsdev/orgs","repos_url":"https://api.github.com/users/sillsdev/repos","events_url":"https://api.github.com/users/sillsdev/events{/privacy}","received_events_url":"https://api.github.com/users/sillsdev/received_events","type":"Organization","site_admin":false},"repo":{"id":137372479,"node_id":"MDEwOlJlcG9zaXRvcnkxMzczNzI0Nzk=","name":"appbuilder-portal","full_name":"sillsdev/appbuilder-portal","private":false,"owner":{"login":"sillsdev","id":1095739,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwOTU3Mzk=","avatar_url":"https://avatars1.githubusercontent.com/u/1095739?v=4","gravatar_id":"","url":"https://api.github.com/users/sillsdev","html_url":"https://github.com/sillsdev","followers_url":"https://api.github.com/users/sillsdev/followers","following_url":"https://api.github.com/users/sillsdev/following{/other_user}","gists_url":"https://api.github.com/users/sillsdev/gists{/gist_id}","starred_url":"https://api.github.com/users/sillsdev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sillsdev/subscriptions","organizations_url":"https://api.github.com/users/sillsdev/orgs","repos_url":"https://api.github.com/users/sillsdev/repos","events_url":"https://api.github.com/users/sillsdev/events{/privacy}","received_events_url":"https://api.github.com/users/sillsdev/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/sillsdev/appbuilder-portal","description":"Portal for Scriptoria -- App Publishing Service","fork":false,"url":"https://api.github.com/repos/sillsdev/appbuilder-portal","forks_url":"https://api.github.com/repos/sillsdev/appbuilder-portal/forks","keys_url":"https://api.github.com/repos/sillsdev/appbuilder-portal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sillsdev/appbuilder-portal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sillsdev/appbuilder-portal/teams","hooks_url":"https://api.github.com/repos/sillsdev/appbuilder-portal/hooks","issue_events_url":"https://api.github.com/repos/sillsdev/appbuilder-portal/issues/events{/number}","events_url":"https://api.github.com/repos/sillsdev/appbuilder-portal/events","assignees_url":"https://api.github.com/repos/sillsdev/appbuilder-portal/assignees{/user}","branches_url":"https://api.github.com/repos/sillsdev/appbuilder-portal/branches{/branch}","tags_url":"https://api.github.com/repos/sillsdev/appbuilder-portal/tags","blobs_url":"https://api.github.com/repos/sillsdev/appbuilder-portal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sillsdev/appbuilder-portal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sillsdev/appbuilder-portal/git/refs{/sha}","trees_url":"https://api.github.com/repos/sillsdev/appbuilder-portal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sillsdev/appbuilder-portal/statuses/{sha}","languages_url":"https://api.github.com/repos/sillsdev/appbuilder-portal/languages","stargazers_url":"https://api.github.com/repos/sillsdev/appbuilder-portal/stargazers","contributors_url":"https://api.github.com/repos/sillsdev/appbuilder-portal/contributors","subscribers_url":"https://api.github.com/repos/sillsdev/appbuilder-portal/subscribers","subscription_url":"https://api.github.com/repos/sillsdev/appbuilder-portal/subscription","commits_url":"https://api.github.com/repos/sillsdev/appbuilder-portal/commits{/sha}","git_commits_url":"https://api.github.com/repos/sillsdev/appbuilder-portal/git/commits{/sha}","comments_url":"https://api.github.com/repos/sillsdev/appbuilder-portal/comments{/number}","issue_comment_url":"https://api.github.com/repos/sillsdev/appbuilder-portal/issues/comments{/number}","contents_url":"https://api.github.com/repos/sillsdev/appbuilder-portal/contents/{+path}","compare_url":"https://api.github.com/repos/sillsdev/appbuilder-portal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sillsdev/appbuilder-portal/merges","archive_url":"https://api.github.com/repos/sillsdev/appbuilder-portal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sillsdev/appbuilder-portal/downloads","issues_url":"https://api.github.com/repos/sillsdev/appbuilder-portal/issues{/number}","pulls_url":"https://api.github.com/repos/sillsdev/appbuilder-portal/pulls{/number}","milestones_url":"https://api.github.com/repos/sillsdev/appbuilder-portal/milestones{/number}","notifications_url":"https://api.github.com/repos/sillsdev/appbuilder-portal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sillsdev/appbuilder-portal/labels{/name}","releases_url":"https://api.github.com/repos/sillsdev/appbuilder-portal/releases{/id}","deployments_url":"https://api.github.com/repos/sillsdev/appbuilder-portal/deployments","created_at":"2018-06-14T14:55:18Z","updated_at":"2018-09-27T13:24:45Z","pushed_at":"2018-09-27T14:14:11Z","git_url":"git://github.com/sillsdev/appbuilder-portal.git","ssh_url":"git@github.com:sillsdev/appbuilder-portal.git","clone_url":"https://github.com/sillsdev/appbuilder-portal.git","svn_url":"https://github.com/sillsdev/appbuilder-portal","homepage":"","size":5085,"stargazers_count":9,"watchers_count":9,"language":"C#","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":5,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":1,"open_issues":5,"watchers":9,"default_branch":"master"}},"base":{"label":"sillsdev:master","ref":"master","sha":"a443d7b3c99c24e9a60733f38be0ff60d6000b1d","user":{"login":"sillsdev","id":1095739,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwOTU3Mzk=","avatar_url":"https://avatars1.githubusercontent.com/u/1095739?v=4","gravatar_id":"","url":"https://api.github.com/users/sillsdev","html_url":"https://github.com/sillsdev","followers_url":"https://api.github.com/users/sillsdev/followers","following_url":"https://api.github.com/users/sillsdev/following{/other_user}","gists_url":"https://api.github.com/users/sillsdev/gists{/gist_id}","starred_url":"https://api.github.com/users/sillsdev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sillsdev/subscriptions","organizations_url":"https://api.github.com/users/sillsdev/orgs","repos_url":"https://api.github.com/users/sillsdev/repos","events_url":"https://api.github.com/users/sillsdev/events{/privacy}","received_events_url":"https://api.github.com/users/sillsdev/received_events","type":"Organization","site_admin":false},"repo":{"id":137372479,"node_id":"MDEwOlJlcG9zaXRvcnkxMzczNzI0Nzk=","name":"appbuilder-portal","full_name":"sillsdev/appbuilder-portal","private":false,"owner":{"login":"sillsdev","id":1095739,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwOTU3Mzk=","avatar_url":"https://avatars1.githubusercontent.com/u/1095739?v=4","gravatar_id":"","url":"https://api.github.com/users/sillsdev","html_url":"https://github.com/sillsdev","followers_url":"https://api.github.com/users/sillsdev/followers","following_url":"https://api.github.com/users/sillsdev/following{/other_user}","gists_url":"https://api.github.com/users/sillsdev/gists{/gist_id}","starred_url":"https://api.github.com/users/sillsdev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sillsdev/subscriptions","organizations_url":"https://api.github.com/users/sillsdev/orgs","repos_url":"https://api.github.com/users/sillsdev/repos","events_url":"https://api.github.com/users/sillsdev/events{/privacy}","received_events_url":"https://api.github.com/users/sillsdev/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/sillsdev/appbuilder-portal","description":"Portal for Scriptoria -- App Publishing Service","fork":false,"url":"https://api.github.com/repos/sillsdev/appbuilder-portal","forks_url":"https://api.github.com/repos/sillsdev/appbuilder-portal/forks","keys_url":"https://api.github.com/repos/sillsdev/appbuilder-portal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sillsdev/appbuilder-portal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sillsdev/appbuilder-portal/teams","hooks_url":"https://api.github.com/repos/sillsdev/appbuilder-portal/hooks","issue_events_url":"https://api.github.com/repos/sillsdev/appbuilder-portal/issues/events{/number}","events_url":"https://api.github.com/repos/sillsdev/appbuilder-portal/events","assignees_url":"https://api.github.com/repos/sillsdev/appbuilder-portal/assignees{/user}","branches_url":"https://api.github.com/repos/sillsdev/appbuilder-portal/branches{/branch}","tags_url":"https://api.github.com/repos/sillsdev/appbuilder-portal/tags","blobs_url":"https://api.github.com/repos/sillsdev/appbuilder-portal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sillsdev/appbuilder-portal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sillsdev/appbuilder-portal/git/refs{/sha}","trees_url":"https://api.github.com/repos/sillsdev/appbuilder-portal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sillsdev/appbuilder-portal/statuses/{sha}","languages_url":"https://api.github.com/repos/sillsdev/appbuilder-portal/languages","stargazers_url":"https://api.github.com/repos/sillsdev/appbuilder-portal/stargazers","contributors_url":"https://api.github.com/repos/sillsdev/appbuilder-portal/contributors","subscribers_url":"https://api.github.com/repos/sillsdev/appbuilder-portal/subscribers","subscription_url":"https://api.github.com/repos/sillsdev/appbuilder-portal/subscription","commits_url":"https://api.github.com/repos/sillsdev/appbuilder-portal/commits{/sha}","git_commits_url":"https://api.github.com/repos/sillsdev/appbuilder-portal/git/commits{/sha}","comments_url":"https://api.github.com/repos/sillsdev/appbuilder-portal/comments{/number}","issue_comment_url":"https://api.github.com/repos/sillsdev/appbuilder-portal/issues/comments{/number}","contents_url":"https://api.github.com/repos/sillsdev/appbuilder-portal/contents/{+path}","compare_url":"https://api.github.com/repos/sillsdev/appbuilder-portal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sillsdev/appbuilder-portal/merges","archive_url":"https://api.github.com/repos/sillsdev/appbuilder-portal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sillsdev/appbuilder-portal/downloads","issues_url":"https://api.github.com/repos/sillsdev/appbuilder-portal/issues{/number}","pulls_url":"https://api.github.com/repos/sillsdev/appbuilder-portal/pulls{/number}","milestones_url":"https://api.github.com/repos/sillsdev/appbuilder-portal/milestones{/number}","notifications_url":"https://api.github.com/repos/sillsdev/appbuilder-portal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sillsdev/appbuilder-portal/labels{/name}","releases_url":"https://api.github.com/repos/sillsdev/appbuilder-portal/releases{/id}","deployments_url":"https://api.github.com/repos/sillsdev/appbuilder-portal/deployments","created_at":"2018-06-14T14:55:18Z","updated_at":"2018-09-27T13:24:45Z","pushed_at":"2018-09-27T14:14:11Z","git_url":"git://github.com/sillsdev/appbuilder-portal.git","ssh_url":"git@github.com:sillsdev/appbuilder-portal.git","clone_url":"https://github.com/sillsdev/appbuilder-portal.git","svn_url":"https://github.com/sillsdev/appbuilder-portal","homepage":"","size":5085,"stargazers_count":9,"watchers_count":9,"language":"C#","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":5,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":1,"open_issues":5,"watchers":9,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sillsdev/appbuilder-portal/pulls/159"},"html":{"href":"https://github.com/sillsdev/appbuilder-portal/pull/159"},"issue":{"href":"https://api.github.com/repos/sillsdev/appbuilder-portal/issues/159"},"comments":{"href":"https://api.github.com/repos/sillsdev/appbuilder-portal/issues/159/comments"},"review_comments":{"href":"https://api.github.com/repos/sillsdev/appbuilder-portal/pulls/159/comments"},"review_comment":{"href":"https://api.github.com/repos/sillsdev/appbuilder-portal/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sillsdev/appbuilder-portal/pulls/159/commits"},"statuses":{"href":"https://api.github.com/repos/sillsdev/appbuilder-portal/statuses/19a50329068dd73407985f13caf006bda31b3382"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"NullVoxPopuli"}}