{"action":"opened","number":33,"pull_request":{"url":"https://api.github.com/repos/Benkimeric/iReporter-API/pulls/33","id":237975336,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM3OTc1MzM2","html_url":"https://github.com/Benkimeric/iReporter-API/pull/33","diff_url":"https://github.com/Benkimeric/iReporter-API/pull/33.diff","patch_url":"https://github.com/Benkimeric/iReporter-API/pull/33.patch","issue_url":"https://api.github.com/repos/Benkimeric/iReporter-API/issues/33","number":33,"state":"open","locked":false,"title":"#162412265 add delete incident by ID endpoint","user":{"login":"Benkimeric","id":19903559,"node_id":"MDQ6VXNlcjE5OTAzNTU5","avatar_url":"https://avatars2.githubusercontent.com/u/19903559?v=4","gravatar_id":"","url":"https://api.github.com/users/Benkimeric","html_url":"https://github.com/Benkimeric","followers_url":"https://api.github.com/users/Benkimeric/followers","following_url":"https://api.github.com/users/Benkimeric/following{/other_user}","gists_url":"https://api.github.com/users/Benkimeric/gists{/gist_id}","starred_url":"https://api.github.com/users/Benkimeric/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Benkimeric/subscriptions","organizations_url":"https://api.github.com/users/Benkimeric/orgs","repos_url":"https://api.github.com/users/Benkimeric/repos","events_url":"https://api.github.com/users/Benkimeric/events{/privacy}","received_events_url":"https://api.github.com/users/Benkimeric/received_events","type":"User","site_admin":false},"body":"#### What does this PR do?\r\nAdd the endpoint for deleting a single intervention record or red flag\r\n#### Description of Task to be completed?\r\nCreate an endpoint for deleting a single incident record based on the type and the ID\r\n#### How should this be manually tested?\r\n\r\n- clone the repo\r\n- git clone https://github.com/Benkimeric/iReporter-API.git\r\n- create and activate the virtual environment\r\n- virtualenv <environment name>\r\n- $source <env name>/bin/activate (in bash)\r\n- install project dependencies by:\r\n    $pip install -r requirements.txt\r\n- python  run.py or flask run\r\n- Use postman to test the endpoint at this route `api/v2/<type>s/`<incident_id> Use DELETE to delete a single record\r\n`type` is either intervention or red-flag\r\n#### Any background context you want to provide?\r\nThe tests written for deleting a single record should pass on this code.\r\n#### What are the relevant pivotal tracker stories?\r\n#162412265\r\n#### Questions:\r\nAny feedback to improve on? Please advise.","created_at":"2018-12-12T09:58:38Z","updated_at":"2018-12-12T09:58:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Benkimeric/iReporter-API/pulls/33/commits","review_comments_url":"https://api.github.com/repos/Benkimeric/iReporter-API/pulls/33/comments","review_comment_url":"https://api.github.com/repos/Benkimeric/iReporter-API/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Benkimeric/iReporter-API/issues/33/comments","statuses_url":"https://api.github.com/repos/Benkimeric/iReporter-API/statuses/e205821cc62f2416f9137b5468beaea32a4905c2","head":{"label":"Benkimeric:ft-delete-specific-incident-162412265","ref":"ft-delete-specific-incident-162412265","sha":"e205821cc62f2416f9137b5468beaea32a4905c2","user":{"login":"Benkimeric","id":19903559,"node_id":"MDQ6VXNlcjE5OTAzNTU5","avatar_url":"https://avatars2.githubusercontent.com/u/19903559?v=4","gravatar_id":"","url":"https://api.github.com/users/Benkimeric","html_url":"https://github.com/Benkimeric","followers_url":"https://api.github.com/users/Benkimeric/followers","following_url":"https://api.github.com/users/Benkimeric/following{/other_user}","gists_url":"https://api.github.com/users/Benkimeric/gists{/gist_id}","starred_url":"https://api.github.com/users/Benkimeric/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Benkimeric/subscriptions","organizations_url":"https://api.github.com/users/Benkimeric/orgs","repos_url":"https://api.github.com/users/Benkimeric/repos","events_url":"https://api.github.com/users/Benkimeric/events{/privacy}","received_events_url":"https://api.github.com/users/Benkimeric/received_events","type":"User","site_admin":false},"repo":{"id":159472995,"node_id":"MDEwOlJlcG9zaXRvcnkxNTk0NzI5OTU=","name":"iReporter-API","full_name":"Benkimeric/iReporter-API","private":false,"owner":{"login":"Benkimeric","id":19903559,"node_id":"MDQ6VXNlcjE5OTAzNTU5","avatar_url":"https://avatars2.githubusercontent.com/u/19903559?v=4","gravatar_id":"","url":"https://api.github.com/users/Benkimeric","html_url":"https://github.com/Benkimeric","followers_url":"https://api.github.com/users/Benkimeric/followers","following_url":"https://api.github.com/users/Benkimeric/following{/other_user}","gists_url":"https://api.github.com/users/Benkimeric/gists{/gist_id}","starred_url":"https://api.github.com/users/Benkimeric/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Benkimeric/subscriptions","organizations_url":"https://api.github.com/users/Benkimeric/orgs","repos_url":"https://api.github.com/users/Benkimeric/repos","events_url":"https://api.github.com/users/Benkimeric/events{/privacy}","received_events_url":"https://api.github.com/users/Benkimeric/received_events","type":"User","site_admin":false},"html_url":"https://github.com/Benkimeric/iReporter-API","description":null,"fork":false,"url":"https://api.github.com/repos/Benkimeric/iReporter-API","forks_url":"https://api.github.com/repos/Benkimeric/iReporter-API/forks","keys_url":"https://api.github.com/repos/Benkimeric/iReporter-API/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Benkimeric/iReporter-API/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Benkimeric/iReporter-API/teams","hooks_url":"https://api.github.com/repos/Benkimeric/iReporter-API/hooks","issue_events_url":"https://api.github.com/repos/Benkimeric/iReporter-API/issues/events{/number}","events_url":"https://api.github.com/repos/Benkimeric/iReporter-API/events","assignees_url":"https://api.github.com/repos/Benkimeric/iReporter-API/assignees{/user}","branches_url":"https://api.github.com/repos/Benkimeric/iReporter-API/branches{/branch}","tags_url":"https://api.github.com/repos/Benkimeric/iReporter-API/tags","blobs_url":"https://api.github.com/repos/Benkimeric/iReporter-API/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Benkimeric/iReporter-API/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Benkimeric/iReporter-API/git/refs{/sha}","trees_url":"https://api.github.com/repos/Benkimeric/iReporter-API/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Benkimeric/iReporter-API/statuses/{sha}","languages_url":"https://api.github.com/repos/Benkimeric/iReporter-API/languages","stargazers_url":"https://api.github.com/repos/Benkimeric/iReporter-API/stargazers","contributors_url":"https://api.github.com/repos/Benkimeric/iReporter-API/contributors","subscribers_url":"https://api.github.com/repos/Benkimeric/iReporter-API/subscribers","subscription_url":"https://api.github.com/repos/Benkimeric/iReporter-API/subscription","commits_url":"https://api.github.com/repos/Benkimeric/iReporter-API/commits{/sha}","git_commits_url":"https://api.github.com/repos/Benkimeric/iReporter-API/git/commits{/sha}","comments_url":"https://api.github.com/repos/Benkimeric/iReporter-API/comments{/number}","issue_comment_url":"https://api.github.com/repos/Benkimeric/iReporter-API/issues/comments{/number}","contents_url":"https://api.github.com/repos/Benkimeric/iReporter-API/contents/{+path}","compare_url":"https://api.github.com/repos/Benkimeric/iReporter-API/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Benkimeric/iReporter-API/merges","archive_url":"https://api.github.com/repos/Benkimeric/iReporter-API/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Benkimeric/iReporter-API/downloads","issues_url":"https://api.github.com/repos/Benkimeric/iReporter-API/issues{/number}","pulls_url":"https://api.github.com/repos/Benkimeric/iReporter-API/pulls{/number}","milestones_url":"https://api.github.com/repos/Benkimeric/iReporter-API/milestones{/number}","notifications_url":"https://api.github.com/repos/Benkimeric/iReporter-API/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Benkimeric/iReporter-API/labels{/name}","releases_url":"https://api.github.com/repos/Benkimeric/iReporter-API/releases{/id}","deployments_url":"https://api.github.com/repos/Benkimeric/iReporter-API/deployments","created_at":"2018-11-28T09:02:49Z","updated_at":"2018-12-12T02:22:00Z","pushed_at":"2018-12-12T09:56:11Z","git_url":"git://github.com/Benkimeric/iReporter-API.git","ssh_url":"git@github.com:Benkimeric/iReporter-API.git","clone_url":"https://github.com/Benkimeric/iReporter-API.git","svn_url":"https://github.com/Benkimeric/iReporter-API","homepage":null,"size":63,"stargazers_count":0,"watchers_count":0,"language":"Python","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":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"develop"}},"base":{"label":"Benkimeric:develop","ref":"develop","sha":"92a084f055467328f39aa9ded5a9a46459ee5552","user":{"login":"Benkimeric","id":19903559,"node_id":"MDQ6VXNlcjE5OTAzNTU5","avatar_url":"https://avatars2.githubusercontent.com/u/19903559?v=4","gravatar_id":"","url":"https://api.github.com/users/Benkimeric","html_url":"https://github.com/Benkimeric","followers_url":"https://api.github.com/users/Benkimeric/followers","following_url":"https://api.github.com/users/Benkimeric/following{/other_user}","gists_url":"https://api.github.com/users/Benkimeric/gists{/gist_id}","starred_url":"https://api.github.com/users/Benkimeric/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Benkimeric/subscriptions","organizations_url":"https://api.github.com/users/Benkimeric/orgs","repos_url":"https://api.github.com/users/Benkimeric/repos","events_url":"https://api.github.com/users/Benkimeric/events{/privacy}","received_events_url":"https://api.github.com/users/Benkimeric/received_events","type":"User","site_admin":false},"repo":{"id":159472995,"node_id":"MDEwOlJlcG9zaXRvcnkxNTk0NzI5OTU=","name":"iReporter-API","full_name":"Benkimeric/iReporter-API","private":false,"owner":{"login":"Benkimeric","id":19903559,"node_id":"MDQ6VXNlcjE5OTAzNTU5","avatar_url":"https://avatars2.githubusercontent.com/u/19903559?v=4","gravatar_id":"","url":"https://api.github.com/users/Benkimeric","html_url":"https://github.com/Benkimeric","followers_url":"https://api.github.com/users/Benkimeric/followers","following_url":"https://api.github.com/users/Benkimeric/following{/other_user}","gists_url":"https://api.github.com/users/Benkimeric/gists{/gist_id}","starred_url":"https://api.github.com/users/Benkimeric/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Benkimeric/subscriptions","organizations_url":"https://api.github.com/users/Benkimeric/orgs","repos_url":"https://api.github.com/users/Benkimeric/repos","events_url":"https://api.github.com/users/Benkimeric/events{/privacy}","received_events_url":"https://api.github.com/users/Benkimeric/received_events","type":"User","site_admin":false},"html_url":"https://github.com/Benkimeric/iReporter-API","description":null,"fork":false,"url":"https://api.github.com/repos/Benkimeric/iReporter-API","forks_url":"https://api.github.com/repos/Benkimeric/iReporter-API/forks","keys_url":"https://api.github.com/repos/Benkimeric/iReporter-API/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Benkimeric/iReporter-API/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Benkimeric/iReporter-API/teams","hooks_url":"https://api.github.com/repos/Benkimeric/iReporter-API/hooks","issue_events_url":"https://api.github.com/repos/Benkimeric/iReporter-API/issues/events{/number}","events_url":"https://api.github.com/repos/Benkimeric/iReporter-API/events","assignees_url":"https://api.github.com/repos/Benkimeric/iReporter-API/assignees{/user}","branches_url":"https://api.github.com/repos/Benkimeric/iReporter-API/branches{/branch}","tags_url":"https://api.github.com/repos/Benkimeric/iReporter-API/tags","blobs_url":"https://api.github.com/repos/Benkimeric/iReporter-API/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Benkimeric/iReporter-API/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Benkimeric/iReporter-API/git/refs{/sha}","trees_url":"https://api.github.com/repos/Benkimeric/iReporter-API/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Benkimeric/iReporter-API/statuses/{sha}","languages_url":"https://api.github.com/repos/Benkimeric/iReporter-API/languages","stargazers_url":"https://api.github.com/repos/Benkimeric/iReporter-API/stargazers","contributors_url":"https://api.github.com/repos/Benkimeric/iReporter-API/contributors","subscribers_url":"https://api.github.com/repos/Benkimeric/iReporter-API/subscribers","subscription_url":"https://api.github.com/repos/Benkimeric/iReporter-API/subscription","commits_url":"https://api.github.com/repos/Benkimeric/iReporter-API/commits{/sha}","git_commits_url":"https://api.github.com/repos/Benkimeric/iReporter-API/git/commits{/sha}","comments_url":"https://api.github.com/repos/Benkimeric/iReporter-API/comments{/number}","issue_comment_url":"https://api.github.com/repos/Benkimeric/iReporter-API/issues/comments{/number}","contents_url":"https://api.github.com/repos/Benkimeric/iReporter-API/contents/{+path}","compare_url":"https://api.github.com/repos/Benkimeric/iReporter-API/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Benkimeric/iReporter-API/merges","archive_url":"https://api.github.com/repos/Benkimeric/iReporter-API/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Benkimeric/iReporter-API/downloads","issues_url":"https://api.github.com/repos/Benkimeric/iReporter-API/issues{/number}","pulls_url":"https://api.github.com/repos/Benkimeric/iReporter-API/pulls{/number}","milestones_url":"https://api.github.com/repos/Benkimeric/iReporter-API/milestones{/number}","notifications_url":"https://api.github.com/repos/Benkimeric/iReporter-API/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Benkimeric/iReporter-API/labels{/name}","releases_url":"https://api.github.com/repos/Benkimeric/iReporter-API/releases{/id}","deployments_url":"https://api.github.com/repos/Benkimeric/iReporter-API/deployments","created_at":"2018-11-28T09:02:49Z","updated_at":"2018-12-12T02:22:00Z","pushed_at":"2018-12-12T09:56:11Z","git_url":"git://github.com/Benkimeric/iReporter-API.git","ssh_url":"git@github.com:Benkimeric/iReporter-API.git","clone_url":"https://github.com/Benkimeric/iReporter-API.git","svn_url":"https://github.com/Benkimeric/iReporter-API","homepage":null,"size":63,"stargazers_count":0,"watchers_count":0,"language":"Python","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":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/Benkimeric/iReporter-API/pulls/33"},"html":{"href":"https://github.com/Benkimeric/iReporter-API/pull/33"},"issue":{"href":"https://api.github.com/repos/Benkimeric/iReporter-API/issues/33"},"comments":{"href":"https://api.github.com/repos/Benkimeric/iReporter-API/issues/33/comments"},"review_comments":{"href":"https://api.github.com/repos/Benkimeric/iReporter-API/pulls/33/comments"},"review_comment":{"href":"https://api.github.com/repos/Benkimeric/iReporter-API/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Benkimeric/iReporter-API/pulls/33/commits"},"statuses":{"href":"https://api.github.com/repos/Benkimeric/iReporter-API/statuses/e205821cc62f2416f9137b5468beaea32a4905c2"}},"author_association":"OWNER","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":65,"deletions":1,"changed_files":3}}
{"actor":{"display_login":"Benkimeric"}}