{"action":"created","comment":{"url":"https://api.github.com/repos/code-corps/code-corps-ember/pulls/comments/101965666","pull_request_review_id":22706577,"id":101965666,"diff_hunk":"@@ -1,51 +1,108 @@\n import EmberCan from 'ember-can';\n import Ember from 'ember';\n+import createTaskUserOptions from 'code-corps-ember/utils/create-task-user-options';\n \n const {\n   Component,\n   computed,\n   computed: { alias, mapBy },\n   get,\n-  inject: { service }\n+  getProperties,\n+  inject: { service },\n+  isEmpty\n } = Ember;\n \n export default Component.extend({\n   attributeBindings: ['data-can-reposition', 'data-model-id', 'data-model-type'],\n   classNames: ['task-card'],\n-  classNameBindings: ['canReposition:task-card--can-reposition', 'isLoading:task-card--is-loading', 'taskTypeClass'],\n+  classNameBindings: ['canReposition:task-card--can-reposition', 'isLoading:task-card--is-loading'],\n   tagName: 'div',\n \n+  currentUser: service(),\n   session: service(),\n+  store: service(),\n+  taskAssignment: service(),\n \n-  trueValue: true,\n+  bound: false,\n+  shouldShowUsers: false,\n \n   ability: EmberCan.computed.ability('task'),\n   canAssign: alias('ability.canAssign'),\n   canEdit: alias('ability.canEdit'),\n   canReposition: alias('ability.canReposition'),\n \n+  currentUserId: alias('currentUser.user.id'),\n+\n   'data-can-reposition': computed('canReposition', function() {\n     let canReposition = get(this, 'canReposition');\n     return canReposition ? 'true' : 'false';\n   }),\n   'data-model-id': alias('task.id'),\n   'data-model-type': 'task',\n \n-  assignedUser: alias('task.assignedUser'),\n-\n   isLoading: alias('task.isLoading'),\n \n-  taskType: alias('task.taskType'),\n-  taskTypeClass: computed('taskType', function() {\n-    return `task-card--${get(this, 'taskType')}`;\n+  selectedOption: computed('taskUser', 'users', function() {\n+    let user = get(this, 'taskUser');\n+    let users = get(this, 'users');\n+    if (isEmpty(user) || isEmpty(users)) {\n+      return;\n+    }\n+    return users.find((item) => {\n+      return get(user, 'id') === get(item, 'id');\n+    });\n   }),\n+\n   taskSkills: mapBy('task.taskSkills', 'skill'),\n+  taskUserId: alias('taskUser.id'),\n+  users: alias('members'),\n+\n+  userOptions: computed('currentUser.user', 'taskUserId', 'users', function() {\n+    let { currentUserId, taskUserId, users } = getProperties(this, 'currentUserId', 'taskUserId', 'users');","path":"app/components/task-card.js","position":69,"original_position":69,"commit_id":"5be7f2e5ec5978d5ef192b890239dfa0cd24f730","original_commit_id":"5be7f2e5ec5978d5ef192b890239dfa0cd24f730","user":{"login":"begedin","id":1925540,"avatar_url":"https://avatars.githubusercontent.com/u/1925540?v=3","gravatar_id":"","url":"https://api.github.com/users/begedin","html_url":"https://github.com/begedin","followers_url":"https://api.github.com/users/begedin/followers","following_url":"https://api.github.com/users/begedin/following{/other_user}","gists_url":"https://api.github.com/users/begedin/gists{/gist_id}","starred_url":"https://api.github.com/users/begedin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/begedin/subscriptions","organizations_url":"https://api.github.com/users/begedin/orgs","repos_url":"https://api.github.com/users/begedin/repos","events_url":"https://api.github.com/users/begedin/events{/privacy}","received_events_url":"https://api.github.com/users/begedin/received_events","type":"User","site_admin":false},"body":"Any specific reason why the computed depends on `currentUser.user`. but then uses `currentUserId`? Does it not work if it depends on `currentUserId`?","created_at":"2017-02-20T08:27:54Z","updated_at":"2017-02-20T08:44:58Z","html_url":"https://github.com/code-corps/code-corps-ember/pull/1066#discussion_r101965666","pull_request_url":"https://api.github.com/repos/code-corps/code-corps-ember/pulls/1066","_links":{"self":{"href":"https://api.github.com/repos/code-corps/code-corps-ember/pulls/comments/101965666"},"html":{"href":"https://github.com/code-corps/code-corps-ember/pull/1066#discussion_r101965666"},"pull_request":{"href":"https://api.github.com/repos/code-corps/code-corps-ember/pulls/1066"}}},"pull_request":{"url":"https://api.github.com/repos/code-corps/code-corps-ember/pulls/1066","id":106840207,"html_url":"https://github.com/code-corps/code-corps-ember/pull/1066","diff_url":"https://github.com/code-corps/code-corps-ember/pull/1066.diff","patch_url":"https://github.com/code-corps/code-corps-ember/pull/1066.patch","issue_url":"https://api.github.com/repos/code-corps/code-corps-ember/issues/1066","number":1066,"state":"open","locked":false,"title":"Remove task icons and types and fix user dropdown","user":{"login":"JoshSmith","id":321667,"avatar_url":"https://avatars.githubusercontent.com/u/321667?v=3","gravatar_id":"","url":"https://api.github.com/users/JoshSmith","html_url":"https://github.com/JoshSmith","followers_url":"https://api.github.com/users/JoshSmith/followers","following_url":"https://api.github.com/users/JoshSmith/following{/other_user}","gists_url":"https://api.github.com/users/JoshSmith/gists{/gist_id}","starred_url":"https://api.github.com/users/JoshSmith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JoshSmith/subscriptions","organizations_url":"https://api.github.com/users/JoshSmith/orgs","repos_url":"https://api.github.com/users/JoshSmith/repos","events_url":"https://api.github.com/users/JoshSmith/events{/privacy}","received_events_url":"https://api.github.com/users/JoshSmith/received_events","type":"User","site_admin":false},"body":"# What's in this PR?\r\n\r\nRemoves task types and icons.\r\n\r\nAlso does some fixes for the task user select dropdown.","created_at":"2017-02-18T01:10:43Z","updated_at":"2017-02-20T08:44:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"29bb67a4edc3dd056ad8f3d6777439ee60fee8ee","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/code-corps/code-corps-ember/pulls/1066/commits","review_comments_url":"https://api.github.com/repos/code-corps/code-corps-ember/pulls/1066/comments","review_comment_url":"https://api.github.com/repos/code-corps/code-corps-ember/pulls/comments{/number}","comments_url":"https://api.github.com/repos/code-corps/code-corps-ember/issues/1066/comments","statuses_url":"https://api.github.com/repos/code-corps/code-corps-ember/statuses/5be7f2e5ec5978d5ef192b890239dfa0cd24f730","head":{"label":"code-corps:remove-task-icons-and-types","ref":"remove-task-icons-and-types","sha":"5be7f2e5ec5978d5ef192b890239dfa0cd24f730","user":{"login":"code-corps","id":12991115,"avatar_url":"https://avatars.githubusercontent.com/u/12991115?v=3","gravatar_id":"","url":"https://api.github.com/users/code-corps","html_url":"https://github.com/code-corps","followers_url":"https://api.github.com/users/code-corps/followers","following_url":"https://api.github.com/users/code-corps/following{/other_user}","gists_url":"https://api.github.com/users/code-corps/gists{/gist_id}","starred_url":"https://api.github.com/users/code-corps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/code-corps/subscriptions","organizations_url":"https://api.github.com/users/code-corps/orgs","repos_url":"https://api.github.com/users/code-corps/repos","events_url":"https://api.github.com/users/code-corps/events{/privacy}","received_events_url":"https://api.github.com/users/code-corps/received_events","type":"Organization","site_admin":false},"repo":{"id":37887675,"name":"code-corps-ember","full_name":"code-corps/code-corps-ember","owner":{"login":"code-corps","id":12991115,"avatar_url":"https://avatars.githubusercontent.com/u/12991115?v=3","gravatar_id":"","url":"https://api.github.com/users/code-corps","html_url":"https://github.com/code-corps","followers_url":"https://api.github.com/users/code-corps/followers","following_url":"https://api.github.com/users/code-corps/following{/other_user}","gists_url":"https://api.github.com/users/code-corps/gists{/gist_id}","starred_url":"https://api.github.com/users/code-corps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/code-corps/subscriptions","organizations_url":"https://api.github.com/users/code-corps/orgs","repos_url":"https://api.github.com/users/code-corps/repos","events_url":"https://api.github.com/users/code-corps/events{/privacy}","received_events_url":"https://api.github.com/users/code-corps/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/code-corps/code-corps-ember","description":"Ember web application for Code Corps.","fork":false,"url":"https://api.github.com/repos/code-corps/code-corps-ember","forks_url":"https://api.github.com/repos/code-corps/code-corps-ember/forks","keys_url":"https://api.github.com/repos/code-corps/code-corps-ember/keys{/key_id}","collaborators_url":"https://api.github.com/repos/code-corps/code-corps-ember/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/code-corps/code-corps-ember/teams","hooks_url":"https://api.github.com/repos/code-corps/code-corps-ember/hooks","issue_events_url":"https://api.github.com/repos/code-corps/code-corps-ember/issues/events{/number}","events_url":"https://api.github.com/repos/code-corps/code-corps-ember/events","assignees_url":"https://api.github.com/repos/code-corps/code-corps-ember/assignees{/user}","branches_url":"https://api.github.com/repos/code-corps/code-corps-ember/branches{/branch}","tags_url":"https://api.github.com/repos/code-corps/code-corps-ember/tags","blobs_url":"https://api.github.com/repos/code-corps/code-corps-ember/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/code-corps/code-corps-ember/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/code-corps/code-corps-ember/git/refs{/sha}","trees_url":"https://api.github.com/repos/code-corps/code-corps-ember/git/trees{/sha}","statuses_url":"https://api.github.com/repos/code-corps/code-corps-ember/statuses/{sha}","languages_url":"https://api.github.com/repos/code-corps/code-corps-ember/languages","stargazers_url":"https://api.github.com/repos/code-corps/code-corps-ember/stargazers","contributors_url":"https://api.github.com/repos/code-corps/code-corps-ember/contributors","subscribers_url":"https://api.github.com/repos/code-corps/code-corps-ember/subscribers","subscription_url":"https://api.github.com/repos/code-corps/code-corps-ember/subscription","commits_url":"https://api.github.com/repos/code-corps/code-corps-ember/commits{/sha}","git_commits_url":"https://api.github.com/repos/code-corps/code-corps-ember/git/commits{/sha}","comments_url":"https://api.github.com/repos/code-corps/code-corps-ember/comments{/number}","issue_comment_url":"https://api.github.com/repos/code-corps/code-corps-ember/issues/comments{/number}","contents_url":"https://api.github.com/repos/code-corps/code-corps-ember/contents/{+path}","compare_url":"https://api.github.com/repos/code-corps/code-corps-ember/compare/{base}...{head}","merges_url":"https://api.github.com/repos/code-corps/code-corps-ember/merges","archive_url":"https://api.github.com/repos/code-corps/code-corps-ember/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/code-corps/code-corps-ember/downloads","issues_url":"https://api.github.com/repos/code-corps/code-corps-ember/issues{/number}","pulls_url":"https://api.github.com/repos/code-corps/code-corps-ember/pulls{/number}","milestones_url":"https://api.github.com/repos/code-corps/code-corps-ember/milestones{/number}","notifications_url":"https://api.github.com/repos/code-corps/code-corps-ember/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/code-corps/code-corps-ember/labels{/name}","releases_url":"https://api.github.com/repos/code-corps/code-corps-ember/releases{/id}","deployments_url":"https://api.github.com/repos/code-corps/code-corps-ember/deployments","created_at":"2015-06-23T00:18:45Z","updated_at":"2017-02-15T13:11:12Z","pushed_at":"2017-02-20T06:28:15Z","git_url":"git://github.com/code-corps/code-corps-ember.git","ssh_url":"git@github.com:code-corps/code-corps-ember.git","clone_url":"https://github.com/code-corps/code-corps-ember.git","svn_url":"https://github.com/code-corps/code-corps-ember","homepage":"https://www.codecorps.org","size":3723,"stargazers_count":80,"watchers_count":80,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":60,"mirror_url":null,"open_issues_count":157,"forks":60,"open_issues":157,"watchers":80,"default_branch":"develop"}},"base":{"label":"code-corps:develop","ref":"develop","sha":"187f29fce8203e9e1931889910233e93dd4def77","user":{"login":"code-corps","id":12991115,"avatar_url":"https://avatars.githubusercontent.com/u/12991115?v=3","gravatar_id":"","url":"https://api.github.com/users/code-corps","html_url":"https://github.com/code-corps","followers_url":"https://api.github.com/users/code-corps/followers","following_url":"https://api.github.com/users/code-corps/following{/other_user}","gists_url":"https://api.github.com/users/code-corps/gists{/gist_id}","starred_url":"https://api.github.com/users/code-corps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/code-corps/subscriptions","organizations_url":"https://api.github.com/users/code-corps/orgs","repos_url":"https://api.github.com/users/code-corps/repos","events_url":"https://api.github.com/users/code-corps/events{/privacy}","received_events_url":"https://api.github.com/users/code-corps/received_events","type":"Organization","site_admin":false},"repo":{"id":37887675,"name":"code-corps-ember","full_name":"code-corps/code-corps-ember","owner":{"login":"code-corps","id":12991115,"avatar_url":"https://avatars.githubusercontent.com/u/12991115?v=3","gravatar_id":"","url":"https://api.github.com/users/code-corps","html_url":"https://github.com/code-corps","followers_url":"https://api.github.com/users/code-corps/followers","following_url":"https://api.github.com/users/code-corps/following{/other_user}","gists_url":"https://api.github.com/users/code-corps/gists{/gist_id}","starred_url":"https://api.github.com/users/code-corps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/code-corps/subscriptions","organizations_url":"https://api.github.com/users/code-corps/orgs","repos_url":"https://api.github.com/users/code-corps/repos","events_url":"https://api.github.com/users/code-corps/events{/privacy}","received_events_url":"https://api.github.com/users/code-corps/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/code-corps/code-corps-ember","description":"Ember web application for Code Corps.","fork":false,"url":"https://api.github.com/repos/code-corps/code-corps-ember","forks_url":"https://api.github.com/repos/code-corps/code-corps-ember/forks","keys_url":"https://api.github.com/repos/code-corps/code-corps-ember/keys{/key_id}","collaborators_url":"https://api.github.com/repos/code-corps/code-corps-ember/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/code-corps/code-corps-ember/teams","hooks_url":"https://api.github.com/repos/code-corps/code-corps-ember/hooks","issue_events_url":"https://api.github.com/repos/code-corps/code-corps-ember/issues/events{/number}","events_url":"https://api.github.com/repos/code-corps/code-corps-ember/events","assignees_url":"https://api.github.com/repos/code-corps/code-corps-ember/assignees{/user}","branches_url":"https://api.github.com/repos/code-corps/code-corps-ember/branches{/branch}","tags_url":"https://api.github.com/repos/code-corps/code-corps-ember/tags","blobs_url":"https://api.github.com/repos/code-corps/code-corps-ember/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/code-corps/code-corps-ember/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/code-corps/code-corps-ember/git/refs{/sha}","trees_url":"https://api.github.com/repos/code-corps/code-corps-ember/git/trees{/sha}","statuses_url":"https://api.github.com/repos/code-corps/code-corps-ember/statuses/{sha}","languages_url":"https://api.github.com/repos/code-corps/code-corps-ember/languages","stargazers_url":"https://api.github.com/repos/code-corps/code-corps-ember/stargazers","contributors_url":"https://api.github.com/repos/code-corps/code-corps-ember/contributors","subscribers_url":"https://api.github.com/repos/code-corps/code-corps-ember/subscribers","subscription_url":"https://api.github.com/repos/code-corps/code-corps-ember/subscription","commits_url":"https://api.github.com/repos/code-corps/code-corps-ember/commits{/sha}","git_commits_url":"https://api.github.com/repos/code-corps/code-corps-ember/git/commits{/sha}","comments_url":"https://api.github.com/repos/code-corps/code-corps-ember/comments{/number}","issue_comment_url":"https://api.github.com/repos/code-corps/code-corps-ember/issues/comments{/number}","contents_url":"https://api.github.com/repos/code-corps/code-corps-ember/contents/{+path}","compare_url":"https://api.github.com/repos/code-corps/code-corps-ember/compare/{base}...{head}","merges_url":"https://api.github.com/repos/code-corps/code-corps-ember/merges","archive_url":"https://api.github.com/repos/code-corps/code-corps-ember/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/code-corps/code-corps-ember/downloads","issues_url":"https://api.github.com/repos/code-corps/code-corps-ember/issues{/number}","pulls_url":"https://api.github.com/repos/code-corps/code-corps-ember/pulls{/number}","milestones_url":"https://api.github.com/repos/code-corps/code-corps-ember/milestones{/number}","notifications_url":"https://api.github.com/repos/code-corps/code-corps-ember/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/code-corps/code-corps-ember/labels{/name}","releases_url":"https://api.github.com/repos/code-corps/code-corps-ember/releases{/id}","deployments_url":"https://api.github.com/repos/code-corps/code-corps-ember/deployments","created_at":"2015-06-23T00:18:45Z","updated_at":"2017-02-15T13:11:12Z","pushed_at":"2017-02-20T06:28:15Z","git_url":"git://github.com/code-corps/code-corps-ember.git","ssh_url":"git@github.com:code-corps/code-corps-ember.git","clone_url":"https://github.com/code-corps/code-corps-ember.git","svn_url":"https://github.com/code-corps/code-corps-ember","homepage":"https://www.codecorps.org","size":3723,"stargazers_count":80,"watchers_count":80,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":60,"mirror_url":null,"open_issues_count":157,"forks":60,"open_issues":157,"watchers":80,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/code-corps/code-corps-ember/pulls/1066"},"html":{"href":"https://github.com/code-corps/code-corps-ember/pull/1066"},"issue":{"href":"https://api.github.com/repos/code-corps/code-corps-ember/issues/1066"},"comments":{"href":"https://api.github.com/repos/code-corps/code-corps-ember/issues/1066/comments"},"review_comments":{"href":"https://api.github.com/repos/code-corps/code-corps-ember/pulls/1066/comments"},"review_comment":{"href":"https://api.github.com/repos/code-corps/code-corps-ember/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/code-corps/code-corps-ember/pulls/1066/commits"},"statuses":{"href":"https://api.github.com/repos/code-corps/code-corps-ember/statuses/5be7f2e5ec5978d5ef192b890239dfa0cd24f730"}}}}
{"actor":{"display_login":"begedin"}}