{"action":"created","comment":{"url":"https://api.github.com/repos/Duke-GCB/datadelivery-ui/pulls/comments/209355075","pull_request_review_id":145360619,"id":209355075,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwOTM1NTA3NQ==","diff_hunk":"@@ -0,0 +1,62 @@\n+import Ember from 'ember';\n+\n+const PROJECT_ADMIN_AUTH_ROLE = 'project_admin';\n+\n+export default Ember.Controller.extend({\n+  project: null,\n+  application: Ember.inject.controller(),\n+  currentDukeDsUser: Ember.computed.alias('application.currentDukeDsUser'),\n+  currentUserProjectPermissions: Ember.computed('project', 'currentDukeDsUser.id', function () {\n+    const projectId = this.get('project.id');\n+    const currentUserId = this.get('currentDukeDsUser.id');\n+    if (!projectId || !currentUserId) {\n+      return [];\n+    }\n+    return this.get('store').query('duke-ds-project-permission', {\n+      'project': projectId,\n+      'user': currentUserId,","path":"app/controllers/deliveries/new/select-project.js","position":17,"original_position":17,"commit_id":"ff42d3aaef97641b032cb4c4a595e66f74359e46","original_commit_id":"ff42d3aaef97641b032cb4c4a595e66f74359e46","user":{"login":"johnbradley","id":1024463,"node_id":"MDQ6VXNlcjEwMjQ0NjM=","avatar_url":"https://avatars1.githubusercontent.com/u/1024463?v=4","gravatar_id":"","url":"https://api.github.com/users/johnbradley","html_url":"https://github.com/johnbradley","followers_url":"https://api.github.com/users/johnbradley/followers","following_url":"https://api.github.com/users/johnbradley/following{/other_user}","gists_url":"https://api.github.com/users/johnbradley/gists{/gist_id}","starred_url":"https://api.github.com/users/johnbradley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnbradley/subscriptions","organizations_url":"https://api.github.com/users/johnbradley/orgs","repos_url":"https://api.github.com/users/johnbradley/repos","events_url":"https://api.github.com/users/johnbradley/events{/privacy}","received_events_url":"https://api.github.com/users/johnbradley/received_events","type":"User","site_admin":false},"body":"Yep. That's why I had to `delete query.project;` when building the query or it ended up being used twice.","created_at":"2018-08-10T18:54:02Z","updated_at":"2018-08-10T18:54:02Z","html_url":"https://github.com/Duke-GCB/datadelivery-ui/pull/21#discussion_r209355075","pull_request_url":"https://api.github.com/repos/Duke-GCB/datadelivery-ui/pulls/21","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/Duke-GCB/datadelivery-ui/pulls/comments/209355075"},"html":{"href":"https://github.com/Duke-GCB/datadelivery-ui/pull/21#discussion_r209355075"},"pull_request":{"href":"https://api.github.com/repos/Duke-GCB/datadelivery-ui/pulls/21"}},"in_reply_to_id":209336460},"pull_request":{"url":"https://api.github.com/repos/Duke-GCB/datadelivery-ui/pulls/21","id":204171073,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA0MTcxMDcz","html_url":"https://github.com/Duke-GCB/datadelivery-ui/pull/21","diff_url":"https://github.com/Duke-GCB/datadelivery-ui/pull/21.diff","patch_url":"https://github.com/Duke-GCB/datadelivery-ui/pull/21.patch","issue_url":"https://api.github.com/repos/Duke-GCB/datadelivery-ui/issues/21","number":21,"state":"open","locked":false,"title":"Allow users to create deliveries","user":{"login":"johnbradley","id":1024463,"node_id":"MDQ6VXNlcjEwMjQ0NjM=","avatar_url":"https://avatars1.githubusercontent.com/u/1024463?v=4","gravatar_id":"","url":"https://api.github.com/users/johnbradley","html_url":"https://github.com/johnbradley","followers_url":"https://api.github.com/users/johnbradley/followers","following_url":"https://api.github.com/users/johnbradley/following{/other_user}","gists_url":"https://api.github.com/users/johnbradley/gists{/gist_id}","starred_url":"https://api.github.com/users/johnbradley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnbradley/subscriptions","organizations_url":"https://api.github.com/users/johnbradley/orgs","repos_url":"https://api.github.com/users/johnbradley/repos","events_url":"https://api.github.com/users/johnbradley/events{/privacy}","received_events_url":"https://api.github.com/users/johnbradley/received_events","type":"User","site_admin":false},"body":"Adds changes to allow a user to select a project, recipient and enter a message to be included in the email.\r\nHigh Level Changes\r\n- `New Delivery` button to the __Outgoing__ deliveries\r\n- `deliveries/new/select-project` route where user selects a project to deliver\r\n- `new/select-recipient?project_id=<id>` route where user selects recipient ~~and share users~~\r\n- `deliveries/new/enter-user-message?project_id=<id>&to_user_id=<id>...` route to enter a message and send the delivery\r\n\r\nFuture changes\r\n- make use of DukeDS affiliates for selecting recipient and share users\r\n\r\nNeeds https://github.com/Duke-GCB/D4S2/issues/169\r\n\r\nFixes #6 \r\n","created_at":"2018-07-26T14:57:52Z","updated_at":"2018-08-10T18:54:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fbf8151fccab3c0bc462b13ef9b4c6b3a9bd81b0","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Duke-GCB/datadelivery-ui/pulls/21/commits","review_comments_url":"https://api.github.com/repos/Duke-GCB/datadelivery-ui/pulls/21/comments","review_comment_url":"https://api.github.com/repos/Duke-GCB/datadelivery-ui/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Duke-GCB/datadelivery-ui/issues/21/comments","statuses_url":"https://api.github.com/repos/Duke-GCB/datadelivery-ui/statuses/ff42d3aaef97641b032cb4c4a595e66f74359e46","head":{"label":"Duke-GCB:6-new-deliveries","ref":"6-new-deliveries","sha":"ff42d3aaef97641b032cb4c4a595e66f74359e46","user":{"login":"Duke-GCB","id":7875151,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc4NzUxNTE=","avatar_url":"https://avatars2.githubusercontent.com/u/7875151?v=4","gravatar_id":"","url":"https://api.github.com/users/Duke-GCB","html_url":"https://github.com/Duke-GCB","followers_url":"https://api.github.com/users/Duke-GCB/followers","following_url":"https://api.github.com/users/Duke-GCB/following{/other_user}","gists_url":"https://api.github.com/users/Duke-GCB/gists{/gist_id}","starred_url":"https://api.github.com/users/Duke-GCB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Duke-GCB/subscriptions","organizations_url":"https://api.github.com/users/Duke-GCB/orgs","repos_url":"https://api.github.com/users/Duke-GCB/repos","events_url":"https://api.github.com/users/Duke-GCB/events{/privacy}","received_events_url":"https://api.github.com/users/Duke-GCB/received_events","type":"Organization","site_admin":false},"repo":{"id":106629591,"node_id":"MDEwOlJlcG9zaXRvcnkxMDY2Mjk1OTE=","name":"datadelivery-ui","full_name":"Duke-GCB/datadelivery-ui","owner":{"login":"Duke-GCB","id":7875151,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc4NzUxNTE=","avatar_url":"https://avatars2.githubusercontent.com/u/7875151?v=4","gravatar_id":"","url":"https://api.github.com/users/Duke-GCB","html_url":"https://github.com/Duke-GCB","followers_url":"https://api.github.com/users/Duke-GCB/followers","following_url":"https://api.github.com/users/Duke-GCB/following{/other_user}","gists_url":"https://api.github.com/users/Duke-GCB/gists{/gist_id}","starred_url":"https://api.github.com/users/Duke-GCB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Duke-GCB/subscriptions","organizations_url":"https://api.github.com/users/Duke-GCB/orgs","repos_url":"https://api.github.com/users/Duke-GCB/repos","events_url":"https://api.github.com/users/Duke-GCB/events{/privacy}","received_events_url":"https://api.github.com/users/Duke-GCB/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Duke-GCB/datadelivery-ui","description":"An ember.js application frontend for d4s2","fork":false,"url":"https://api.github.com/repos/Duke-GCB/datadelivery-ui","forks_url":"https://api.github.com/repos/Duke-GCB/datadelivery-ui/forks","keys_url":"https://api.github.com/repos/Duke-GCB/datadelivery-ui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Duke-GCB/datadelivery-ui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Duke-GCB/datadelivery-ui/teams","hooks_url":"https://api.github.com/repos/Duke-GCB/datadelivery-ui/hooks","issue_events_url":"https://api.github.com/repos/Duke-GCB/datadelivery-ui/issues/events{/number}","events_url":"https://api.github.com/repos/Duke-GCB/datadelivery-ui/events","assignees_url":"https://api.github.com/repos/Duke-GCB/datadelivery-ui/assignees{/user}","branches_url":"https://api.github.com/repos/Duke-GCB/datadelivery-ui/branches{/branch}","tags_url":"https://api.github.com/repos/Duke-GCB/datadelivery-ui/tags","blobs_url":"https://api.github.com/repos/Duke-GCB/datadelivery-ui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Duke-GCB/datadelivery-ui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Duke-GCB/datadelivery-ui/git/refs{/sha}","trees_url":"https://api.github.com/repos/Duke-GCB/datadelivery-ui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Duke-GCB/datadelivery-ui/statuses/{sha}","languages_url":"https://api.github.com/repos/Duke-GCB/datadelivery-ui/languages","stargazers_url":"https://api.github.com/repos/Duke-GCB/datadelivery-ui/stargazers","contributors_url":"https://api.github.com/repos/Duke-GCB/datadelivery-ui/contributors","subscribers_url":"https://api.github.com/repos/Duke-GCB/datadelivery-ui/subscribers","subscription_url":"https://api.github.com/repos/Duke-GCB/datadelivery-ui/subscription","commits_url":"https://api.github.com/repos/Duke-GCB/datadelivery-ui/commits{/sha}","git_commits_url":"https://api.github.com/repos/Duke-GCB/datadelivery-ui/git/commits{/sha}","comments_url":"https://api.github.com/repos/Duke-GCB/datadelivery-ui/comments{/number}","issue_comment_url":"https://api.github.com/repos/Duke-GCB/datadelivery-ui/issues/comments{/number}","contents_url":"https://api.github.com/repos/Duke-GCB/datadelivery-ui/contents/{+path}","compare_url":"https://api.github.com/repos/Duke-GCB/datadelivery-ui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Duke-GCB/datadelivery-ui/merges","archive_url":"https://api.github.com/repos/Duke-GCB/datadelivery-ui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Duke-GCB/datadelivery-ui/downloads","issues_url":"https://api.github.com/repos/Duke-GCB/datadelivery-ui/issues{/number}","pulls_url":"https://api.github.com/repos/Duke-GCB/datadelivery-ui/pulls{/number}","milestones_url":"https://api.github.com/repos/Duke-GCB/datadelivery-ui/milestones{/number}","notifications_url":"https://api.github.com/repos/Duke-GCB/datadelivery-ui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Duke-GCB/datadelivery-ui/labels{/name}","releases_url":"https://api.github.com/repos/Duke-GCB/datadelivery-ui/releases{/id}","deployments_url":"https://api.github.com/repos/Duke-GCB/datadelivery-ui/deployments","created_at":"2017-10-12T01:34:38Z","updated_at":"2018-07-23T15:31:09Z","pushed_at":"2018-08-10T13:18:21Z","git_url":"git://github.com/Duke-GCB/datadelivery-ui.git","ssh_url":"git@github.com:Duke-GCB/datadelivery-ui.git","clone_url":"https://github.com/Duke-GCB/datadelivery-ui.git","svn_url":"https://github.com/Duke-GCB/datadelivery-ui","homepage":"","size":366,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":4,"license":null,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"base":{"label":"Duke-GCB:master","ref":"master","sha":"86edec2b4768336c28dbf6c8c606ece176cf4c7f","user":{"login":"Duke-GCB","id":7875151,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc4NzUxNTE=","avatar_url":"https://avatars2.githubusercontent.com/u/7875151?v=4","gravatar_id":"","url":"https://api.github.com/users/Duke-GCB","html_url":"https://github.com/Duke-GCB","followers_url":"https://api.github.com/users/Duke-GCB/followers","following_url":"https://api.github.com/users/Duke-GCB/following{/other_user}","gists_url":"https://api.github.com/users/Duke-GCB/gists{/gist_id}","starred_url":"https://api.github.com/users/Duke-GCB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Duke-GCB/subscriptions","organizations_url":"https://api.github.com/users/Duke-GCB/orgs","repos_url":"https://api.github.com/users/Duke-GCB/repos","events_url":"https://api.github.com/users/Duke-GCB/events{/privacy}","received_events_url":"https://api.github.com/users/Duke-GCB/received_events","type":"Organization","site_admin":false},"repo":{"id":106629591,"node_id":"MDEwOlJlcG9zaXRvcnkxMDY2Mjk1OTE=","name":"datadelivery-ui","full_name":"Duke-GCB/datadelivery-ui","owner":{"login":"Duke-GCB","id":7875151,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc4NzUxNTE=","avatar_url":"https://avatars2.githubusercontent.com/u/7875151?v=4","gravatar_id":"","url":"https://api.github.com/users/Duke-GCB","html_url":"https://github.com/Duke-GCB","followers_url":"https://api.github.com/users/Duke-GCB/followers","following_url":"https://api.github.com/users/Duke-GCB/following{/other_user}","gists_url":"https://api.github.com/users/Duke-GCB/gists{/gist_id}","starred_url":"https://api.github.com/users/Duke-GCB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Duke-GCB/subscriptions","organizations_url":"https://api.github.com/users/Duke-GCB/orgs","repos_url":"https://api.github.com/users/Duke-GCB/repos","events_url":"https://api.github.com/users/Duke-GCB/events{/privacy}","received_events_url":"https://api.github.com/users/Duke-GCB/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Duke-GCB/datadelivery-ui","description":"An ember.js application frontend for d4s2","fork":false,"url":"https://api.github.com/repos/Duke-GCB/datadelivery-ui","forks_url":"https://api.github.com/repos/Duke-GCB/datadelivery-ui/forks","keys_url":"https://api.github.com/repos/Duke-GCB/datadelivery-ui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Duke-GCB/datadelivery-ui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Duke-GCB/datadelivery-ui/teams","hooks_url":"https://api.github.com/repos/Duke-GCB/datadelivery-ui/hooks","issue_events_url":"https://api.github.com/repos/Duke-GCB/datadelivery-ui/issues/events{/number}","events_url":"https://api.github.com/repos/Duke-GCB/datadelivery-ui/events","assignees_url":"https://api.github.com/repos/Duke-GCB/datadelivery-ui/assignees{/user}","branches_url":"https://api.github.com/repos/Duke-GCB/datadelivery-ui/branches{/branch}","tags_url":"https://api.github.com/repos/Duke-GCB/datadelivery-ui/tags","blobs_url":"https://api.github.com/repos/Duke-GCB/datadelivery-ui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Duke-GCB/datadelivery-ui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Duke-GCB/datadelivery-ui/git/refs{/sha}","trees_url":"https://api.github.com/repos/Duke-GCB/datadelivery-ui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Duke-GCB/datadelivery-ui/statuses/{sha}","languages_url":"https://api.github.com/repos/Duke-GCB/datadelivery-ui/languages","stargazers_url":"https://api.github.com/repos/Duke-GCB/datadelivery-ui/stargazers","contributors_url":"https://api.github.com/repos/Duke-GCB/datadelivery-ui/contributors","subscribers_url":"https://api.github.com/repos/Duke-GCB/datadelivery-ui/subscribers","subscription_url":"https://api.github.com/repos/Duke-GCB/datadelivery-ui/subscription","commits_url":"https://api.github.com/repos/Duke-GCB/datadelivery-ui/commits{/sha}","git_commits_url":"https://api.github.com/repos/Duke-GCB/datadelivery-ui/git/commits{/sha}","comments_url":"https://api.github.com/repos/Duke-GCB/datadelivery-ui/comments{/number}","issue_comment_url":"https://api.github.com/repos/Duke-GCB/datadelivery-ui/issues/comments{/number}","contents_url":"https://api.github.com/repos/Duke-GCB/datadelivery-ui/contents/{+path}","compare_url":"https://api.github.com/repos/Duke-GCB/datadelivery-ui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Duke-GCB/datadelivery-ui/merges","archive_url":"https://api.github.com/repos/Duke-GCB/datadelivery-ui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Duke-GCB/datadelivery-ui/downloads","issues_url":"https://api.github.com/repos/Duke-GCB/datadelivery-ui/issues{/number}","pulls_url":"https://api.github.com/repos/Duke-GCB/datadelivery-ui/pulls{/number}","milestones_url":"https://api.github.com/repos/Duke-GCB/datadelivery-ui/milestones{/number}","notifications_url":"https://api.github.com/repos/Duke-GCB/datadelivery-ui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Duke-GCB/datadelivery-ui/labels{/name}","releases_url":"https://api.github.com/repos/Duke-GCB/datadelivery-ui/releases{/id}","deployments_url":"https://api.github.com/repos/Duke-GCB/datadelivery-ui/deployments","created_at":"2017-10-12T01:34:38Z","updated_at":"2018-07-23T15:31:09Z","pushed_at":"2018-08-10T13:18:21Z","git_url":"git://github.com/Duke-GCB/datadelivery-ui.git","ssh_url":"git@github.com:Duke-GCB/datadelivery-ui.git","clone_url":"https://github.com/Duke-GCB/datadelivery-ui.git","svn_url":"https://github.com/Duke-GCB/datadelivery-ui","homepage":"","size":366,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":4,"license":null,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Duke-GCB/datadelivery-ui/pulls/21"},"html":{"href":"https://github.com/Duke-GCB/datadelivery-ui/pull/21"},"issue":{"href":"https://api.github.com/repos/Duke-GCB/datadelivery-ui/issues/21"},"comments":{"href":"https://api.github.com/repos/Duke-GCB/datadelivery-ui/issues/21/comments"},"review_comments":{"href":"https://api.github.com/repos/Duke-GCB/datadelivery-ui/pulls/21/comments"},"review_comment":{"href":"https://api.github.com/repos/Duke-GCB/datadelivery-ui/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Duke-GCB/datadelivery-ui/pulls/21/commits"},"statuses":{"href":"https://api.github.com/repos/Duke-GCB/datadelivery-ui/statuses/ff42d3aaef97641b032cb4c4a595e66f74359e46"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"johnbradley"}}