{"action":"created","comment":{"url":"https://api.github.com/repos/noggalito/porttare-frontend/pulls/comments/98010088","pull_request_review_id":18638175,"id":98010088,"diff_hunk":"@@ -184,6 +184,16 @@ function appRoutes($stateProvider) {\n     url: '/provider',\n     abstract: true,\n     resolve: {\n+      provider: function($auth,$state,APP,$ionicLoading){\n+        $auth.validateUser().then(function userAuthorized(user) {\n+          if (!user.provider_profile && !user.courier_profile){ //jshint ignore:line\n+            return;\n+          }\n+          if(!user.provider_profile){ //jshint ignore:line\n+            $state.go(APP.successState).then($ionicLoading.hide);","path":"app/scripts/config/routes/app-routes.js","position":10,"original_position":10,"commit_id":"032aa1383c6f18630f5f707aca225591087ccc8b","original_commit_id":"032aa1383c6f18630f5f707aca225591087ccc8b","user":{"login":"fabricioflores","id":3495122,"avatar_url":"https://avatars.githubusercontent.com/u/3495122?v=3","gravatar_id":"","url":"https://api.github.com/users/fabricioflores","html_url":"https://github.com/fabricioflores","followers_url":"https://api.github.com/users/fabricioflores/followers","following_url":"https://api.github.com/users/fabricioflores/following{/other_user}","gists_url":"https://api.github.com/users/fabricioflores/gists{/gist_id}","starred_url":"https://api.github.com/users/fabricioflores/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabricioflores/subscriptions","organizations_url":"https://api.github.com/users/fabricioflores/orgs","repos_url":"https://api.github.com/users/fabricioflores/repos","events_url":"https://api.github.com/users/fabricioflores/events{/privacy}","received_events_url":"https://api.github.com/users/fabricioflores/received_events","type":"User","site_admin":false},"body":"@macool es xq la promesa del $auth si se cumple... por ende es un cambio desde un estado `success`, pero al redireccionarlo desde aquí se queda el $ionicLoading... si está bien esto... ","created_at":"2017-01-26T14:58:59Z","updated_at":"2017-01-26T14:58:59Z","html_url":"https://github.com/noggalito/porttare-frontend/pull/239#discussion_r98010088","pull_request_url":"https://api.github.com/repos/noggalito/porttare-frontend/pulls/239","_links":{"self":{"href":"https://api.github.com/repos/noggalito/porttare-frontend/pulls/comments/98010088"},"html":{"href":"https://github.com/noggalito/porttare-frontend/pull/239#discussion_r98010088"},"pull_request":{"href":"https://api.github.com/repos/noggalito/porttare-frontend/pulls/239"}}},"pull_request":{"url":"https://api.github.com/repos/noggalito/porttare-frontend/pulls/239","id":103001875,"html_url":"https://github.com/noggalito/porttare-frontend/pull/239","diff_url":"https://github.com/noggalito/porttare-frontend/pull/239.diff","patch_url":"https://github.com/noggalito/porttare-frontend/pull/239.patch","issue_url":"https://api.github.com/repos/noggalito/porttare-frontend/issues/239","number":239,"state":"open","locked":false,"title":"#221: restricción de perfiles del usuario ","user":{"login":"carito22","id":13562862,"avatar_url":"https://avatars.githubusercontent.com/u/13562862?v=3","gravatar_id":"","url":"https://api.github.com/users/carito22","html_url":"https://github.com/carito22","followers_url":"https://api.github.com/users/carito22/followers","following_url":"https://api.github.com/users/carito22/following{/other_user}","gists_url":"https://api.github.com/users/carito22/gists{/gist_id}","starred_url":"https://api.github.com/users/carito22/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carito22/subscriptions","organizations_url":"https://api.github.com/users/carito22/orgs","repos_url":"https://api.github.com/users/carito22/repos","events_url":"https://api.github.com/users/carito22/events{/privacy}","received_events_url":"https://api.github.com/users/carito22/received_events","type":"User","site_admin":false},"body":"tuve conflictos al hacer merge , elimine la otra rama , esta tiene todos los cambios ","created_at":"2017-01-24T20:56:55Z","updated_at":"2017-01-26T14:58:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"796f54de842df0432b164158c0e3e8597651ee54","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/noggalito/porttare-frontend/pulls/239/commits","review_comments_url":"https://api.github.com/repos/noggalito/porttare-frontend/pulls/239/comments","review_comment_url":"https://api.github.com/repos/noggalito/porttare-frontend/pulls/comments{/number}","comments_url":"https://api.github.com/repos/noggalito/porttare-frontend/issues/239/comments","statuses_url":"https://api.github.com/repos/noggalito/porttare-frontend/statuses/032aa1383c6f18630f5f707aca225591087ccc8b","head":{"label":"noggalito:restricciones","ref":"restricciones","sha":"032aa1383c6f18630f5f707aca225591087ccc8b","user":{"login":"noggalito","id":13799443,"avatar_url":"https://avatars.githubusercontent.com/u/13799443?v=3","gravatar_id":"","url":"https://api.github.com/users/noggalito","html_url":"https://github.com/noggalito","followers_url":"https://api.github.com/users/noggalito/followers","following_url":"https://api.github.com/users/noggalito/following{/other_user}","gists_url":"https://api.github.com/users/noggalito/gists{/gist_id}","starred_url":"https://api.github.com/users/noggalito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/noggalito/subscriptions","organizations_url":"https://api.github.com/users/noggalito/orgs","repos_url":"https://api.github.com/users/noggalito/repos","events_url":"https://api.github.com/users/noggalito/events{/privacy}","received_events_url":"https://api.github.com/users/noggalito/received_events","type":"Organization","site_admin":false},"repo":{"id":59975703,"name":"porttare-frontend","full_name":"noggalito/porttare-frontend","owner":{"login":"noggalito","id":13799443,"avatar_url":"https://avatars.githubusercontent.com/u/13799443?v=3","gravatar_id":"","url":"https://api.github.com/users/noggalito","html_url":"https://github.com/noggalito","followers_url":"https://api.github.com/users/noggalito/followers","following_url":"https://api.github.com/users/noggalito/following{/other_user}","gists_url":"https://api.github.com/users/noggalito/gists{/gist_id}","starred_url":"https://api.github.com/users/noggalito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/noggalito/subscriptions","organizations_url":"https://api.github.com/users/noggalito/orgs","repos_url":"https://api.github.com/users/noggalito/repos","events_url":"https://api.github.com/users/noggalito/events{/privacy}","received_events_url":"https://api.github.com/users/noggalito/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/noggalito/porttare-frontend","description":null,"fork":false,"url":"https://api.github.com/repos/noggalito/porttare-frontend","forks_url":"https://api.github.com/repos/noggalito/porttare-frontend/forks","keys_url":"https://api.github.com/repos/noggalito/porttare-frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/noggalito/porttare-frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/noggalito/porttare-frontend/teams","hooks_url":"https://api.github.com/repos/noggalito/porttare-frontend/hooks","issue_events_url":"https://api.github.com/repos/noggalito/porttare-frontend/issues/events{/number}","events_url":"https://api.github.com/repos/noggalito/porttare-frontend/events","assignees_url":"https://api.github.com/repos/noggalito/porttare-frontend/assignees{/user}","branches_url":"https://api.github.com/repos/noggalito/porttare-frontend/branches{/branch}","tags_url":"https://api.github.com/repos/noggalito/porttare-frontend/tags","blobs_url":"https://api.github.com/repos/noggalito/porttare-frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/noggalito/porttare-frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/noggalito/porttare-frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/noggalito/porttare-frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/noggalito/porttare-frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/noggalito/porttare-frontend/languages","stargazers_url":"https://api.github.com/repos/noggalito/porttare-frontend/stargazers","contributors_url":"https://api.github.com/repos/noggalito/porttare-frontend/contributors","subscribers_url":"https://api.github.com/repos/noggalito/porttare-frontend/subscribers","subscription_url":"https://api.github.com/repos/noggalito/porttare-frontend/subscription","commits_url":"https://api.github.com/repos/noggalito/porttare-frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/noggalito/porttare-frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/noggalito/porttare-frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/noggalito/porttare-frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/noggalito/porttare-frontend/contents/{+path}","compare_url":"https://api.github.com/repos/noggalito/porttare-frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/noggalito/porttare-frontend/merges","archive_url":"https://api.github.com/repos/noggalito/porttare-frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/noggalito/porttare-frontend/downloads","issues_url":"https://api.github.com/repos/noggalito/porttare-frontend/issues{/number}","pulls_url":"https://api.github.com/repos/noggalito/porttare-frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/noggalito/porttare-frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/noggalito/porttare-frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/noggalito/porttare-frontend/labels{/name}","releases_url":"https://api.github.com/repos/noggalito/porttare-frontend/releases{/id}","deployments_url":"https://api.github.com/repos/noggalito/porttare-frontend/deployments","created_at":"2016-05-30T02:45:09Z","updated_at":"2016-10-27T11:12:35Z","pushed_at":"2017-01-26T14:53:21Z","git_url":"git://github.com/noggalito/porttare-frontend.git","ssh_url":"git@github.com:noggalito/porttare-frontend.git","clone_url":"https://github.com/noggalito/porttare-frontend.git","svn_url":"https://github.com/noggalito/porttare-frontend","homepage":"https://porttare-frontend.herokuapp.com/","size":3467,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":7,"forks":1,"open_issues":7,"watchers":0,"default_branch":"master"}},"base":{"label":"noggalito:master","ref":"master","sha":"e46de1a5732d021693e9b953067d80ca4a5e5df8","user":{"login":"noggalito","id":13799443,"avatar_url":"https://avatars.githubusercontent.com/u/13799443?v=3","gravatar_id":"","url":"https://api.github.com/users/noggalito","html_url":"https://github.com/noggalito","followers_url":"https://api.github.com/users/noggalito/followers","following_url":"https://api.github.com/users/noggalito/following{/other_user}","gists_url":"https://api.github.com/users/noggalito/gists{/gist_id}","starred_url":"https://api.github.com/users/noggalito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/noggalito/subscriptions","organizations_url":"https://api.github.com/users/noggalito/orgs","repos_url":"https://api.github.com/users/noggalito/repos","events_url":"https://api.github.com/users/noggalito/events{/privacy}","received_events_url":"https://api.github.com/users/noggalito/received_events","type":"Organization","site_admin":false},"repo":{"id":59975703,"name":"porttare-frontend","full_name":"noggalito/porttare-frontend","owner":{"login":"noggalito","id":13799443,"avatar_url":"https://avatars.githubusercontent.com/u/13799443?v=3","gravatar_id":"","url":"https://api.github.com/users/noggalito","html_url":"https://github.com/noggalito","followers_url":"https://api.github.com/users/noggalito/followers","following_url":"https://api.github.com/users/noggalito/following{/other_user}","gists_url":"https://api.github.com/users/noggalito/gists{/gist_id}","starred_url":"https://api.github.com/users/noggalito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/noggalito/subscriptions","organizations_url":"https://api.github.com/users/noggalito/orgs","repos_url":"https://api.github.com/users/noggalito/repos","events_url":"https://api.github.com/users/noggalito/events{/privacy}","received_events_url":"https://api.github.com/users/noggalito/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/noggalito/porttare-frontend","description":null,"fork":false,"url":"https://api.github.com/repos/noggalito/porttare-frontend","forks_url":"https://api.github.com/repos/noggalito/porttare-frontend/forks","keys_url":"https://api.github.com/repos/noggalito/porttare-frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/noggalito/porttare-frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/noggalito/porttare-frontend/teams","hooks_url":"https://api.github.com/repos/noggalito/porttare-frontend/hooks","issue_events_url":"https://api.github.com/repos/noggalito/porttare-frontend/issues/events{/number}","events_url":"https://api.github.com/repos/noggalito/porttare-frontend/events","assignees_url":"https://api.github.com/repos/noggalito/porttare-frontend/assignees{/user}","branches_url":"https://api.github.com/repos/noggalito/porttare-frontend/branches{/branch}","tags_url":"https://api.github.com/repos/noggalito/porttare-frontend/tags","blobs_url":"https://api.github.com/repos/noggalito/porttare-frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/noggalito/porttare-frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/noggalito/porttare-frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/noggalito/porttare-frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/noggalito/porttare-frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/noggalito/porttare-frontend/languages","stargazers_url":"https://api.github.com/repos/noggalito/porttare-frontend/stargazers","contributors_url":"https://api.github.com/repos/noggalito/porttare-frontend/contributors","subscribers_url":"https://api.github.com/repos/noggalito/porttare-frontend/subscribers","subscription_url":"https://api.github.com/repos/noggalito/porttare-frontend/subscription","commits_url":"https://api.github.com/repos/noggalito/porttare-frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/noggalito/porttare-frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/noggalito/porttare-frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/noggalito/porttare-frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/noggalito/porttare-frontend/contents/{+path}","compare_url":"https://api.github.com/repos/noggalito/porttare-frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/noggalito/porttare-frontend/merges","archive_url":"https://api.github.com/repos/noggalito/porttare-frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/noggalito/porttare-frontend/downloads","issues_url":"https://api.github.com/repos/noggalito/porttare-frontend/issues{/number}","pulls_url":"https://api.github.com/repos/noggalito/porttare-frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/noggalito/porttare-frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/noggalito/porttare-frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/noggalito/porttare-frontend/labels{/name}","releases_url":"https://api.github.com/repos/noggalito/porttare-frontend/releases{/id}","deployments_url":"https://api.github.com/repos/noggalito/porttare-frontend/deployments","created_at":"2016-05-30T02:45:09Z","updated_at":"2016-10-27T11:12:35Z","pushed_at":"2017-01-26T14:53:21Z","git_url":"git://github.com/noggalito/porttare-frontend.git","ssh_url":"git@github.com:noggalito/porttare-frontend.git","clone_url":"https://github.com/noggalito/porttare-frontend.git","svn_url":"https://github.com/noggalito/porttare-frontend","homepage":"https://porttare-frontend.herokuapp.com/","size":3467,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":7,"forks":1,"open_issues":7,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/noggalito/porttare-frontend/pulls/239"},"html":{"href":"https://github.com/noggalito/porttare-frontend/pull/239"},"issue":{"href":"https://api.github.com/repos/noggalito/porttare-frontend/issues/239"},"comments":{"href":"https://api.github.com/repos/noggalito/porttare-frontend/issues/239/comments"},"review_comments":{"href":"https://api.github.com/repos/noggalito/porttare-frontend/pulls/239/comments"},"review_comment":{"href":"https://api.github.com/repos/noggalito/porttare-frontend/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/noggalito/porttare-frontend/pulls/239/commits"},"statuses":{"href":"https://api.github.com/repos/noggalito/porttare-frontend/statuses/032aa1383c6f18630f5f707aca225591087ccc8b"}}}}
{"actor":{"display_login":"fabricioflores"}}