{"action":"opened","number":40,"pull_request":{"url":"https://api.github.com/repos/DoSomething/rogue/pulls/40","id":86034876,"html_url":"https://github.com/DoSomething/rogue/pull/40","diff_url":"https://github.com/DoSomething/rogue/pull/40.diff","patch_url":"https://github.com/DoSomething/rogue/pull/40.patch","issue_url":"https://api.github.com/repos/DoSomething/rogue/issues/40","number":40,"state":"open","locked":false,"title":"Update rb items endpoint","user":{"login":"chloealee","id":9019452,"avatar_url":"https://avatars.githubusercontent.com/u/9019452?v=3","gravatar_id":"","url":"https://api.github.com/users/chloealee","html_url":"https://github.com/chloealee","followers_url":"https://api.github.com/users/chloealee/followers","following_url":"https://api.github.com/users/chloealee/following{/other_user}","gists_url":"https://api.github.com/users/chloealee/gists{/gist_id}","starred_url":"https://api.github.com/users/chloealee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chloealee/subscriptions","organizations_url":"https://api.github.com/users/chloealee/orgs","repos_url":"https://api.github.com/users/chloealee/repos","events_url":"https://api.github.com/users/chloealee/events{/privacy}","received_events_url":"https://api.github.com/users/chloealee/received_events","type":"User","site_admin":false},"body":"#### What's this PR do?\r\n- Adds `PUT /items` endpoint to update the status (and more in the future) of reportback items.\r\n- Adds a test to make sure this endpoint is working correctly and updating reportback item(s) status correctly. \r\n\r\n#### How should this be reviewed?\r\n- Run `phpunit` and all tests should pass. \r\n- To test manually, pick a reportback item or multiple reportback items in the database you want to update and send a request similar to the following:\r\n![screen shot 2016-09-20 at 2 49 16 pm](https://cloud.githubusercontent.com/assets/9019452/18684236/738cdfb8-7f41-11e6-953c-747e0233a23c.png)\r\n Then check the database to make sure the status has changed to 'approved'\r\n\r\n#### Any background context you want to provide?\r\n- When testing manually, if sending more than one reportback item to update, request data must be entered in x-ww-form-urlencoded or raw section. \r\n- Do we need to add validation rules in `ReportbackItemRequest.php` if we're accepting multiple reportback items? \r\n\r\n#### Relevant tickets\r\nRefs https://github.com/DoSomething/phoenix/issues/6972 and is the Rogue side of the work to close this issue. \r\n\r\n#### Checklist\r\n- [ ] Documentation added for new features/changed endpoints.\r\n- [ ] Tested on staging.\r\n- [ ] Pinged a PM if this is a larger PR that would benefit from some additional testing love.","created_at":"2016-09-20T18:53:25Z","updated_at":"2016-09-20T18:53:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":{"login":"sbsmith86","id":1700409,"avatar_url":"https://avatars.githubusercontent.com/u/1700409?v=3","gravatar_id":"","url":"https://api.github.com/users/sbsmith86","html_url":"https://github.com/sbsmith86","followers_url":"https://api.github.com/users/sbsmith86/followers","following_url":"https://api.github.com/users/sbsmith86/following{/other_user}","gists_url":"https://api.github.com/users/sbsmith86/gists{/gist_id}","starred_url":"https://api.github.com/users/sbsmith86/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbsmith86/subscriptions","organizations_url":"https://api.github.com/users/sbsmith86/orgs","repos_url":"https://api.github.com/users/sbsmith86/repos","events_url":"https://api.github.com/users/sbsmith86/events{/privacy}","received_events_url":"https://api.github.com/users/sbsmith86/received_events","type":"User","site_admin":false},"assignees":[{"login":"sbsmith86","id":1700409,"avatar_url":"https://avatars.githubusercontent.com/u/1700409?v=3","gravatar_id":"","url":"https://api.github.com/users/sbsmith86","html_url":"https://github.com/sbsmith86","followers_url":"https://api.github.com/users/sbsmith86/followers","following_url":"https://api.github.com/users/sbsmith86/following{/other_user}","gists_url":"https://api.github.com/users/sbsmith86/gists{/gist_id}","starred_url":"https://api.github.com/users/sbsmith86/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbsmith86/subscriptions","organizations_url":"https://api.github.com/users/sbsmith86/orgs","repos_url":"https://api.github.com/users/sbsmith86/repos","events_url":"https://api.github.com/users/sbsmith86/events{/privacy}","received_events_url":"https://api.github.com/users/sbsmith86/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/DoSomething/rogue/pulls/40/commits","review_comments_url":"https://api.github.com/repos/DoSomething/rogue/pulls/40/comments","review_comment_url":"https://api.github.com/repos/DoSomething/rogue/pulls/comments{/number}","comments_url":"https://api.github.com/repos/DoSomething/rogue/issues/40/comments","statuses_url":"https://api.github.com/repos/DoSomething/rogue/statuses/3357fadb9260e9dc6db338d18ac36bc51fe76236","head":{"label":"chloealee:update-rb-items-endpoint","ref":"update-rb-items-endpoint","sha":"3357fadb9260e9dc6db338d18ac36bc51fe76236","user":{"login":"chloealee","id":9019452,"avatar_url":"https://avatars.githubusercontent.com/u/9019452?v=3","gravatar_id":"","url":"https://api.github.com/users/chloealee","html_url":"https://github.com/chloealee","followers_url":"https://api.github.com/users/chloealee/followers","following_url":"https://api.github.com/users/chloealee/following{/other_user}","gists_url":"https://api.github.com/users/chloealee/gists{/gist_id}","starred_url":"https://api.github.com/users/chloealee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chloealee/subscriptions","organizations_url":"https://api.github.com/users/chloealee/orgs","repos_url":"https://api.github.com/users/chloealee/repos","events_url":"https://api.github.com/users/chloealee/events{/privacy}","received_events_url":"https://api.github.com/users/chloealee/received_events","type":"User","site_admin":false},"repo":{"id":64678423,"name":"rogue","full_name":"chloealee/rogue","owner":{"login":"chloealee","id":9019452,"avatar_url":"https://avatars.githubusercontent.com/u/9019452?v=3","gravatar_id":"","url":"https://api.github.com/users/chloealee","html_url":"https://github.com/chloealee","followers_url":"https://api.github.com/users/chloealee/followers","following_url":"https://api.github.com/users/chloealee/following{/other_user}","gists_url":"https://api.github.com/users/chloealee/gists{/gist_id}","starred_url":"https://api.github.com/users/chloealee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chloealee/subscriptions","organizations_url":"https://api.github.com/users/chloealee/orgs","repos_url":"https://api.github.com/users/chloealee/repos","events_url":"https://api.github.com/users/chloealee/events{/privacy}","received_events_url":"https://api.github.com/users/chloealee/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/chloealee/rogue","description":"Campaign activity service","fork":true,"url":"https://api.github.com/repos/chloealee/rogue","forks_url":"https://api.github.com/repos/chloealee/rogue/forks","keys_url":"https://api.github.com/repos/chloealee/rogue/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chloealee/rogue/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chloealee/rogue/teams","hooks_url":"https://api.github.com/repos/chloealee/rogue/hooks","issue_events_url":"https://api.github.com/repos/chloealee/rogue/issues/events{/number}","events_url":"https://api.github.com/repos/chloealee/rogue/events","assignees_url":"https://api.github.com/repos/chloealee/rogue/assignees{/user}","branches_url":"https://api.github.com/repos/chloealee/rogue/branches{/branch}","tags_url":"https://api.github.com/repos/chloealee/rogue/tags","blobs_url":"https://api.github.com/repos/chloealee/rogue/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chloealee/rogue/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chloealee/rogue/git/refs{/sha}","trees_url":"https://api.github.com/repos/chloealee/rogue/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chloealee/rogue/statuses/{sha}","languages_url":"https://api.github.com/repos/chloealee/rogue/languages","stargazers_url":"https://api.github.com/repos/chloealee/rogue/stargazers","contributors_url":"https://api.github.com/repos/chloealee/rogue/contributors","subscribers_url":"https://api.github.com/repos/chloealee/rogue/subscribers","subscription_url":"https://api.github.com/repos/chloealee/rogue/subscription","commits_url":"https://api.github.com/repos/chloealee/rogue/commits{/sha}","git_commits_url":"https://api.github.com/repos/chloealee/rogue/git/commits{/sha}","comments_url":"https://api.github.com/repos/chloealee/rogue/comments{/number}","issue_comment_url":"https://api.github.com/repos/chloealee/rogue/issues/comments{/number}","contents_url":"https://api.github.com/repos/chloealee/rogue/contents/{+path}","compare_url":"https://api.github.com/repos/chloealee/rogue/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chloealee/rogue/merges","archive_url":"https://api.github.com/repos/chloealee/rogue/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chloealee/rogue/downloads","issues_url":"https://api.github.com/repos/chloealee/rogue/issues{/number}","pulls_url":"https://api.github.com/repos/chloealee/rogue/pulls{/number}","milestones_url":"https://api.github.com/repos/chloealee/rogue/milestones{/number}","notifications_url":"https://api.github.com/repos/chloealee/rogue/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chloealee/rogue/labels{/name}","releases_url":"https://api.github.com/repos/chloealee/rogue/releases{/id}","deployments_url":"https://api.github.com/repos/chloealee/rogue/deployments","created_at":"2016-08-01T15:24:03Z","updated_at":"2016-08-01T15:24:04Z","pushed_at":"2016-09-20T18:36:30Z","git_url":"git://github.com/chloealee/rogue.git","ssh_url":"git@github.com:chloealee/rogue.git","clone_url":"https://github.com/chloealee/rogue.git","svn_url":"https://github.com/chloealee/rogue","homepage":"","size":1036,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"DoSomething:master","ref":"master","sha":"b5714490145aba8c0d3a7840944aebdd926aca42","user":{"login":"DoSomething","id":731685,"avatar_url":"https://avatars.githubusercontent.com/u/731685?v=3","gravatar_id":"","url":"https://api.github.com/users/DoSomething","html_url":"https://github.com/DoSomething","followers_url":"https://api.github.com/users/DoSomething/followers","following_url":"https://api.github.com/users/DoSomething/following{/other_user}","gists_url":"https://api.github.com/users/DoSomething/gists{/gist_id}","starred_url":"https://api.github.com/users/DoSomething/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DoSomething/subscriptions","organizations_url":"https://api.github.com/users/DoSomething/orgs","repos_url":"https://api.github.com/users/DoSomething/repos","events_url":"https://api.github.com/users/DoSomething/events{/privacy}","received_events_url":"https://api.github.com/users/DoSomething/received_events","type":"Organization","site_admin":false},"repo":{"id":64166359,"name":"rogue","full_name":"DoSomething/rogue","owner":{"login":"DoSomething","id":731685,"avatar_url":"https://avatars.githubusercontent.com/u/731685?v=3","gravatar_id":"","url":"https://api.github.com/users/DoSomething","html_url":"https://github.com/DoSomething","followers_url":"https://api.github.com/users/DoSomething/followers","following_url":"https://api.github.com/users/DoSomething/following{/other_user}","gists_url":"https://api.github.com/users/DoSomething/gists{/gist_id}","starred_url":"https://api.github.com/users/DoSomething/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DoSomething/subscriptions","organizations_url":"https://api.github.com/users/DoSomething/orgs","repos_url":"https://api.github.com/users/DoSomething/repos","events_url":"https://api.github.com/users/DoSomething/events{/privacy}","received_events_url":"https://api.github.com/users/DoSomething/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/DoSomething/rogue","description":"Campaign activity service","fork":false,"url":"https://api.github.com/repos/DoSomething/rogue","forks_url":"https://api.github.com/repos/DoSomething/rogue/forks","keys_url":"https://api.github.com/repos/DoSomething/rogue/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DoSomething/rogue/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DoSomething/rogue/teams","hooks_url":"https://api.github.com/repos/DoSomething/rogue/hooks","issue_events_url":"https://api.github.com/repos/DoSomething/rogue/issues/events{/number}","events_url":"https://api.github.com/repos/DoSomething/rogue/events","assignees_url":"https://api.github.com/repos/DoSomething/rogue/assignees{/user}","branches_url":"https://api.github.com/repos/DoSomething/rogue/branches{/branch}","tags_url":"https://api.github.com/repos/DoSomething/rogue/tags","blobs_url":"https://api.github.com/repos/DoSomething/rogue/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DoSomething/rogue/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DoSomething/rogue/git/refs{/sha}","trees_url":"https://api.github.com/repos/DoSomething/rogue/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DoSomething/rogue/statuses/{sha}","languages_url":"https://api.github.com/repos/DoSomething/rogue/languages","stargazers_url":"https://api.github.com/repos/DoSomething/rogue/stargazers","contributors_url":"https://api.github.com/repos/DoSomething/rogue/contributors","subscribers_url":"https://api.github.com/repos/DoSomething/rogue/subscribers","subscription_url":"https://api.github.com/repos/DoSomething/rogue/subscription","commits_url":"https://api.github.com/repos/DoSomething/rogue/commits{/sha}","git_commits_url":"https://api.github.com/repos/DoSomething/rogue/git/commits{/sha}","comments_url":"https://api.github.com/repos/DoSomething/rogue/comments{/number}","issue_comment_url":"https://api.github.com/repos/DoSomething/rogue/issues/comments{/number}","contents_url":"https://api.github.com/repos/DoSomething/rogue/contents/{+path}","compare_url":"https://api.github.com/repos/DoSomething/rogue/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DoSomething/rogue/merges","archive_url":"https://api.github.com/repos/DoSomething/rogue/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DoSomething/rogue/downloads","issues_url":"https://api.github.com/repos/DoSomething/rogue/issues{/number}","pulls_url":"https://api.github.com/repos/DoSomething/rogue/pulls{/number}","milestones_url":"https://api.github.com/repos/DoSomething/rogue/milestones{/number}","notifications_url":"https://api.github.com/repos/DoSomething/rogue/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DoSomething/rogue/labels{/name}","releases_url":"https://api.github.com/repos/DoSomething/rogue/releases{/id}","deployments_url":"https://api.github.com/repos/DoSomething/rogue/deployments","created_at":"2016-07-25T20:38:30Z","updated_at":"2016-07-26T16:28:41Z","pushed_at":"2016-09-20T14:22:49Z","git_url":"git://github.com/DoSomething/rogue.git","ssh_url":"git@github.com:DoSomething/rogue.git","clone_url":"https://github.com/DoSomething/rogue.git","svn_url":"https://github.com/DoSomething/rogue","homepage":"","size":1038,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":6,"forks":1,"open_issues":6,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/DoSomething/rogue/pulls/40"},"html":{"href":"https://github.com/DoSomething/rogue/pull/40"},"issue":{"href":"https://api.github.com/repos/DoSomething/rogue/issues/40"},"comments":{"href":"https://api.github.com/repos/DoSomething/rogue/issues/40/comments"},"review_comments":{"href":"https://api.github.com/repos/DoSomething/rogue/pulls/40/comments"},"review_comment":{"href":"https://api.github.com/repos/DoSomething/rogue/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/DoSomething/rogue/pulls/40/commits"},"statuses":{"href":"https://api.github.com/repos/DoSomething/rogue/statuses/3357fadb9260e9dc6db338d18ac36bc51fe76236"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":4,"additions":113,"deletions":0,"changed_files":6}}
{"actor":{"display_login":"chloealee"}}