{"action":"created","comment":{"url":"https://api.github.com/repos/Victoria91/ngtravel/pulls/comments/46255119","id":46255119,"diff_hunk":"@@ -16,15 +16,22 @@ angular.module('Travel').controller('AdminToursController', function($scope, $lo\n                         {objectId: '@objectId'},\n                         {query: {isArray: true, transformResponse: parseResults}});\n \n+  var Hotel = $resource('https://api.parse.com/1/classes/Hotel/:objectId',\n+                        {objectId: '@objectId'},\n+                        {query: {isArray: true, transformResponse: parseResults}});\n+\n+\n   $scope.tourCountries = Country.query();\n   $scope.tourPlaces = Place.query();\n+  $scope.tourHotels = Hotel.query();\n   $scope.tours = Tour.query();\n \n-  $scope.newTour = { title: null, country_id: null, text: null, price: null, length: 7 };\n+  $scope.newTour = { title: null, countryId: null, text: null, price: null, length: 7 };\n \n   $scope.addTour = function(){\n     var tourToServer = new Tour($scope.newTour);\n-    tourToServer.country_id = angular.extend($scope.newTour.country_id, { __type: \"Pointer\", className: \"Country\"});\n+    tourToServer.countryId = angular.extend($scope.newTour.countryId, { __type: \"Pointer\", className: \"Country\"});\n+    tourToServer.placeId = angular.extend($scope.newTour.placeId, { __type: \"Pointer\", className: \"Place\"});","path":"admin_tours_controller.js","position":21,"original_position":21,"commit_id":"edc87cab5aa9572061417c53eb1f7746fc36e00d","original_commit_id":"edc87cab5aa9572061417c53eb1f7746fc36e00d","user":{"login":"anaumov","id":1510570,"avatar_url":"https://avatars.githubusercontent.com/u/1510570?v=3","gravatar_id":"","url":"https://api.github.com/users/anaumov","html_url":"https://github.com/anaumov","followers_url":"https://api.github.com/users/anaumov/followers","following_url":"https://api.github.com/users/anaumov/following{/other_user}","gists_url":"https://api.github.com/users/anaumov/gists{/gist_id}","starred_url":"https://api.github.com/users/anaumov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anaumov/subscriptions","organizations_url":"https://api.github.com/users/anaumov/orgs","repos_url":"https://api.github.com/users/anaumov/repos","events_url":"https://api.github.com/users/anaumov/events{/privacy}","received_events_url":"https://api.github.com/users/anaumov/received_events","type":"User","site_admin":false},"body":"С местом те же проблемы :)","created_at":"2015-12-01T09:19:24Z","updated_at":"2015-12-01T09:19:24Z","html_url":"https://github.com/Victoria91/ngtravel/pull/5#discussion_r46255119","pull_request_url":"https://api.github.com/repos/Victoria91/ngtravel/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/Victoria91/ngtravel/pulls/comments/46255119"},"html":{"href":"https://github.com/Victoria91/ngtravel/pull/5#discussion_r46255119"},"pull_request":{"href":"https://api.github.com/repos/Victoria91/ngtravel/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/Victoria91/ngtravel/pulls/5","id":52164662,"html_url":"https://github.com/Victoria91/ngtravel/pull/5","diff_url":"https://github.com/Victoria91/ngtravel/pull/5.diff","patch_url":"https://github.com/Victoria91/ngtravel/pull/5.patch","issue_url":"https://api.github.com/repos/Victoria91/ngtravel/issues/5","number":5,"state":"open","locked":false,"title":"Lesson 4 hotel model & place filter","user":{"login":"Victoria91","id":6933712,"avatar_url":"https://avatars.githubusercontent.com/u/6933712?v=3","gravatar_id":"","url":"https://api.github.com/users/Victoria91","html_url":"https://github.com/Victoria91","followers_url":"https://api.github.com/users/Victoria91/followers","following_url":"https://api.github.com/users/Victoria91/following{/other_user}","gists_url":"https://api.github.com/users/Victoria91/gists{/gist_id}","starred_url":"https://api.github.com/users/Victoria91/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Victoria91/subscriptions","organizations_url":"https://api.github.com/users/Victoria91/orgs","repos_url":"https://api.github.com/users/Victoria91/repos","events_url":"https://api.github.com/users/Victoria91/events{/privacy}","received_events_url":"https://api.github.com/users/Victoria91/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-11-30T19:02:02Z","updated_at":"2015-12-01T09:19:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6413e2db7aa1478c026a4cfbd186d580fd6239db","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Victoria91/ngtravel/pulls/5/commits","review_comments_url":"https://api.github.com/repos/Victoria91/ngtravel/pulls/5/comments","review_comment_url":"https://api.github.com/repos/Victoria91/ngtravel/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Victoria91/ngtravel/issues/5/comments","statuses_url":"https://api.github.com/repos/Victoria91/ngtravel/statuses/edc87cab5aa9572061417c53eb1f7746fc36e00d","head":{"label":"Victoria91:lesson_4_hotel_model_&_place_filter","ref":"lesson_4_hotel_model_&_place_filter","sha":"edc87cab5aa9572061417c53eb1f7746fc36e00d","user":{"login":"Victoria91","id":6933712,"avatar_url":"https://avatars.githubusercontent.com/u/6933712?v=3","gravatar_id":"","url":"https://api.github.com/users/Victoria91","html_url":"https://github.com/Victoria91","followers_url":"https://api.github.com/users/Victoria91/followers","following_url":"https://api.github.com/users/Victoria91/following{/other_user}","gists_url":"https://api.github.com/users/Victoria91/gists{/gist_id}","starred_url":"https://api.github.com/users/Victoria91/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Victoria91/subscriptions","organizations_url":"https://api.github.com/users/Victoria91/orgs","repos_url":"https://api.github.com/users/Victoria91/repos","events_url":"https://api.github.com/users/Victoria91/events{/privacy}","received_events_url":"https://api.github.com/users/Victoria91/received_events","type":"User","site_admin":false},"repo":{"id":44434772,"name":"ngtravel","full_name":"Victoria91/ngtravel","owner":{"login":"Victoria91","id":6933712,"avatar_url":"https://avatars.githubusercontent.com/u/6933712?v=3","gravatar_id":"","url":"https://api.github.com/users/Victoria91","html_url":"https://github.com/Victoria91","followers_url":"https://api.github.com/users/Victoria91/followers","following_url":"https://api.github.com/users/Victoria91/following{/other_user}","gists_url":"https://api.github.com/users/Victoria91/gists{/gist_id}","starred_url":"https://api.github.com/users/Victoria91/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Victoria91/subscriptions","organizations_url":"https://api.github.com/users/Victoria91/orgs","repos_url":"https://api.github.com/users/Victoria91/repos","events_url":"https://api.github.com/users/Victoria91/events{/privacy}","received_events_url":"https://api.github.com/users/Victoria91/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Victoria91/ngtravel","description":"learning angular js","fork":false,"url":"https://api.github.com/repos/Victoria91/ngtravel","forks_url":"https://api.github.com/repos/Victoria91/ngtravel/forks","keys_url":"https://api.github.com/repos/Victoria91/ngtravel/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Victoria91/ngtravel/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Victoria91/ngtravel/teams","hooks_url":"https://api.github.com/repos/Victoria91/ngtravel/hooks","issue_events_url":"https://api.github.com/repos/Victoria91/ngtravel/issues/events{/number}","events_url":"https://api.github.com/repos/Victoria91/ngtravel/events","assignees_url":"https://api.github.com/repos/Victoria91/ngtravel/assignees{/user}","branches_url":"https://api.github.com/repos/Victoria91/ngtravel/branches{/branch}","tags_url":"https://api.github.com/repos/Victoria91/ngtravel/tags","blobs_url":"https://api.github.com/repos/Victoria91/ngtravel/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Victoria91/ngtravel/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Victoria91/ngtravel/git/refs{/sha}","trees_url":"https://api.github.com/repos/Victoria91/ngtravel/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Victoria91/ngtravel/statuses/{sha}","languages_url":"https://api.github.com/repos/Victoria91/ngtravel/languages","stargazers_url":"https://api.github.com/repos/Victoria91/ngtravel/stargazers","contributors_url":"https://api.github.com/repos/Victoria91/ngtravel/contributors","subscribers_url":"https://api.github.com/repos/Victoria91/ngtravel/subscribers","subscription_url":"https://api.github.com/repos/Victoria91/ngtravel/subscription","commits_url":"https://api.github.com/repos/Victoria91/ngtravel/commits{/sha}","git_commits_url":"https://api.github.com/repos/Victoria91/ngtravel/git/commits{/sha}","comments_url":"https://api.github.com/repos/Victoria91/ngtravel/comments{/number}","issue_comment_url":"https://api.github.com/repos/Victoria91/ngtravel/issues/comments{/number}","contents_url":"https://api.github.com/repos/Victoria91/ngtravel/contents/{+path}","compare_url":"https://api.github.com/repos/Victoria91/ngtravel/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Victoria91/ngtravel/merges","archive_url":"https://api.github.com/repos/Victoria91/ngtravel/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Victoria91/ngtravel/downloads","issues_url":"https://api.github.com/repos/Victoria91/ngtravel/issues{/number}","pulls_url":"https://api.github.com/repos/Victoria91/ngtravel/pulls{/number}","milestones_url":"https://api.github.com/repos/Victoria91/ngtravel/milestones{/number}","notifications_url":"https://api.github.com/repos/Victoria91/ngtravel/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Victoria91/ngtravel/labels{/name}","releases_url":"https://api.github.com/repos/Victoria91/ngtravel/releases{/id}","created_at":"2015-10-17T11:34:25Z","updated_at":"2015-11-17T06:32:22Z","pushed_at":"2015-11-30T19:02:02Z","git_url":"git://github.com/Victoria91/ngtravel.git","ssh_url":"git@github.com:Victoria91/ngtravel.git","clone_url":"https://github.com/Victoria91/ngtravel.git","svn_url":"https://github.com/Victoria91/ngtravel","homepage":null,"size":382,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"Victoria91:master","ref":"master","sha":"977766a57e311ed7c92fc7dcfd0440667b26d04a","user":{"login":"Victoria91","id":6933712,"avatar_url":"https://avatars.githubusercontent.com/u/6933712?v=3","gravatar_id":"","url":"https://api.github.com/users/Victoria91","html_url":"https://github.com/Victoria91","followers_url":"https://api.github.com/users/Victoria91/followers","following_url":"https://api.github.com/users/Victoria91/following{/other_user}","gists_url":"https://api.github.com/users/Victoria91/gists{/gist_id}","starred_url":"https://api.github.com/users/Victoria91/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Victoria91/subscriptions","organizations_url":"https://api.github.com/users/Victoria91/orgs","repos_url":"https://api.github.com/users/Victoria91/repos","events_url":"https://api.github.com/users/Victoria91/events{/privacy}","received_events_url":"https://api.github.com/users/Victoria91/received_events","type":"User","site_admin":false},"repo":{"id":44434772,"name":"ngtravel","full_name":"Victoria91/ngtravel","owner":{"login":"Victoria91","id":6933712,"avatar_url":"https://avatars.githubusercontent.com/u/6933712?v=3","gravatar_id":"","url":"https://api.github.com/users/Victoria91","html_url":"https://github.com/Victoria91","followers_url":"https://api.github.com/users/Victoria91/followers","following_url":"https://api.github.com/users/Victoria91/following{/other_user}","gists_url":"https://api.github.com/users/Victoria91/gists{/gist_id}","starred_url":"https://api.github.com/users/Victoria91/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Victoria91/subscriptions","organizations_url":"https://api.github.com/users/Victoria91/orgs","repos_url":"https://api.github.com/users/Victoria91/repos","events_url":"https://api.github.com/users/Victoria91/events{/privacy}","received_events_url":"https://api.github.com/users/Victoria91/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Victoria91/ngtravel","description":"learning angular js","fork":false,"url":"https://api.github.com/repos/Victoria91/ngtravel","forks_url":"https://api.github.com/repos/Victoria91/ngtravel/forks","keys_url":"https://api.github.com/repos/Victoria91/ngtravel/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Victoria91/ngtravel/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Victoria91/ngtravel/teams","hooks_url":"https://api.github.com/repos/Victoria91/ngtravel/hooks","issue_events_url":"https://api.github.com/repos/Victoria91/ngtravel/issues/events{/number}","events_url":"https://api.github.com/repos/Victoria91/ngtravel/events","assignees_url":"https://api.github.com/repos/Victoria91/ngtravel/assignees{/user}","branches_url":"https://api.github.com/repos/Victoria91/ngtravel/branches{/branch}","tags_url":"https://api.github.com/repos/Victoria91/ngtravel/tags","blobs_url":"https://api.github.com/repos/Victoria91/ngtravel/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Victoria91/ngtravel/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Victoria91/ngtravel/git/refs{/sha}","trees_url":"https://api.github.com/repos/Victoria91/ngtravel/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Victoria91/ngtravel/statuses/{sha}","languages_url":"https://api.github.com/repos/Victoria91/ngtravel/languages","stargazers_url":"https://api.github.com/repos/Victoria91/ngtravel/stargazers","contributors_url":"https://api.github.com/repos/Victoria91/ngtravel/contributors","subscribers_url":"https://api.github.com/repos/Victoria91/ngtravel/subscribers","subscription_url":"https://api.github.com/repos/Victoria91/ngtravel/subscription","commits_url":"https://api.github.com/repos/Victoria91/ngtravel/commits{/sha}","git_commits_url":"https://api.github.com/repos/Victoria91/ngtravel/git/commits{/sha}","comments_url":"https://api.github.com/repos/Victoria91/ngtravel/comments{/number}","issue_comment_url":"https://api.github.com/repos/Victoria91/ngtravel/issues/comments{/number}","contents_url":"https://api.github.com/repos/Victoria91/ngtravel/contents/{+path}","compare_url":"https://api.github.com/repos/Victoria91/ngtravel/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Victoria91/ngtravel/merges","archive_url":"https://api.github.com/repos/Victoria91/ngtravel/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Victoria91/ngtravel/downloads","issues_url":"https://api.github.com/repos/Victoria91/ngtravel/issues{/number}","pulls_url":"https://api.github.com/repos/Victoria91/ngtravel/pulls{/number}","milestones_url":"https://api.github.com/repos/Victoria91/ngtravel/milestones{/number}","notifications_url":"https://api.github.com/repos/Victoria91/ngtravel/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Victoria91/ngtravel/labels{/name}","releases_url":"https://api.github.com/repos/Victoria91/ngtravel/releases{/id}","created_at":"2015-10-17T11:34:25Z","updated_at":"2015-11-17T06:32:22Z","pushed_at":"2015-11-30T19:02:02Z","git_url":"git://github.com/Victoria91/ngtravel.git","ssh_url":"git@github.com:Victoria91/ngtravel.git","clone_url":"https://github.com/Victoria91/ngtravel.git","svn_url":"https://github.com/Victoria91/ngtravel","homepage":null,"size":382,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Victoria91/ngtravel/pulls/5"},"html":{"href":"https://github.com/Victoria91/ngtravel/pull/5"},"issue":{"href":"https://api.github.com/repos/Victoria91/ngtravel/issues/5"},"comments":{"href":"https://api.github.com/repos/Victoria91/ngtravel/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/Victoria91/ngtravel/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/Victoria91/ngtravel/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Victoria91/ngtravel/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/Victoria91/ngtravel/statuses/edc87cab5aa9572061417c53eb1f7746fc36e00d"}}}}