{"action":"created","comment":{"url":"https://api.github.com/repos/eclipsesource/jsonforms/pulls/comments/43624324","id":43624324,"diff_hunk":"@@ -0,0 +1,299 @@\n+angular.module('makeithappen').controller('PlaceholderController', ['$scope', '$resource', '$routeParams', function($scope, $resource, $routeParams) {\n+\n+    //\n+    // Posts --\n+    //\n+\n+    $scope.postsSchema = {\n+        \"type\": \"object\",\n+        \"definitions\": {\n+            \"post\": {\n+                \"type\": \"object\",\n+                \"properties\": {\n+                    \"userId\": {\"type\": \"number\"},\n+                    \"id\": {\"type\": \"string\"},\n+                    \"title\": {\"type\": \"string\"},\n+                    \"body\": {\"type\": \"string\"}\n+                }\n+            }\n+        },\n+        \"properties\": {\n+            \"posts\": {\n+                \"type\": \"array\",\n+                \"items\": {\n+                    \"$ref\": \"#/definitions/post\"\n+                }\n+            },\n+            \"comments\": {\n+\n+            }\n+        }\n+    };\n+\n+    $scope.postsSchema = {\n+        \"type\": \"array\",\n+        \"items\": {\n+            \"type\": \"object\",\n+            \"properties\": {\n+                \"userId\": { \"type\": \"number\" },\n+                \"id\":     { \"type\": \"string\" },\n+                \"title\":  { \"type\": \"string\" },\n+                \"body\":   { \"type\": \"string\" }\n+            }\n+        }\n+    };\n+\n+    $scope.postSchema = $scope.postsSchema.items;\n+\n+    $scope.postsUiSchema = {\n+        \"type\": \"Control\",\n+        \"scope\": { \"$ref\": \"#\" },\n+        \"columns\": [\n+            {\n+                \"label\": \"Title\",\n+                \"scope\": {\n+                    \"$ref\": \"#/items/properties/title\"\n+                }\n+            },\n+            {\n+                \"label\": \"User\",\n+                \"scope\": {\n+                    \"$ref\": \"#/items/properties/userId\"\n+                },\n+                \"href\": {\n+                    \"url\": \"/placeholder-users\"\n+                }\n+            }\n+        ]\n+    };\n+\n+    //\n+    // Users --\n+    //\n+\n+    $scope.userUiSchema = {\n+        \"type\": \"VerticalLayout\",\n+        \"elements\": [{\n+            \"type\": \"Control\",\n+            \"scope\": { \"$ref\": \"#/properties/name\" }\n+        }]\n+    };\n+\n+    $scope.usersUiSchema = {\n+        \"type\": \"Control\",\n+        \"scope\": { \"$ref\": \"#\" },\n+        \"columns\": [\n+            {\n+                \"label\": \"Name\",\n+                \"scope\": {\n+                    \"$ref\": \"#/items/properties/name\"\n+                }\n+            },\n+            {\n+                \"label\": \"Username\",\n+                \"scope\": {\n+                    \"$ref\": \"#/items/properties/username\"\n+                }\n+            },\n+            {\n+                \"label\": \"Email\",\n+                \"scope\": {\n+                    \"$ref\": \"#/items/properties/email\"\n+                },\n+                \"href\": {\n+                    url: \"/placeholder-users\",\n+                    scope: {\n+                        \"$ref\": '/items/properties/id'\n+                    }\n+                }\n+            }\n+        ]\n+    };\n+\n+    $scope.usersSchema = {\n+        \"type\": \"array\",\n+        \"items\": {\n+            \"type\": \"object\",\n+            \"properties\": {\n+                \"id\":       {\"type\": \"number\"},\n+                \"name\":     {\"type\": \"string\"},\n+                \"username\": {\"type\": \"string\"},\n+                \"email\":    {\"type\": \"string\"}\n+            }\n+        }\n+    };\n+\n+    $scope.userSchema = $scope.usersSchema.items;\n+\n+    //\n+    // Comments --\n+    //\n+    $scope.commentUiSchema = {\n+        \"type\": \"VerticalLayout\",\n+        \"elements\": [\n+            {\n+                \"type\": \"Control\",\n+                \"scope\": { \"$ref\": \"#/properties/email\" }\n+            },\n+            {\n+                \"type\": \"Control\",\n+                \"scope\": { \"$ref\": \"#/properties/body\" }\n+            },\n+            {\n+                \"type\": \"ReferenceControl\",\n+                \"scope\": { \"$ref\": \"#/properties/postId\" },\n+                \"label\": \"Navigate to \",\n+                \"href\": {\n+                    \"url\": \"/placeholder-users\",\n+                    \"label\": \"Post\"","path":"app/js/PlaceholderController.js","position":148,"original_position":148,"commit_id":"cfc0d0bdf508a90ec72547669a3cb946f61ca269","original_commit_id":"cfc0d0bdf508a90ec72547669a3cb946f61ca269","user":{"login":"sdirix","id":8998368,"avatar_url":"https://avatars.githubusercontent.com/u/8998368?v=3","gravatar_id":"","url":"https://api.github.com/users/sdirix","html_url":"https://github.com/sdirix","followers_url":"https://api.github.com/users/sdirix/followers","following_url":"https://api.github.com/users/sdirix/following{/other_user}","gists_url":"https://api.github.com/users/sdirix/gists{/gist_id}","starred_url":"https://api.github.com/users/sdirix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sdirix/subscriptions","organizations_url":"https://api.github.com/users/sdirix/orgs","repos_url":"https://api.github.com/users/sdirix/repos","events_url":"https://api.github.com/users/sdirix/events{/privacy}","received_events_url":"https://api.github.com/users/sdirix/received_events","type":"User","site_admin":false},"body":"Shouldn't this be \"User\" or \"Poster\" ?","created_at":"2015-11-02T12:43:10Z","updated_at":"2015-11-02T12:43:10Z","html_url":"https://github.com/eclipsesource/jsonforms/pull/101#discussion_r43624324","pull_request_url":"https://api.github.com/repos/eclipsesource/jsonforms/pulls/101","_links":{"self":{"href":"https://api.github.com/repos/eclipsesource/jsonforms/pulls/comments/43624324"},"html":{"href":"https://github.com/eclipsesource/jsonforms/pull/101#discussion_r43624324"},"pull_request":{"href":"https://api.github.com/repos/eclipsesource/jsonforms/pulls/101"}}},"pull_request":{"url":"https://api.github.com/repos/eclipsesource/jsonforms/pulls/101","id":47669741,"html_url":"https://github.com/eclipsesource/jsonforms/pull/101","diff_url":"https://github.com/eclipsesource/jsonforms/pull/101.diff","patch_url":"https://github.com/eclipsesource/jsonforms/pull/101.patch","issue_url":"https://api.github.com/repos/eclipsesource/jsonforms/issues/101","number":101,"state":"open","locked":false,"title":"First iteration of reference control","user":{"login":"edgarmueller","id":711092,"avatar_url":"https://avatars.githubusercontent.com/u/711092?v=3","gravatar_id":"","url":"https://api.github.com/users/edgarmueller","html_url":"https://github.com/edgarmueller","followers_url":"https://api.github.com/users/edgarmueller/followers","following_url":"https://api.github.com/users/edgarmueller/following{/other_user}","gists_url":"https://api.github.com/users/edgarmueller/gists{/gist_id}","starred_url":"https://api.github.com/users/edgarmueller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edgarmueller/subscriptions","organizations_url":"https://api.github.com/users/edgarmueller/orgs","repos_url":"https://api.github.com/users/edgarmueller/repos","events_url":"https://api.github.com/users/edgarmueller/events{/privacy}","received_events_url":"https://api.github.com/users/edgarmueller/received_events","type":"User","site_admin":false},"body":"This PR features a design for a references, which come in two flavors:\r\n\r\n- as a dedicated 'ReferenceControl' which displays a href \r\n- as a column that displays a link as a cellTemplate\r\n\r\nIn both cases the reference can be specified in the UI schema via the `href` keyword. This keyword expects a value as a object which may have the following properties:\r\n\r\n- `url` (mandatory): specifies the base view URL the reference points\r\n- `scope` (optional): If a reference features a unique segment that differs from the currently bound property, the `scope` property on a `href` object allows to bind against another property: e.g. suppose we have a User Table containing different users and users are uniquely identified by integer IDs. Further, we want a column that displays a single user's name and that takes us to the respective user, once clicked. In this case, we would need to specify a `scope` property pointing to the `id` property of a user, since we can not use the name of a user to uniquely identify him or her.\r\n- `label`: If the shown text for a reference should differ from the one bound by the control's scope, we can specify an other text via the `label` property.\r\n\r\nThis PR also extends the demo to display three additional kinds of entities. The demo contains quite a lot of boilerplate and is subject to later changes.","created_at":"2015-10-14T14:52:58Z","updated_at":"2015-11-02T12:43:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"918da9a1ceaa91b2ab1af0b350c44053eb3628b7","assignee":{"login":"sdirix","id":8998368,"avatar_url":"https://avatars.githubusercontent.com/u/8998368?v=3","gravatar_id":"","url":"https://api.github.com/users/sdirix","html_url":"https://github.com/sdirix","followers_url":"https://api.github.com/users/sdirix/followers","following_url":"https://api.github.com/users/sdirix/following{/other_user}","gists_url":"https://api.github.com/users/sdirix/gists{/gist_id}","starred_url":"https://api.github.com/users/sdirix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sdirix/subscriptions","organizations_url":"https://api.github.com/users/sdirix/orgs","repos_url":"https://api.github.com/users/sdirix/repos","events_url":"https://api.github.com/users/sdirix/events{/privacy}","received_events_url":"https://api.github.com/users/sdirix/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/eclipsesource/jsonforms/pulls/101/commits","review_comments_url":"https://api.github.com/repos/eclipsesource/jsonforms/pulls/101/comments","review_comment_url":"https://api.github.com/repos/eclipsesource/jsonforms/pulls/comments{/number}","comments_url":"https://api.github.com/repos/eclipsesource/jsonforms/issues/101/comments","statuses_url":"https://api.github.com/repos/eclipsesource/jsonforms/statuses/cfc0d0bdf508a90ec72547669a3cb946f61ca269","head":{"label":"edgarmueller:master","ref":"master","sha":"cfc0d0bdf508a90ec72547669a3cb946f61ca269","user":{"login":"edgarmueller","id":711092,"avatar_url":"https://avatars.githubusercontent.com/u/711092?v=3","gravatar_id":"","url":"https://api.github.com/users/edgarmueller","html_url":"https://github.com/edgarmueller","followers_url":"https://api.github.com/users/edgarmueller/followers","following_url":"https://api.github.com/users/edgarmueller/following{/other_user}","gists_url":"https://api.github.com/users/edgarmueller/gists{/gist_id}","starred_url":"https://api.github.com/users/edgarmueller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edgarmueller/subscriptions","organizations_url":"https://api.github.com/users/edgarmueller/orgs","repos_url":"https://api.github.com/users/edgarmueller/repos","events_url":"https://api.github.com/users/edgarmueller/events{/privacy}","received_events_url":"https://api.github.com/users/edgarmueller/received_events","type":"User","site_admin":false},"repo":{"id":31428304,"name":"jsonforms","full_name":"edgarmueller/jsonforms","owner":{"login":"edgarmueller","id":711092,"avatar_url":"https://avatars.githubusercontent.com/u/711092?v=3","gravatar_id":"","url":"https://api.github.com/users/edgarmueller","html_url":"https://github.com/edgarmueller","followers_url":"https://api.github.com/users/edgarmueller/followers","following_url":"https://api.github.com/users/edgarmueller/following{/other_user}","gists_url":"https://api.github.com/users/edgarmueller/gists{/gist_id}","starred_url":"https://api.github.com/users/edgarmueller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edgarmueller/subscriptions","organizations_url":"https://api.github.com/users/edgarmueller/orgs","repos_url":"https://api.github.com/users/edgarmueller/repos","events_url":"https://api.github.com/users/edgarmueller/events{/privacy}","received_events_url":"https://api.github.com/users/edgarmueller/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/edgarmueller/jsonforms","description":"AngularJS-based forms for JSON data.","fork":true,"url":"https://api.github.com/repos/edgarmueller/jsonforms","forks_url":"https://api.github.com/repos/edgarmueller/jsonforms/forks","keys_url":"https://api.github.com/repos/edgarmueller/jsonforms/keys{/key_id}","collaborators_url":"https://api.github.com/repos/edgarmueller/jsonforms/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/edgarmueller/jsonforms/teams","hooks_url":"https://api.github.com/repos/edgarmueller/jsonforms/hooks","issue_events_url":"https://api.github.com/repos/edgarmueller/jsonforms/issues/events{/number}","events_url":"https://api.github.com/repos/edgarmueller/jsonforms/events","assignees_url":"https://api.github.com/repos/edgarmueller/jsonforms/assignees{/user}","branches_url":"https://api.github.com/repos/edgarmueller/jsonforms/branches{/branch}","tags_url":"https://api.github.com/repos/edgarmueller/jsonforms/tags","blobs_url":"https://api.github.com/repos/edgarmueller/jsonforms/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/edgarmueller/jsonforms/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/edgarmueller/jsonforms/git/refs{/sha}","trees_url":"https://api.github.com/repos/edgarmueller/jsonforms/git/trees{/sha}","statuses_url":"https://api.github.com/repos/edgarmueller/jsonforms/statuses/{sha}","languages_url":"https://api.github.com/repos/edgarmueller/jsonforms/languages","stargazers_url":"https://api.github.com/repos/edgarmueller/jsonforms/stargazers","contributors_url":"https://api.github.com/repos/edgarmueller/jsonforms/contributors","subscribers_url":"https://api.github.com/repos/edgarmueller/jsonforms/subscribers","subscription_url":"https://api.github.com/repos/edgarmueller/jsonforms/subscription","commits_url":"https://api.github.com/repos/edgarmueller/jsonforms/commits{/sha}","git_commits_url":"https://api.github.com/repos/edgarmueller/jsonforms/git/commits{/sha}","comments_url":"https://api.github.com/repos/edgarmueller/jsonforms/comments{/number}","issue_comment_url":"https://api.github.com/repos/edgarmueller/jsonforms/issues/comments{/number}","contents_url":"https://api.github.com/repos/edgarmueller/jsonforms/contents/{+path}","compare_url":"https://api.github.com/repos/edgarmueller/jsonforms/compare/{base}...{head}","merges_url":"https://api.github.com/repos/edgarmueller/jsonforms/merges","archive_url":"https://api.github.com/repos/edgarmueller/jsonforms/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/edgarmueller/jsonforms/downloads","issues_url":"https://api.github.com/repos/edgarmueller/jsonforms/issues{/number}","pulls_url":"https://api.github.com/repos/edgarmueller/jsonforms/pulls{/number}","milestones_url":"https://api.github.com/repos/edgarmueller/jsonforms/milestones{/number}","notifications_url":"https://api.github.com/repos/edgarmueller/jsonforms/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/edgarmueller/jsonforms/labels{/name}","releases_url":"https://api.github.com/repos/edgarmueller/jsonforms/releases{/id}","created_at":"2015-02-27T16:30:18Z","updated_at":"2015-09-17T14:14:46Z","pushed_at":"2015-11-02T09:29:44Z","git_url":"git://github.com/edgarmueller/jsonforms.git","ssh_url":"git@github.com:edgarmueller/jsonforms.git","clone_url":"https://github.com/edgarmueller/jsonforms.git","svn_url":"https://github.com/edgarmueller/jsonforms","homepage":null,"size":24511,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","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":"eclipsesource:master","ref":"master","sha":"d176d51c63563209ce26024699a9223297465fb7","user":{"login":"eclipsesource","id":525860,"avatar_url":"https://avatars.githubusercontent.com/u/525860?v=3","gravatar_id":"","url":"https://api.github.com/users/eclipsesource","html_url":"https://github.com/eclipsesource","followers_url":"https://api.github.com/users/eclipsesource/followers","following_url":"https://api.github.com/users/eclipsesource/following{/other_user}","gists_url":"https://api.github.com/users/eclipsesource/gists{/gist_id}","starred_url":"https://api.github.com/users/eclipsesource/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eclipsesource/subscriptions","organizations_url":"https://api.github.com/users/eclipsesource/orgs","repos_url":"https://api.github.com/users/eclipsesource/repos","events_url":"https://api.github.com/users/eclipsesource/events{/privacy}","received_events_url":"https://api.github.com/users/eclipsesource/received_events","type":"Organization","site_admin":false},"repo":{"id":30751591,"name":"jsonforms","full_name":"eclipsesource/jsonforms","owner":{"login":"eclipsesource","id":525860,"avatar_url":"https://avatars.githubusercontent.com/u/525860?v=3","gravatar_id":"","url":"https://api.github.com/users/eclipsesource","html_url":"https://github.com/eclipsesource","followers_url":"https://api.github.com/users/eclipsesource/followers","following_url":"https://api.github.com/users/eclipsesource/following{/other_user}","gists_url":"https://api.github.com/users/eclipsesource/gists{/gist_id}","starred_url":"https://api.github.com/users/eclipsesource/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eclipsesource/subscriptions","organizations_url":"https://api.github.com/users/eclipsesource/orgs","repos_url":"https://api.github.com/users/eclipsesource/repos","events_url":"https://api.github.com/users/eclipsesource/events{/privacy}","received_events_url":"https://api.github.com/users/eclipsesource/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/eclipsesource/jsonforms","description":"AngularJS-based forms for JSON data.","fork":false,"url":"https://api.github.com/repos/eclipsesource/jsonforms","forks_url":"https://api.github.com/repos/eclipsesource/jsonforms/forks","keys_url":"https://api.github.com/repos/eclipsesource/jsonforms/keys{/key_id}","collaborators_url":"https://api.github.com/repos/eclipsesource/jsonforms/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/eclipsesource/jsonforms/teams","hooks_url":"https://api.github.com/repos/eclipsesource/jsonforms/hooks","issue_events_url":"https://api.github.com/repos/eclipsesource/jsonforms/issues/events{/number}","events_url":"https://api.github.com/repos/eclipsesource/jsonforms/events","assignees_url":"https://api.github.com/repos/eclipsesource/jsonforms/assignees{/user}","branches_url":"https://api.github.com/repos/eclipsesource/jsonforms/branches{/branch}","tags_url":"https://api.github.com/repos/eclipsesource/jsonforms/tags","blobs_url":"https://api.github.com/repos/eclipsesource/jsonforms/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/eclipsesource/jsonforms/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/eclipsesource/jsonforms/git/refs{/sha}","trees_url":"https://api.github.com/repos/eclipsesource/jsonforms/git/trees{/sha}","statuses_url":"https://api.github.com/repos/eclipsesource/jsonforms/statuses/{sha}","languages_url":"https://api.github.com/repos/eclipsesource/jsonforms/languages","stargazers_url":"https://api.github.com/repos/eclipsesource/jsonforms/stargazers","contributors_url":"https://api.github.com/repos/eclipsesource/jsonforms/contributors","subscribers_url":"https://api.github.com/repos/eclipsesource/jsonforms/subscribers","subscription_url":"https://api.github.com/repos/eclipsesource/jsonforms/subscription","commits_url":"https://api.github.com/repos/eclipsesource/jsonforms/commits{/sha}","git_commits_url":"https://api.github.com/repos/eclipsesource/jsonforms/git/commits{/sha}","comments_url":"https://api.github.com/repos/eclipsesource/jsonforms/comments{/number}","issue_comment_url":"https://api.github.com/repos/eclipsesource/jsonforms/issues/comments{/number}","contents_url":"https://api.github.com/repos/eclipsesource/jsonforms/contents/{+path}","compare_url":"https://api.github.com/repos/eclipsesource/jsonforms/compare/{base}...{head}","merges_url":"https://api.github.com/repos/eclipsesource/jsonforms/merges","archive_url":"https://api.github.com/repos/eclipsesource/jsonforms/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/eclipsesource/jsonforms/downloads","issues_url":"https://api.github.com/repos/eclipsesource/jsonforms/issues{/number}","pulls_url":"https://api.github.com/repos/eclipsesource/jsonforms/pulls{/number}","milestones_url":"https://api.github.com/repos/eclipsesource/jsonforms/milestones{/number}","notifications_url":"https://api.github.com/repos/eclipsesource/jsonforms/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/eclipsesource/jsonforms/labels{/name}","releases_url":"https://api.github.com/repos/eclipsesource/jsonforms/releases{/id}","created_at":"2015-02-13T10:24:06Z","updated_at":"2015-10-28T12:06:55Z","pushed_at":"2015-11-02T09:29:44Z","git_url":"git://github.com/eclipsesource/jsonforms.git","ssh_url":"git@github.com:eclipsesource/jsonforms.git","clone_url":"https://github.com/eclipsesource/jsonforms.git","svn_url":"https://github.com/eclipsesource/jsonforms","homepage":null,"size":25604,"stargazers_count":6,"watchers_count":6,"language":"TypeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":10,"mirror_url":null,"open_issues_count":21,"forks":10,"open_issues":21,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/eclipsesource/jsonforms/pulls/101"},"html":{"href":"https://github.com/eclipsesource/jsonforms/pull/101"},"issue":{"href":"https://api.github.com/repos/eclipsesource/jsonforms/issues/101"},"comments":{"href":"https://api.github.com/repos/eclipsesource/jsonforms/issues/101/comments"},"review_comments":{"href":"https://api.github.com/repos/eclipsesource/jsonforms/pulls/101/comments"},"review_comment":{"href":"https://api.github.com/repos/eclipsesource/jsonforms/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/eclipsesource/jsonforms/pulls/101/commits"},"statuses":{"href":"https://api.github.com/repos/eclipsesource/jsonforms/statuses/cfc0d0bdf508a90ec72547669a3cb946f61ca269"}}}}