{"action":"created","comment":{"url":"https://api.github.com/repos/Comcast/traffic_control/pulls/comments/69138073","id":69138073,"diff_hunk":"@@ -739,7 +755,7 @@ sub get_response {\n \n \t\t$response->{id}                     = $rs->id;\n \t\t$response->{xmlId}                  = $rs->xml_id;\n-\t\t$response->{active}                 = $rs->active;\n+\t\t$response->{active}                 = $rs->active==1 ? \"true\" : \"false\";","path":"traffic_ops/app/lib/API/DeliveryService.pm","position":null,"original_position":66,"commit_id":"c737d4af4f0af5f21bd08c4aed7088a50e4ee988","original_commit_id":"c737d4af4f0af5f21bd08c4aed7088a50e4ee988","user":{"login":"mitchell852","id":251272,"avatar_url":"https://avatars.githubusercontent.com/u/251272?v=3","gravatar_id":"","url":"https://api.github.com/users/mitchell852","html_url":"https://github.com/mitchell852","followers_url":"https://api.github.com/users/mitchell852/followers","following_url":"https://api.github.com/users/mitchell852/following{/other_user}","gists_url":"https://api.github.com/users/mitchell852/gists{/gist_id}","starred_url":"https://api.github.com/users/mitchell852/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mitchell852/subscriptions","organizations_url":"https://api.github.com/users/mitchell852/orgs","repos_url":"https://api.github.com/users/mitchell852/repos","events_url":"https://api.github.com/users/mitchell852/events{/privacy}","received_events_url":"https://api.github.com/users/mitchell852/received_events","type":"User","site_admin":false},"body":"if you look at how the response is created in `sub delivery_services` you'll see that you can cast the int to a boolean like this:\r\n\r\n\"active\"                   => \\$row->active,","created_at":"2016-06-30T14:07:17Z","updated_at":"2016-06-30T14:07:17Z","html_url":"https://github.com/Comcast/traffic_control/pull/1264#discussion_r69138073","pull_request_url":"https://api.github.com/repos/Comcast/traffic_control/pulls/1264","_links":{"self":{"href":"https://api.github.com/repos/Comcast/traffic_control/pulls/comments/69138073"},"html":{"href":"https://github.com/Comcast/traffic_control/pull/1264#discussion_r69138073"},"pull_request":{"href":"https://api.github.com/repos/Comcast/traffic_control/pulls/1264"}}},"pull_request":{"url":"https://api.github.com/repos/Comcast/traffic_control/pulls/1264","id":65283761,"html_url":"https://github.com/Comcast/traffic_control/pull/1264","diff_url":"https://github.com/Comcast/traffic_control/pull/1264.diff","patch_url":"https://github.com/Comcast/traffic_control/pull/1264.patch","issue_url":"https://api.github.com/repos/Comcast/traffic_control/issues/1264","number":1264,"state":"open","locked":false,"title":"delivery service restful API: create, edit and delete","user":{"login":"jifyang","id":13622303,"avatar_url":"https://avatars.githubusercontent.com/u/13622303?v=3","gravatar_id":"","url":"https://api.github.com/users/jifyang","html_url":"https://github.com/jifyang","followers_url":"https://api.github.com/users/jifyang/followers","following_url":"https://api.github.com/users/jifyang/following{/other_user}","gists_url":"https://api.github.com/users/jifyang/gists{/gist_id}","starred_url":"https://api.github.com/users/jifyang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jifyang/subscriptions","organizations_url":"https://api.github.com/users/jifyang/orgs","repos_url":"https://api.github.com/users/jifyang/repos","events_url":"https://api.github.com/users/jifyang/events{/privacy}","received_events_url":"https://api.github.com/users/jifyang/received_events","type":"User","site_admin":false},"body":"Add delivery service restful API: create, edit and delete.\r\n\r\nThe APIs document is at https://docs.google.com/document/d/13GjIizusc7iUZq7TuVrsp8JZ2eEx52xUtoX9uRNzFgc/edit?usp=sharing\r\n","created_at":"2016-04-05T10:45:49Z","updated_at":"2016-06-30T14:07:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"64f8f301c0d8200a3e7119ce3587fb3983c6a3bf","assignee":{"login":"mitchell852","id":251272,"avatar_url":"https://avatars.githubusercontent.com/u/251272?v=3","gravatar_id":"","url":"https://api.github.com/users/mitchell852","html_url":"https://github.com/mitchell852","followers_url":"https://api.github.com/users/mitchell852/followers","following_url":"https://api.github.com/users/mitchell852/following{/other_user}","gists_url":"https://api.github.com/users/mitchell852/gists{/gist_id}","starred_url":"https://api.github.com/users/mitchell852/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mitchell852/subscriptions","organizations_url":"https://api.github.com/users/mitchell852/orgs","repos_url":"https://api.github.com/users/mitchell852/repos","events_url":"https://api.github.com/users/mitchell852/events{/privacy}","received_events_url":"https://api.github.com/users/mitchell852/received_events","type":"User","site_admin":false},"assignees":[{"login":"mitchell852","id":251272,"avatar_url":"https://avatars.githubusercontent.com/u/251272?v=3","gravatar_id":"","url":"https://api.github.com/users/mitchell852","html_url":"https://github.com/mitchell852","followers_url":"https://api.github.com/users/mitchell852/followers","following_url":"https://api.github.com/users/mitchell852/following{/other_user}","gists_url":"https://api.github.com/users/mitchell852/gists{/gist_id}","starred_url":"https://api.github.com/users/mitchell852/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mitchell852/subscriptions","organizations_url":"https://api.github.com/users/mitchell852/orgs","repos_url":"https://api.github.com/users/mitchell852/repos","events_url":"https://api.github.com/users/mitchell852/events{/privacy}","received_events_url":"https://api.github.com/users/mitchell852/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/Comcast/traffic_control/milestones/13","html_url":"https://github.com/Comcast/traffic_control/milestones/1.6.0","labels_url":"https://api.github.com/repos/Comcast/traffic_control/milestones/13/labels","id":1542209,"number":13,"title":"1.6.0","description":"","creator":{"login":"mtorluemke","id":3515510,"avatar_url":"https://avatars.githubusercontent.com/u/3515510?v=3","gravatar_id":"","url":"https://api.github.com/users/mtorluemke","html_url":"https://github.com/mtorluemke","followers_url":"https://api.github.com/users/mtorluemke/followers","following_url":"https://api.github.com/users/mtorluemke/following{/other_user}","gists_url":"https://api.github.com/users/mtorluemke/gists{/gist_id}","starred_url":"https://api.github.com/users/mtorluemke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mtorluemke/subscriptions","organizations_url":"https://api.github.com/users/mtorluemke/orgs","repos_url":"https://api.github.com/users/mtorluemke/repos","events_url":"https://api.github.com/users/mtorluemke/events{/privacy}","received_events_url":"https://api.github.com/users/mtorluemke/received_events","type":"User","site_admin":false},"open_issues":6,"closed_issues":123,"state":"open","created_at":"2016-01-25T17:24:50Z","updated_at":"2016-06-30T13:58:33Z","due_on":"2016-06-30T06:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/Comcast/traffic_control/pulls/1264/commits","review_comments_url":"https://api.github.com/repos/Comcast/traffic_control/pulls/1264/comments","review_comment_url":"https://api.github.com/repos/Comcast/traffic_control/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Comcast/traffic_control/issues/1264/comments","statuses_url":"https://api.github.com/repos/Comcast/traffic_control/statuses/c737d4af4f0af5f21bd08c4aed7088a50e4ee988","head":{"label":"jifyang:ds","ref":"ds","sha":"c737d4af4f0af5f21bd08c4aed7088a50e4ee988","user":{"login":"jifyang","id":13622303,"avatar_url":"https://avatars.githubusercontent.com/u/13622303?v=3","gravatar_id":"","url":"https://api.github.com/users/jifyang","html_url":"https://github.com/jifyang","followers_url":"https://api.github.com/users/jifyang/followers","following_url":"https://api.github.com/users/jifyang/following{/other_user}","gists_url":"https://api.github.com/users/jifyang/gists{/gist_id}","starred_url":"https://api.github.com/users/jifyang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jifyang/subscriptions","organizations_url":"https://api.github.com/users/jifyang/orgs","repos_url":"https://api.github.com/users/jifyang/repos","events_url":"https://api.github.com/users/jifyang/events{/privacy}","received_events_url":"https://api.github.com/users/jifyang/received_events","type":"User","site_admin":false},"repo":{"id":54523016,"name":"traffic_control","full_name":"jifyang/traffic_control","owner":{"login":"jifyang","id":13622303,"avatar_url":"https://avatars.githubusercontent.com/u/13622303?v=3","gravatar_id":"","url":"https://api.github.com/users/jifyang","html_url":"https://github.com/jifyang","followers_url":"https://api.github.com/users/jifyang/followers","following_url":"https://api.github.com/users/jifyang/following{/other_user}","gists_url":"https://api.github.com/users/jifyang/gists{/gist_id}","starred_url":"https://api.github.com/users/jifyang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jifyang/subscriptions","organizations_url":"https://api.github.com/users/jifyang/orgs","repos_url":"https://api.github.com/users/jifyang/repos","events_url":"https://api.github.com/users/jifyang/events{/privacy}","received_events_url":"https://api.github.com/users/jifyang/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jifyang/traffic_control","description":"Traffic Control CDN","fork":true,"url":"https://api.github.com/repos/jifyang/traffic_control","forks_url":"https://api.github.com/repos/jifyang/traffic_control/forks","keys_url":"https://api.github.com/repos/jifyang/traffic_control/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jifyang/traffic_control/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jifyang/traffic_control/teams","hooks_url":"https://api.github.com/repos/jifyang/traffic_control/hooks","issue_events_url":"https://api.github.com/repos/jifyang/traffic_control/issues/events{/number}","events_url":"https://api.github.com/repos/jifyang/traffic_control/events","assignees_url":"https://api.github.com/repos/jifyang/traffic_control/assignees{/user}","branches_url":"https://api.github.com/repos/jifyang/traffic_control/branches{/branch}","tags_url":"https://api.github.com/repos/jifyang/traffic_control/tags","blobs_url":"https://api.github.com/repos/jifyang/traffic_control/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jifyang/traffic_control/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jifyang/traffic_control/git/refs{/sha}","trees_url":"https://api.github.com/repos/jifyang/traffic_control/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jifyang/traffic_control/statuses/{sha}","languages_url":"https://api.github.com/repos/jifyang/traffic_control/languages","stargazers_url":"https://api.github.com/repos/jifyang/traffic_control/stargazers","contributors_url":"https://api.github.com/repos/jifyang/traffic_control/contributors","subscribers_url":"https://api.github.com/repos/jifyang/traffic_control/subscribers","subscription_url":"https://api.github.com/repos/jifyang/traffic_control/subscription","commits_url":"https://api.github.com/repos/jifyang/traffic_control/commits{/sha}","git_commits_url":"https://api.github.com/repos/jifyang/traffic_control/git/commits{/sha}","comments_url":"https://api.github.com/repos/jifyang/traffic_control/comments{/number}","issue_comment_url":"https://api.github.com/repos/jifyang/traffic_control/issues/comments{/number}","contents_url":"https://api.github.com/repos/jifyang/traffic_control/contents/{+path}","compare_url":"https://api.github.com/repos/jifyang/traffic_control/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jifyang/traffic_control/merges","archive_url":"https://api.github.com/repos/jifyang/traffic_control/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jifyang/traffic_control/downloads","issues_url":"https://api.github.com/repos/jifyang/traffic_control/issues{/number}","pulls_url":"https://api.github.com/repos/jifyang/traffic_control/pulls{/number}","milestones_url":"https://api.github.com/repos/jifyang/traffic_control/milestones{/number}","notifications_url":"https://api.github.com/repos/jifyang/traffic_control/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jifyang/traffic_control/labels{/name}","releases_url":"https://api.github.com/repos/jifyang/traffic_control/releases{/id}","deployments_url":"https://api.github.com/repos/jifyang/traffic_control/deployments","created_at":"2016-03-23T02:03:00Z","updated_at":"2016-03-23T02:03:07Z","pushed_at":"2016-06-30T13:57:18Z","git_url":"git://github.com/jifyang/traffic_control.git","ssh_url":"git@github.com:jifyang/traffic_control.git","clone_url":"https://github.com/jifyang/traffic_control.git","svn_url":"https://github.com/jifyang/traffic_control","homepage":"http://traffic-control-cdn.net","size":47106,"stargazers_count":0,"watchers_count":0,"language":"Perl","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":"Comcast:master","ref":"master","sha":"6a4d5c882003174c094175355cfcf62126e5beb0","user":{"login":"Comcast","id":709212,"avatar_url":"https://avatars.githubusercontent.com/u/709212?v=3","gravatar_id":"","url":"https://api.github.com/users/Comcast","html_url":"https://github.com/Comcast","followers_url":"https://api.github.com/users/Comcast/followers","following_url":"https://api.github.com/users/Comcast/following{/other_user}","gists_url":"https://api.github.com/users/Comcast/gists{/gist_id}","starred_url":"https://api.github.com/users/Comcast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Comcast/subscriptions","organizations_url":"https://api.github.com/users/Comcast/orgs","repos_url":"https://api.github.com/users/Comcast/repos","events_url":"https://api.github.com/users/Comcast/events{/privacy}","received_events_url":"https://api.github.com/users/Comcast/received_events","type":"Organization","site_admin":false},"repo":{"id":30432982,"name":"traffic_control","full_name":"Comcast/traffic_control","owner":{"login":"Comcast","id":709212,"avatar_url":"https://avatars.githubusercontent.com/u/709212?v=3","gravatar_id":"","url":"https://api.github.com/users/Comcast","html_url":"https://github.com/Comcast","followers_url":"https://api.github.com/users/Comcast/followers","following_url":"https://api.github.com/users/Comcast/following{/other_user}","gists_url":"https://api.github.com/users/Comcast/gists{/gist_id}","starred_url":"https://api.github.com/users/Comcast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Comcast/subscriptions","organizations_url":"https://api.github.com/users/Comcast/orgs","repos_url":"https://api.github.com/users/Comcast/repos","events_url":"https://api.github.com/users/Comcast/events{/privacy}","received_events_url":"https://api.github.com/users/Comcast/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Comcast/traffic_control","description":"Traffic Control CDN","fork":false,"url":"https://api.github.com/repos/Comcast/traffic_control","forks_url":"https://api.github.com/repos/Comcast/traffic_control/forks","keys_url":"https://api.github.com/repos/Comcast/traffic_control/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Comcast/traffic_control/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Comcast/traffic_control/teams","hooks_url":"https://api.github.com/repos/Comcast/traffic_control/hooks","issue_events_url":"https://api.github.com/repos/Comcast/traffic_control/issues/events{/number}","events_url":"https://api.github.com/repos/Comcast/traffic_control/events","assignees_url":"https://api.github.com/repos/Comcast/traffic_control/assignees{/user}","branches_url":"https://api.github.com/repos/Comcast/traffic_control/branches{/branch}","tags_url":"https://api.github.com/repos/Comcast/traffic_control/tags","blobs_url":"https://api.github.com/repos/Comcast/traffic_control/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Comcast/traffic_control/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Comcast/traffic_control/git/refs{/sha}","trees_url":"https://api.github.com/repos/Comcast/traffic_control/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Comcast/traffic_control/statuses/{sha}","languages_url":"https://api.github.com/repos/Comcast/traffic_control/languages","stargazers_url":"https://api.github.com/repos/Comcast/traffic_control/stargazers","contributors_url":"https://api.github.com/repos/Comcast/traffic_control/contributors","subscribers_url":"https://api.github.com/repos/Comcast/traffic_control/subscribers","subscription_url":"https://api.github.com/repos/Comcast/traffic_control/subscription","commits_url":"https://api.github.com/repos/Comcast/traffic_control/commits{/sha}","git_commits_url":"https://api.github.com/repos/Comcast/traffic_control/git/commits{/sha}","comments_url":"https://api.github.com/repos/Comcast/traffic_control/comments{/number}","issue_comment_url":"https://api.github.com/repos/Comcast/traffic_control/issues/comments{/number}","contents_url":"https://api.github.com/repos/Comcast/traffic_control/contents/{+path}","compare_url":"https://api.github.com/repos/Comcast/traffic_control/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Comcast/traffic_control/merges","archive_url":"https://api.github.com/repos/Comcast/traffic_control/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Comcast/traffic_control/downloads","issues_url":"https://api.github.com/repos/Comcast/traffic_control/issues{/number}","pulls_url":"https://api.github.com/repos/Comcast/traffic_control/pulls{/number}","milestones_url":"https://api.github.com/repos/Comcast/traffic_control/milestones{/number}","notifications_url":"https://api.github.com/repos/Comcast/traffic_control/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Comcast/traffic_control/labels{/name}","releases_url":"https://api.github.com/repos/Comcast/traffic_control/releases{/id}","deployments_url":"https://api.github.com/repos/Comcast/traffic_control/deployments","created_at":"2015-02-06T21:05:10Z","updated_at":"2016-06-26T10:25:27Z","pushed_at":"2016-06-30T13:58:33Z","git_url":"git://github.com/Comcast/traffic_control.git","ssh_url":"git@github.com:Comcast/traffic_control.git","clone_url":"https://github.com/Comcast/traffic_control.git","svn_url":"https://github.com/Comcast/traffic_control","homepage":"http://traffic-control-cdn.net","size":51519,"stargazers_count":65,"watchers_count":65,"language":"Perl","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":66,"mirror_url":null,"open_issues_count":155,"forks":66,"open_issues":155,"watchers":65,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Comcast/traffic_control/pulls/1264"},"html":{"href":"https://github.com/Comcast/traffic_control/pull/1264"},"issue":{"href":"https://api.github.com/repos/Comcast/traffic_control/issues/1264"},"comments":{"href":"https://api.github.com/repos/Comcast/traffic_control/issues/1264/comments"},"review_comments":{"href":"https://api.github.com/repos/Comcast/traffic_control/pulls/1264/comments"},"review_comment":{"href":"https://api.github.com/repos/Comcast/traffic_control/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Comcast/traffic_control/pulls/1264/commits"},"statuses":{"href":"https://api.github.com/repos/Comcast/traffic_control/statuses/c737d4af4f0af5f21bd08c4aed7088a50e4ee988"}}}}
{"actor":{"display_login":"mitchell852"}}