{"action":"created","comment":{"url":"https://api.github.com/repos/cloudstorm/cloudstorm/pulls/comments/135420242","pull_request_review_id":58830767,"id":135420242,"diff_hunk":"@@ -0,0 +1,43 @@\n+app = angular.module('cloudStorm.routeProvider', [])\n+\n+app.provider 'csRoute', [ '$stateProvider', ($stateProvider) ->\n+   \n+  @state \n+   \n+  @go = (type, params, options) ->\n+    @state.go(type, params, options)\n+ \n+  @transitionTo = (params) ->\n+    url  = \"\"\n+    for i in params\n+       url += \"/\" + i\n+    history.pushState(null, null, + window.location.pathname + '#' + url);\n+    \n+    ### Other solution\n+    @state.transitionTo(type, params, {\n+      location: true,\n+      inherit: true,\n+      relative: @state.$current,\n+      notify: false})\n+    ###\n+   \n+  @setState = (state) ->\n+    @state = state\n+    \n+  @addState = (config) ->\n+     $stateProvider.state(config)\n+     \n+  @$get = ->\n+    @\n+  \n+  return  \n+  \n+]\n+\n+app.service 'csRouteService', ['$state', ($state) -> \n+\n+  @go = (type, params) ->\n+    $state.go(type,params)\n+    \n+  @  \n+] ","path":"src/cs-route-provider/cs-route-provider.js.coffee","position":43,"original_position":43,"commit_id":"b371ae4645e5ed060788e16225357016c9bc3666","original_commit_id":"b371ae4645e5ed060788e16225357016c9bc3666","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars0.githubusercontent.com/u/6697940?v=4","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Line ends with trailing whitespace.","created_at":"2017-08-27T20:17:12Z","updated_at":"2017-08-27T20:17:13Z","html_url":"https://github.com/cloudstorm/cloudstorm/pull/83#discussion_r135420242","pull_request_url":"https://api.github.com/repos/cloudstorm/cloudstorm/pulls/83","_links":{"self":{"href":"https://api.github.com/repos/cloudstorm/cloudstorm/pulls/comments/135420242"},"html":{"href":"https://github.com/cloudstorm/cloudstorm/pull/83#discussion_r135420242"},"pull_request":{"href":"https://api.github.com/repos/cloudstorm/cloudstorm/pulls/83"}}},"pull_request":{"url":"https://api.github.com/repos/cloudstorm/cloudstorm/pulls/83","id":137846667,"html_url":"https://github.com/cloudstorm/cloudstorm/pull/83","diff_url":"https://github.com/cloudstorm/cloudstorm/pull/83.diff","patch_url":"https://github.com/cloudstorm/cloudstorm/pull/83.patch","issue_url":"https://api.github.com/repos/cloudstorm/cloudstorm/issues/83","number":83,"state":"open","locked":false,"title":"Deep linking","user":{"login":"kdaveed","id":7580884,"avatar_url":"https://avatars2.githubusercontent.com/u/7580884?v=4","gravatar_id":"","url":"https://api.github.com/users/kdaveed","html_url":"https://github.com/kdaveed","followers_url":"https://api.github.com/users/kdaveed/followers","following_url":"https://api.github.com/users/kdaveed/following{/other_user}","gists_url":"https://api.github.com/users/kdaveed/gists{/gist_id}","starred_url":"https://api.github.com/users/kdaveed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kdaveed/subscriptions","organizations_url":"https://api.github.com/users/kdaveed/orgs","repos_url":"https://api.github.com/users/kdaveed/repos","events_url":"https://api.github.com/users/kdaveed/events{/privacy}","received_events_url":"https://api.github.com/users/kdaveed/received_events","type":"User","site_admin":false},"body":"The pull request starts to solve issue #41. Not all of the addressed problems have been solved yet. The following images illustrate the current functionality.\r\n\r\n- The index page redirects us to the first resource's page:\r\n\r\n![screen shot 2017-08-27 at 22 01 55](https://user-images.githubusercontent.com/7580884/29753536-d1f065b8-8b73-11e7-8c4d-0adc8bbab49d.png)\r\n\r\n- The application can handle the /{resourceType}/{id} url pattern, and shows the edit window of the resource:\r\n\r\n![screen shot 2017-08-27 at 22 02 12](https://user-images.githubusercontent.com/7580884/29753538-dc0fdf6a-8b73-11e7-958b-14eb6d05c53e.png)\r\n\r\n- If the resource id does not exist we got an error message and the table is shown:\r\n\r\n![screen shot 2017-08-27 at 22 06 46](https://user-images.githubusercontent.com/7580884/29753553-1b5357d8-8b74-11e7-8ce9-0d1773bb4e5c.png)\r\n\r\n- The link 'Show' in each resource redirects us to profile page of an individual, which looks as follows:\r\n\r\n![screen shot 2017-08-27 at 22 02 24](https://user-images.githubusercontent.com/7580884/29753564-46344b42-8b74-11e7-849a-728c0c8d93cb.png)\r\n\r\n- The entries listed under the relations work as link. For example link to the profile page of a category:\r\n \r\n![screen shot 2017-08-27 at 22 02 36](https://user-images.githubusercontent.com/7580884/29753575-6cd1dc9c-8b74-11e7-851c-0d1e63a1108b.png)\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n","created_at":"2017-08-27T20:17:01Z","updated_at":"2017-08-27T20:17:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"60bde40906cb29391e18dae2232850dccee1f10c","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/cloudstorm/cloudstorm/pulls/83/commits","review_comments_url":"https://api.github.com/repos/cloudstorm/cloudstorm/pulls/83/comments","review_comment_url":"https://api.github.com/repos/cloudstorm/cloudstorm/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cloudstorm/cloudstorm/issues/83/comments","statuses_url":"https://api.github.com/repos/cloudstorm/cloudstorm/statuses/b371ae4645e5ed060788e16225357016c9bc3666","head":{"label":"kdaveed:deep_linking","ref":"deep_linking","sha":"b371ae4645e5ed060788e16225357016c9bc3666","user":{"login":"kdaveed","id":7580884,"avatar_url":"https://avatars2.githubusercontent.com/u/7580884?v=4","gravatar_id":"","url":"https://api.github.com/users/kdaveed","html_url":"https://github.com/kdaveed","followers_url":"https://api.github.com/users/kdaveed/followers","following_url":"https://api.github.com/users/kdaveed/following{/other_user}","gists_url":"https://api.github.com/users/kdaveed/gists{/gist_id}","starred_url":"https://api.github.com/users/kdaveed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kdaveed/subscriptions","organizations_url":"https://api.github.com/users/kdaveed/orgs","repos_url":"https://api.github.com/users/kdaveed/repos","events_url":"https://api.github.com/users/kdaveed/events{/privacy}","received_events_url":"https://api.github.com/users/kdaveed/received_events","type":"User","site_admin":false},"repo":{"id":100965199,"name":"cloudstorm","full_name":"kdaveed/cloudstorm","owner":{"login":"kdaveed","id":7580884,"avatar_url":"https://avatars2.githubusercontent.com/u/7580884?v=4","gravatar_id":"","url":"https://api.github.com/users/kdaveed","html_url":"https://github.com/kdaveed","followers_url":"https://api.github.com/users/kdaveed/followers","following_url":"https://api.github.com/users/kdaveed/following{/other_user}","gists_url":"https://api.github.com/users/kdaveed/gists{/gist_id}","starred_url":"https://api.github.com/users/kdaveed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kdaveed/subscriptions","organizations_url":"https://api.github.com/users/kdaveed/orgs","repos_url":"https://api.github.com/users/kdaveed/repos","events_url":"https://api.github.com/users/kdaveed/events{/privacy}","received_events_url":"https://api.github.com/users/kdaveed/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kdaveed/cloudstorm","description":"CloudStorm is an AngularJS library that automatically creates administration and data manipulation screens from database descriptors.","fork":true,"url":"https://api.github.com/repos/kdaveed/cloudstorm","forks_url":"https://api.github.com/repos/kdaveed/cloudstorm/forks","keys_url":"https://api.github.com/repos/kdaveed/cloudstorm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kdaveed/cloudstorm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kdaveed/cloudstorm/teams","hooks_url":"https://api.github.com/repos/kdaveed/cloudstorm/hooks","issue_events_url":"https://api.github.com/repos/kdaveed/cloudstorm/issues/events{/number}","events_url":"https://api.github.com/repos/kdaveed/cloudstorm/events","assignees_url":"https://api.github.com/repos/kdaveed/cloudstorm/assignees{/user}","branches_url":"https://api.github.com/repos/kdaveed/cloudstorm/branches{/branch}","tags_url":"https://api.github.com/repos/kdaveed/cloudstorm/tags","blobs_url":"https://api.github.com/repos/kdaveed/cloudstorm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kdaveed/cloudstorm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kdaveed/cloudstorm/git/refs{/sha}","trees_url":"https://api.github.com/repos/kdaveed/cloudstorm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kdaveed/cloudstorm/statuses/{sha}","languages_url":"https://api.github.com/repos/kdaveed/cloudstorm/languages","stargazers_url":"https://api.github.com/repos/kdaveed/cloudstorm/stargazers","contributors_url":"https://api.github.com/repos/kdaveed/cloudstorm/contributors","subscribers_url":"https://api.github.com/repos/kdaveed/cloudstorm/subscribers","subscription_url":"https://api.github.com/repos/kdaveed/cloudstorm/subscription","commits_url":"https://api.github.com/repos/kdaveed/cloudstorm/commits{/sha}","git_commits_url":"https://api.github.com/repos/kdaveed/cloudstorm/git/commits{/sha}","comments_url":"https://api.github.com/repos/kdaveed/cloudstorm/comments{/number}","issue_comment_url":"https://api.github.com/repos/kdaveed/cloudstorm/issues/comments{/number}","contents_url":"https://api.github.com/repos/kdaveed/cloudstorm/contents/{+path}","compare_url":"https://api.github.com/repos/kdaveed/cloudstorm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kdaveed/cloudstorm/merges","archive_url":"https://api.github.com/repos/kdaveed/cloudstorm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kdaveed/cloudstorm/downloads","issues_url":"https://api.github.com/repos/kdaveed/cloudstorm/issues{/number}","pulls_url":"https://api.github.com/repos/kdaveed/cloudstorm/pulls{/number}","milestones_url":"https://api.github.com/repos/kdaveed/cloudstorm/milestones{/number}","notifications_url":"https://api.github.com/repos/kdaveed/cloudstorm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kdaveed/cloudstorm/labels{/name}","releases_url":"https://api.github.com/repos/kdaveed/cloudstorm/releases{/id}","deployments_url":"https://api.github.com/repos/kdaveed/cloudstorm/deployments","created_at":"2017-08-21T15:15:48Z","updated_at":"2017-08-21T15:15:50Z","pushed_at":"2017-08-27T20:01:15Z","git_url":"git://github.com/kdaveed/cloudstorm.git","ssh_url":"git@github.com:kdaveed/cloudstorm.git","clone_url":"https://github.com/kdaveed/cloudstorm.git","svn_url":"https://github.com/kdaveed/cloudstorm","homepage":"http://cloudstorm.io","size":535,"stargazers_count":0,"watchers_count":0,"language":"CoffeeScript","has_issues":false,"has_projects":true,"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":"cloudstorm:master","ref":"master","sha":"8e0897c6c7ae3d6e4ef9cdfaed4a56cf9f04ac39","user":{"login":"cloudstorm","id":23357234,"avatar_url":"https://avatars0.githubusercontent.com/u/23357234?v=4","gravatar_id":"","url":"https://api.github.com/users/cloudstorm","html_url":"https://github.com/cloudstorm","followers_url":"https://api.github.com/users/cloudstorm/followers","following_url":"https://api.github.com/users/cloudstorm/following{/other_user}","gists_url":"https://api.github.com/users/cloudstorm/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudstorm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudstorm/subscriptions","organizations_url":"https://api.github.com/users/cloudstorm/orgs","repos_url":"https://api.github.com/users/cloudstorm/repos","events_url":"https://api.github.com/users/cloudstorm/events{/privacy}","received_events_url":"https://api.github.com/users/cloudstorm/received_events","type":"Organization","site_admin":false},"repo":{"id":61036104,"name":"cloudstorm","full_name":"cloudstorm/cloudstorm","owner":{"login":"cloudstorm","id":23357234,"avatar_url":"https://avatars0.githubusercontent.com/u/23357234?v=4","gravatar_id":"","url":"https://api.github.com/users/cloudstorm","html_url":"https://github.com/cloudstorm","followers_url":"https://api.github.com/users/cloudstorm/followers","following_url":"https://api.github.com/users/cloudstorm/following{/other_user}","gists_url":"https://api.github.com/users/cloudstorm/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudstorm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudstorm/subscriptions","organizations_url":"https://api.github.com/users/cloudstorm/orgs","repos_url":"https://api.github.com/users/cloudstorm/repos","events_url":"https://api.github.com/users/cloudstorm/events{/privacy}","received_events_url":"https://api.github.com/users/cloudstorm/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cloudstorm/cloudstorm","description":"CloudStorm is an AngularJS library that automatically creates administration and data manipulation screens from database descriptors.","fork":false,"url":"https://api.github.com/repos/cloudstorm/cloudstorm","forks_url":"https://api.github.com/repos/cloudstorm/cloudstorm/forks","keys_url":"https://api.github.com/repos/cloudstorm/cloudstorm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cloudstorm/cloudstorm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cloudstorm/cloudstorm/teams","hooks_url":"https://api.github.com/repos/cloudstorm/cloudstorm/hooks","issue_events_url":"https://api.github.com/repos/cloudstorm/cloudstorm/issues/events{/number}","events_url":"https://api.github.com/repos/cloudstorm/cloudstorm/events","assignees_url":"https://api.github.com/repos/cloudstorm/cloudstorm/assignees{/user}","branches_url":"https://api.github.com/repos/cloudstorm/cloudstorm/branches{/branch}","tags_url":"https://api.github.com/repos/cloudstorm/cloudstorm/tags","blobs_url":"https://api.github.com/repos/cloudstorm/cloudstorm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cloudstorm/cloudstorm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cloudstorm/cloudstorm/git/refs{/sha}","trees_url":"https://api.github.com/repos/cloudstorm/cloudstorm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cloudstorm/cloudstorm/statuses/{sha}","languages_url":"https://api.github.com/repos/cloudstorm/cloudstorm/languages","stargazers_url":"https://api.github.com/repos/cloudstorm/cloudstorm/stargazers","contributors_url":"https://api.github.com/repos/cloudstorm/cloudstorm/contributors","subscribers_url":"https://api.github.com/repos/cloudstorm/cloudstorm/subscribers","subscription_url":"https://api.github.com/repos/cloudstorm/cloudstorm/subscription","commits_url":"https://api.github.com/repos/cloudstorm/cloudstorm/commits{/sha}","git_commits_url":"https://api.github.com/repos/cloudstorm/cloudstorm/git/commits{/sha}","comments_url":"https://api.github.com/repos/cloudstorm/cloudstorm/comments{/number}","issue_comment_url":"https://api.github.com/repos/cloudstorm/cloudstorm/issues/comments{/number}","contents_url":"https://api.github.com/repos/cloudstorm/cloudstorm/contents/{+path}","compare_url":"https://api.github.com/repos/cloudstorm/cloudstorm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cloudstorm/cloudstorm/merges","archive_url":"https://api.github.com/repos/cloudstorm/cloudstorm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cloudstorm/cloudstorm/downloads","issues_url":"https://api.github.com/repos/cloudstorm/cloudstorm/issues{/number}","pulls_url":"https://api.github.com/repos/cloudstorm/cloudstorm/pulls{/number}","milestones_url":"https://api.github.com/repos/cloudstorm/cloudstorm/milestones{/number}","notifications_url":"https://api.github.com/repos/cloudstorm/cloudstorm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cloudstorm/cloudstorm/labels{/name}","releases_url":"https://api.github.com/repos/cloudstorm/cloudstorm/releases{/id}","deployments_url":"https://api.github.com/repos/cloudstorm/cloudstorm/deployments","created_at":"2016-06-13T12:53:14Z","updated_at":"2017-02-16T16:41:27Z","pushed_at":"2017-08-27T20:17:02Z","git_url":"git://github.com/cloudstorm/cloudstorm.git","ssh_url":"git@github.com:cloudstorm/cloudstorm.git","clone_url":"https://github.com/cloudstorm/cloudstorm.git","svn_url":"https://github.com/cloudstorm/cloudstorm","homepage":"http://cloudstorm.io","size":463,"stargazers_count":5,"watchers_count":5,"language":"CoffeeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":46,"forks":1,"open_issues":46,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cloudstorm/cloudstorm/pulls/83"},"html":{"href":"https://github.com/cloudstorm/cloudstorm/pull/83"},"issue":{"href":"https://api.github.com/repos/cloudstorm/cloudstorm/issues/83"},"comments":{"href":"https://api.github.com/repos/cloudstorm/cloudstorm/issues/83/comments"},"review_comments":{"href":"https://api.github.com/repos/cloudstorm/cloudstorm/pulls/83/comments"},"review_comment":{"href":"https://api.github.com/repos/cloudstorm/cloudstorm/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cloudstorm/cloudstorm/pulls/83/commits"},"statuses":{"href":"https://api.github.com/repos/cloudstorm/cloudstorm/statuses/b371ae4645e5ed060788e16225357016c9bc3666"}}}}
{"actor":{"display_login":"houndci-bot"}}