{"action":"created","comment":{"url":"https://api.github.com/repos/texttochange/vusion-frontend/pulls/comments/75581357","id":75581357,"diff_hunk":"@@ -43,8 +43,8 @@\n \tRouter::mapResources('programRequests', array('prefix' => '/:program/'));\n \tRouter::mapResources('programParticipants', array('prefix'=> '/:program/'));\n \tRouter::mapResources('Programs');\n-\tRouter::mapResources('ProgramRemoteSurvery');\n-\tRouter::mapResources('ProgramsAjax2', array('prefix'=> '/:program/'));\n+\tRouter::mapResources('ProgramsRemoteSurvery');","path":"app/Config/routes.php","position":null,"original_position":6,"commit_id":"6ea4d0d84c4e9ab715665ede509eedd6d24f8304","original_commit_id":"8f81a9a02e380f9b45f64df45ad24312c3d8d4ab","user":{"login":"overnin","id":896138,"avatar_url":"https://avatars.githubusercontent.com/u/896138?v=3","gravatar_id":"","url":"https://api.github.com/users/overnin","html_url":"https://github.com/overnin","followers_url":"https://api.github.com/users/overnin/followers","following_url":"https://api.github.com/users/overnin/following{/other_user}","gists_url":"https://api.github.com/users/overnin/gists{/gist_id}","starred_url":"https://api.github.com/users/overnin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/overnin/subscriptions","organizations_url":"https://api.github.com/users/overnin/orgs","repos_url":"https://api.github.com/users/overnin/repos","events_url":"https://api.github.com/users/overnin/events{/privacy}","received_events_url":"https://api.github.com/users/overnin/received_events","type":"User","site_admin":false},"body":"the naming of this controller doesn't seem to be consistent with rest of the controller. the prefix \"ProgramXXX\" is supposed to be used for controller that are used WITHIN an existing program, and this is expressed in the routing as the ProgramXXX controllers require to have the url of the program \"array('prefix'=> '/:program/')\"\r\n\r\nI would rather suggest that you would name the controller **InstantSurvey** ","created_at":"2016-08-20T16:34:34Z","updated_at":"2016-08-20T16:34:34Z","html_url":"https://github.com/texttochange/vusion-frontend/pull/285#discussion_r75581357","pull_request_url":"https://api.github.com/repos/texttochange/vusion-frontend/pulls/285","_links":{"self":{"href":"https://api.github.com/repos/texttochange/vusion-frontend/pulls/comments/75581357"},"html":{"href":"https://github.com/texttochange/vusion-frontend/pull/285#discussion_r75581357"},"pull_request":{"href":"https://api.github.com/repos/texttochange/vusion-frontend/pulls/285"}}},"pull_request":{"url":"https://api.github.com/repos/texttochange/vusion-frontend/pulls/285","id":80615538,"html_url":"https://github.com/texttochange/vusion-frontend/pull/285","diff_url":"https://github.com/texttochange/vusion-frontend/pull/285.diff","patch_url":"https://github.com/texttochange/vusion-frontend/pull/285.patch","issue_url":"https://api.github.com/repos/texttochange/vusion-frontend/issues/285","number":285,"state":"open","locked":false,"title":"Ask people Api call for setting up new survery ","user":{"login":"markphi2013","id":3327086,"avatar_url":"https://avatars.githubusercontent.com/u/3327086?v=3","gravatar_id":"","url":"https://api.github.com/users/markphi2013","html_url":"https://github.com/markphi2013","followers_url":"https://api.github.com/users/markphi2013/followers","following_url":"https://api.github.com/users/markphi2013/following{/other_user}","gists_url":"https://api.github.com/users/markphi2013/gists{/gist_id}","starred_url":"https://api.github.com/users/markphi2013/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markphi2013/subscriptions","organizations_url":"https://api.github.com/users/markphi2013/orgs","repos_url":"https://api.github.com/users/markphi2013/repos","events_url":"https://api.github.com/users/markphi2013/events{/privacy}","received_events_url":"https://api.github.com/users/markphi2013/received_events","type":"User","site_admin":false},"body":"run aco_sync for the new controller\r\nJson post call to add new program:\r\n```json\r\n{\r\n  \"survey\": {\r\n    \"uid\": \"survey_uid0001\",\r\n    \"participants_url\": \"http://askpeople.com/surveys/participants/survey_uid0001/list.csv\",\r\n    \"questions\": [\r\n      {\r\n        \"uid\": \"question_uid001\",\r\n        \"question_text\": \"example question 1?\",\r\n        \"answers\": [\r\n          {\r\n            \"uid\": \"answer_uid_001\",\r\n            \"answer_text\": \"yes\"\r\n          },\r\n          {\r\n            \"uid\": \"answer_uid_002\",\r\n            \"answer_text\": \"no\"\r\n          }\r\n        ]\r\n      },\r\n      {\r\n        \"uid\": \"question_uid002\",\r\n        \"question_text\": \"example question 2?\",\r\n        \"answers\": [\r\n          {\r\n            \"uid\": \"answer_uid_003\",\r\n            \"answer_text\": \"yes\"\r\n          },\r\n          {\r\n            \"uid\": \"answer_uid_004\",\r\n            \"answer_text\": \"no\"\r\n          }\r\n        ]\r\n      }\r\n    ]\r\n  }\r\n}  \r\n\r\n","created_at":"2016-08-09T12:59:34Z","updated_at":"2016-08-20T16:34:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4afad365d3d58316a5a5bc1929e92bf1d8531898","assignee":{"login":"overnin","id":896138,"avatar_url":"https://avatars.githubusercontent.com/u/896138?v=3","gravatar_id":"","url":"https://api.github.com/users/overnin","html_url":"https://github.com/overnin","followers_url":"https://api.github.com/users/overnin/followers","following_url":"https://api.github.com/users/overnin/following{/other_user}","gists_url":"https://api.github.com/users/overnin/gists{/gist_id}","starred_url":"https://api.github.com/users/overnin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/overnin/subscriptions","organizations_url":"https://api.github.com/users/overnin/orgs","repos_url":"https://api.github.com/users/overnin/repos","events_url":"https://api.github.com/users/overnin/events{/privacy}","received_events_url":"https://api.github.com/users/overnin/received_events","type":"User","site_admin":false},"assignees":[{"login":"overnin","id":896138,"avatar_url":"https://avatars.githubusercontent.com/u/896138?v=3","gravatar_id":"","url":"https://api.github.com/users/overnin","html_url":"https://github.com/overnin","followers_url":"https://api.github.com/users/overnin/followers","following_url":"https://api.github.com/users/overnin/following{/other_user}","gists_url":"https://api.github.com/users/overnin/gists{/gist_id}","starred_url":"https://api.github.com/users/overnin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/overnin/subscriptions","organizations_url":"https://api.github.com/users/overnin/orgs","repos_url":"https://api.github.com/users/overnin/repos","events_url":"https://api.github.com/users/overnin/events{/privacy}","received_events_url":"https://api.github.com/users/overnin/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/texttochange/vusion-frontend/pulls/285/commits","review_comments_url":"https://api.github.com/repos/texttochange/vusion-frontend/pulls/285/comments","review_comment_url":"https://api.github.com/repos/texttochange/vusion-frontend/pulls/comments{/number}","comments_url":"https://api.github.com/repos/texttochange/vusion-frontend/issues/285/comments","statuses_url":"https://api.github.com/repos/texttochange/vusion-frontend/statuses/6ea4d0d84c4e9ab715665ede509eedd6d24f8304","head":{"label":"texttochange:feature/askpeople_api_calls","ref":"feature/askpeople_api_calls","sha":"6ea4d0d84c4e9ab715665ede509eedd6d24f8304","user":{"login":"texttochange","id":1298887,"avatar_url":"https://avatars.githubusercontent.com/u/1298887?v=3","gravatar_id":"","url":"https://api.github.com/users/texttochange","html_url":"https://github.com/texttochange","followers_url":"https://api.github.com/users/texttochange/followers","following_url":"https://api.github.com/users/texttochange/following{/other_user}","gists_url":"https://api.github.com/users/texttochange/gists{/gist_id}","starred_url":"https://api.github.com/users/texttochange/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/texttochange/subscriptions","organizations_url":"https://api.github.com/users/texttochange/orgs","repos_url":"https://api.github.com/users/texttochange/repos","events_url":"https://api.github.com/users/texttochange/events{/privacy}","received_events_url":"https://api.github.com/users/texttochange/received_events","type":"Organization","site_admin":false},"repo":{"id":3316237,"name":"vusion-frontend","full_name":"texttochange/vusion-frontend","owner":{"login":"texttochange","id":1298887,"avatar_url":"https://avatars.githubusercontent.com/u/1298887?v=3","gravatar_id":"","url":"https://api.github.com/users/texttochange","html_url":"https://github.com/texttochange","followers_url":"https://api.github.com/users/texttochange/followers","following_url":"https://api.github.com/users/texttochange/following{/other_user}","gists_url":"https://api.github.com/users/texttochange/gists{/gist_id}","starred_url":"https://api.github.com/users/texttochange/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/texttochange/subscriptions","organizations_url":"https://api.github.com/users/texttochange/orgs","repos_url":"https://api.github.com/users/texttochange/repos","events_url":"https://api.github.com/users/texttochange/events{/privacy}","received_events_url":"https://api.github.com/users/texttochange/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/texttochange/vusion-frontend","description":"","fork":false,"url":"https://api.github.com/repos/texttochange/vusion-frontend","forks_url":"https://api.github.com/repos/texttochange/vusion-frontend/forks","keys_url":"https://api.github.com/repos/texttochange/vusion-frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/texttochange/vusion-frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/texttochange/vusion-frontend/teams","hooks_url":"https://api.github.com/repos/texttochange/vusion-frontend/hooks","issue_events_url":"https://api.github.com/repos/texttochange/vusion-frontend/issues/events{/number}","events_url":"https://api.github.com/repos/texttochange/vusion-frontend/events","assignees_url":"https://api.github.com/repos/texttochange/vusion-frontend/assignees{/user}","branches_url":"https://api.github.com/repos/texttochange/vusion-frontend/branches{/branch}","tags_url":"https://api.github.com/repos/texttochange/vusion-frontend/tags","blobs_url":"https://api.github.com/repos/texttochange/vusion-frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/texttochange/vusion-frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/texttochange/vusion-frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/texttochange/vusion-frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/texttochange/vusion-frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/texttochange/vusion-frontend/languages","stargazers_url":"https://api.github.com/repos/texttochange/vusion-frontend/stargazers","contributors_url":"https://api.github.com/repos/texttochange/vusion-frontend/contributors","subscribers_url":"https://api.github.com/repos/texttochange/vusion-frontend/subscribers","subscription_url":"https://api.github.com/repos/texttochange/vusion-frontend/subscription","commits_url":"https://api.github.com/repos/texttochange/vusion-frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/texttochange/vusion-frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/texttochange/vusion-frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/texttochange/vusion-frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/texttochange/vusion-frontend/contents/{+path}","compare_url":"https://api.github.com/repos/texttochange/vusion-frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/texttochange/vusion-frontend/merges","archive_url":"https://api.github.com/repos/texttochange/vusion-frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/texttochange/vusion-frontend/downloads","issues_url":"https://api.github.com/repos/texttochange/vusion-frontend/issues{/number}","pulls_url":"https://api.github.com/repos/texttochange/vusion-frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/texttochange/vusion-frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/texttochange/vusion-frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/texttochange/vusion-frontend/labels{/name}","releases_url":"https://api.github.com/repos/texttochange/vusion-frontend/releases{/id}","deployments_url":"https://api.github.com/repos/texttochange/vusion-frontend/deployments","created_at":"2012-01-31T16:15:40Z","updated_at":"2015-05-05T09:19:12Z","pushed_at":"2016-08-17T13:39:57Z","git_url":"git://github.com/texttochange/vusion-frontend.git","ssh_url":"git@github.com:texttochange/vusion-frontend.git","clone_url":"https://github.com/texttochange/vusion-frontend.git","svn_url":"https://github.com/texttochange/vusion-frontend","homepage":"http://www.texttochange.org/vusion","size":14527,"stargazers_count":6,"watchers_count":6,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":3,"forks":2,"open_issues":3,"watchers":6,"default_branch":"develop"}},"base":{"label":"texttochange:develop","ref":"develop","sha":"4be6f828219bf5f747aaf367c88b01f662dcbb7f","user":{"login":"texttochange","id":1298887,"avatar_url":"https://avatars.githubusercontent.com/u/1298887?v=3","gravatar_id":"","url":"https://api.github.com/users/texttochange","html_url":"https://github.com/texttochange","followers_url":"https://api.github.com/users/texttochange/followers","following_url":"https://api.github.com/users/texttochange/following{/other_user}","gists_url":"https://api.github.com/users/texttochange/gists{/gist_id}","starred_url":"https://api.github.com/users/texttochange/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/texttochange/subscriptions","organizations_url":"https://api.github.com/users/texttochange/orgs","repos_url":"https://api.github.com/users/texttochange/repos","events_url":"https://api.github.com/users/texttochange/events{/privacy}","received_events_url":"https://api.github.com/users/texttochange/received_events","type":"Organization","site_admin":false},"repo":{"id":3316237,"name":"vusion-frontend","full_name":"texttochange/vusion-frontend","owner":{"login":"texttochange","id":1298887,"avatar_url":"https://avatars.githubusercontent.com/u/1298887?v=3","gravatar_id":"","url":"https://api.github.com/users/texttochange","html_url":"https://github.com/texttochange","followers_url":"https://api.github.com/users/texttochange/followers","following_url":"https://api.github.com/users/texttochange/following{/other_user}","gists_url":"https://api.github.com/users/texttochange/gists{/gist_id}","starred_url":"https://api.github.com/users/texttochange/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/texttochange/subscriptions","organizations_url":"https://api.github.com/users/texttochange/orgs","repos_url":"https://api.github.com/users/texttochange/repos","events_url":"https://api.github.com/users/texttochange/events{/privacy}","received_events_url":"https://api.github.com/users/texttochange/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/texttochange/vusion-frontend","description":"","fork":false,"url":"https://api.github.com/repos/texttochange/vusion-frontend","forks_url":"https://api.github.com/repos/texttochange/vusion-frontend/forks","keys_url":"https://api.github.com/repos/texttochange/vusion-frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/texttochange/vusion-frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/texttochange/vusion-frontend/teams","hooks_url":"https://api.github.com/repos/texttochange/vusion-frontend/hooks","issue_events_url":"https://api.github.com/repos/texttochange/vusion-frontend/issues/events{/number}","events_url":"https://api.github.com/repos/texttochange/vusion-frontend/events","assignees_url":"https://api.github.com/repos/texttochange/vusion-frontend/assignees{/user}","branches_url":"https://api.github.com/repos/texttochange/vusion-frontend/branches{/branch}","tags_url":"https://api.github.com/repos/texttochange/vusion-frontend/tags","blobs_url":"https://api.github.com/repos/texttochange/vusion-frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/texttochange/vusion-frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/texttochange/vusion-frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/texttochange/vusion-frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/texttochange/vusion-frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/texttochange/vusion-frontend/languages","stargazers_url":"https://api.github.com/repos/texttochange/vusion-frontend/stargazers","contributors_url":"https://api.github.com/repos/texttochange/vusion-frontend/contributors","subscribers_url":"https://api.github.com/repos/texttochange/vusion-frontend/subscribers","subscription_url":"https://api.github.com/repos/texttochange/vusion-frontend/subscription","commits_url":"https://api.github.com/repos/texttochange/vusion-frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/texttochange/vusion-frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/texttochange/vusion-frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/texttochange/vusion-frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/texttochange/vusion-frontend/contents/{+path}","compare_url":"https://api.github.com/repos/texttochange/vusion-frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/texttochange/vusion-frontend/merges","archive_url":"https://api.github.com/repos/texttochange/vusion-frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/texttochange/vusion-frontend/downloads","issues_url":"https://api.github.com/repos/texttochange/vusion-frontend/issues{/number}","pulls_url":"https://api.github.com/repos/texttochange/vusion-frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/texttochange/vusion-frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/texttochange/vusion-frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/texttochange/vusion-frontend/labels{/name}","releases_url":"https://api.github.com/repos/texttochange/vusion-frontend/releases{/id}","deployments_url":"https://api.github.com/repos/texttochange/vusion-frontend/deployments","created_at":"2012-01-31T16:15:40Z","updated_at":"2015-05-05T09:19:12Z","pushed_at":"2016-08-17T13:39:57Z","git_url":"git://github.com/texttochange/vusion-frontend.git","ssh_url":"git@github.com:texttochange/vusion-frontend.git","clone_url":"https://github.com/texttochange/vusion-frontend.git","svn_url":"https://github.com/texttochange/vusion-frontend","homepage":"http://www.texttochange.org/vusion","size":14527,"stargazers_count":6,"watchers_count":6,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":3,"forks":2,"open_issues":3,"watchers":6,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/texttochange/vusion-frontend/pulls/285"},"html":{"href":"https://github.com/texttochange/vusion-frontend/pull/285"},"issue":{"href":"https://api.github.com/repos/texttochange/vusion-frontend/issues/285"},"comments":{"href":"https://api.github.com/repos/texttochange/vusion-frontend/issues/285/comments"},"review_comments":{"href":"https://api.github.com/repos/texttochange/vusion-frontend/pulls/285/comments"},"review_comment":{"href":"https://api.github.com/repos/texttochange/vusion-frontend/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/texttochange/vusion-frontend/pulls/285/commits"},"statuses":{"href":"https://api.github.com/repos/texttochange/vusion-frontend/statuses/6ea4d0d84c4e9ab715665ede509eedd6d24f8304"}}}}
{"actor":{"display_login":"overnin"}}