{"action":"created","comment":{"url":"https://api.github.com/repos/jonperrelle/Google_Graphs/pulls/comments/69134589","id":69134589,"diff_hunk":"@@ -10,13 +10,24 @@ app.config(function ($stateProvider) {\n     });\n });\n \n-app.controller('DatasetDetailsCtrl', function ($scope, $stateParams, NgTableParams, $localStorage) {\n-    $scope.dataset = $stateParams.dataset.resource || $localStorage.dataset;\n+app.controller('DatasetDetailsCtrl', function ($scope, $stateParams, Session, UserFactory, NgTableParams, $localStorage) {\n+\n+    $localStorage.datasetId = $stateParams.datasetId || $localStorage.datasetId;\n+    $scope.dataset = $stateParams.dataset || $localStorage.dataset;\n     $localStorage.dataset = $scope.dataset;\n     $scope.rows = $stateParams.rows || $localStorage.rows;\n     $localStorage.rows = $scope.rows;\n     $scope.columns = Object.keys($localStorage.rows[0]);\n     $scope.tableParams = new NgTableParams({}, {\n         dataset: $localStorage.rows\n     }); \n+\n+    if (Session.user) $scope.user = Session.user;\n+    $scope.addDataset = function(){\n+        var domain;\n+        if ($scope.dataset.metadata) domain = $scope.dataset.metadata.domain;\n+        UserFactory.addDataset($scope.user, $scope.dataset.resource, domain);\n+    };\n+\n+    //need $scope.removeDataset","path":"browser/js/one-dataset-details/one-dataset-details.js","position":25,"original_position":25,"commit_id":"94666e5ac41ab73b89889055b1bd20fd23e0c3d1","original_commit_id":"94666e5ac41ab73b89889055b1bd20fd23e0c3d1","user":{"login":"geoffbass","id":7143173,"avatar_url":"https://avatars.githubusercontent.com/u/7143173?v=3","gravatar_id":"","url":"https://api.github.com/users/geoffbass","html_url":"https://github.com/geoffbass","followers_url":"https://api.github.com/users/geoffbass/followers","following_url":"https://api.github.com/users/geoffbass/following{/other_user}","gists_url":"https://api.github.com/users/geoffbass/gists{/gist_id}","starred_url":"https://api.github.com/users/geoffbass/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geoffbass/subscriptions","organizations_url":"https://api.github.com/users/geoffbass/orgs","repos_url":"https://api.github.com/users/geoffbass/repos","events_url":"https://api.github.com/users/geoffbass/events{/privacy}","received_events_url":"https://api.github.com/users/geoffbass/received_events","type":"User","site_admin":false},"body":"something to implement later?","created_at":"2016-06-30T13:47:43Z","updated_at":"2016-06-30T13:47:43Z","html_url":"https://github.com/jonperrelle/Google_Graphs/pull/55#discussion_r69134589","pull_request_url":"https://api.github.com/repos/jonperrelle/Google_Graphs/pulls/55","_links":{"self":{"href":"https://api.github.com/repos/jonperrelle/Google_Graphs/pulls/comments/69134589"},"html":{"href":"https://github.com/jonperrelle/Google_Graphs/pull/55#discussion_r69134589"},"pull_request":{"href":"https://api.github.com/repos/jonperrelle/Google_Graphs/pulls/55"}}},"pull_request":{"url":"https://api.github.com/repos/jonperrelle/Google_Graphs/pulls/55","id":75817000,"html_url":"https://github.com/jonperrelle/Google_Graphs/pull/55","diff_url":"https://github.com/jonperrelle/Google_Graphs/pull/55.diff","patch_url":"https://github.com/jonperrelle/Google_Graphs/pull/55.patch","issue_url":"https://api.github.com/repos/jonperrelle/Google_Graphs/issues/55","number":55,"state":"open","locked":false,"title":"Save ds","user":{"login":"jonperrelle","id":15789641,"avatar_url":"https://avatars.githubusercontent.com/u/15789641?v=3","gravatar_id":"","url":"https://api.github.com/users/jonperrelle","html_url":"https://github.com/jonperrelle","followers_url":"https://api.github.com/users/jonperrelle/followers","following_url":"https://api.github.com/users/jonperrelle/following{/other_user}","gists_url":"https://api.github.com/users/jonperrelle/gists{/gist_id}","starred_url":"https://api.github.com/users/jonperrelle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonperrelle/subscriptions","organizations_url":"https://api.github.com/users/jonperrelle/orgs","repos_url":"https://api.github.com/users/jonperrelle/repos","events_url":"https://api.github.com/users/jonperrelle/events{/privacy}","received_events_url":"https://api.github.com/users/jonperrelle/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-06-30T13:15:27Z","updated_at":"2016-06-30T13:47:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"26ca865c8e1a367d97b832fc2977cb144b5d1f9a","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/jonperrelle/Google_Graphs/pulls/55/commits","review_comments_url":"https://api.github.com/repos/jonperrelle/Google_Graphs/pulls/55/comments","review_comment_url":"https://api.github.com/repos/jonperrelle/Google_Graphs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jonperrelle/Google_Graphs/issues/55/comments","statuses_url":"https://api.github.com/repos/jonperrelle/Google_Graphs/statuses/94666e5ac41ab73b89889055b1bd20fd23e0c3d1","head":{"label":"jonperrelle:saveDS","ref":"saveDS","sha":"94666e5ac41ab73b89889055b1bd20fd23e0c3d1","user":{"login":"jonperrelle","id":15789641,"avatar_url":"https://avatars.githubusercontent.com/u/15789641?v=3","gravatar_id":"","url":"https://api.github.com/users/jonperrelle","html_url":"https://github.com/jonperrelle","followers_url":"https://api.github.com/users/jonperrelle/followers","following_url":"https://api.github.com/users/jonperrelle/following{/other_user}","gists_url":"https://api.github.com/users/jonperrelle/gists{/gist_id}","starred_url":"https://api.github.com/users/jonperrelle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonperrelle/subscriptions","organizations_url":"https://api.github.com/users/jonperrelle/orgs","repos_url":"https://api.github.com/users/jonperrelle/repos","events_url":"https://api.github.com/users/jonperrelle/events{/privacy}","received_events_url":"https://api.github.com/users/jonperrelle/received_events","type":"User","site_admin":false},"repo":{"id":61752686,"name":"Google_Graphs","full_name":"jonperrelle/Google_Graphs","owner":{"login":"jonperrelle","id":15789641,"avatar_url":"https://avatars.githubusercontent.com/u/15789641?v=3","gravatar_id":"","url":"https://api.github.com/users/jonperrelle","html_url":"https://github.com/jonperrelle","followers_url":"https://api.github.com/users/jonperrelle/followers","following_url":"https://api.github.com/users/jonperrelle/following{/other_user}","gists_url":"https://api.github.com/users/jonperrelle/gists{/gist_id}","starred_url":"https://api.github.com/users/jonperrelle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonperrelle/subscriptions","organizations_url":"https://api.github.com/users/jonperrelle/orgs","repos_url":"https://api.github.com/users/jonperrelle/repos","events_url":"https://api.github.com/users/jonperrelle/events{/privacy}","received_events_url":"https://api.github.com/users/jonperrelle/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jonperrelle/Google_Graphs","description":"","fork":false,"url":"https://api.github.com/repos/jonperrelle/Google_Graphs","forks_url":"https://api.github.com/repos/jonperrelle/Google_Graphs/forks","keys_url":"https://api.github.com/repos/jonperrelle/Google_Graphs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jonperrelle/Google_Graphs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jonperrelle/Google_Graphs/teams","hooks_url":"https://api.github.com/repos/jonperrelle/Google_Graphs/hooks","issue_events_url":"https://api.github.com/repos/jonperrelle/Google_Graphs/issues/events{/number}","events_url":"https://api.github.com/repos/jonperrelle/Google_Graphs/events","assignees_url":"https://api.github.com/repos/jonperrelle/Google_Graphs/assignees{/user}","branches_url":"https://api.github.com/repos/jonperrelle/Google_Graphs/branches{/branch}","tags_url":"https://api.github.com/repos/jonperrelle/Google_Graphs/tags","blobs_url":"https://api.github.com/repos/jonperrelle/Google_Graphs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jonperrelle/Google_Graphs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jonperrelle/Google_Graphs/git/refs{/sha}","trees_url":"https://api.github.com/repos/jonperrelle/Google_Graphs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jonperrelle/Google_Graphs/statuses/{sha}","languages_url":"https://api.github.com/repos/jonperrelle/Google_Graphs/languages","stargazers_url":"https://api.github.com/repos/jonperrelle/Google_Graphs/stargazers","contributors_url":"https://api.github.com/repos/jonperrelle/Google_Graphs/contributors","subscribers_url":"https://api.github.com/repos/jonperrelle/Google_Graphs/subscribers","subscription_url":"https://api.github.com/repos/jonperrelle/Google_Graphs/subscription","commits_url":"https://api.github.com/repos/jonperrelle/Google_Graphs/commits{/sha}","git_commits_url":"https://api.github.com/repos/jonperrelle/Google_Graphs/git/commits{/sha}","comments_url":"https://api.github.com/repos/jonperrelle/Google_Graphs/comments{/number}","issue_comment_url":"https://api.github.com/repos/jonperrelle/Google_Graphs/issues/comments{/number}","contents_url":"https://api.github.com/repos/jonperrelle/Google_Graphs/contents/{+path}","compare_url":"https://api.github.com/repos/jonperrelle/Google_Graphs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jonperrelle/Google_Graphs/merges","archive_url":"https://api.github.com/repos/jonperrelle/Google_Graphs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jonperrelle/Google_Graphs/downloads","issues_url":"https://api.github.com/repos/jonperrelle/Google_Graphs/issues{/number}","pulls_url":"https://api.github.com/repos/jonperrelle/Google_Graphs/pulls{/number}","milestones_url":"https://api.github.com/repos/jonperrelle/Google_Graphs/milestones{/number}","notifications_url":"https://api.github.com/repos/jonperrelle/Google_Graphs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jonperrelle/Google_Graphs/labels{/name}","releases_url":"https://api.github.com/repos/jonperrelle/Google_Graphs/releases{/id}","deployments_url":"https://api.github.com/repos/jonperrelle/Google_Graphs/deployments","created_at":"2016-06-22T21:28:20Z","updated_at":"2016-06-29T02:17:33Z","pushed_at":"2016-06-30T13:31:54Z","git_url":"git://github.com/jonperrelle/Google_Graphs.git","ssh_url":"git@github.com:jonperrelle/Google_Graphs.git","clone_url":"https://github.com/jonperrelle/Google_Graphs.git","svn_url":"https://github.com/jonperrelle/Google_Graphs","homepage":null,"size":170,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":26,"forks":0,"open_issues":26,"watchers":1,"default_branch":"master"}},"base":{"label":"jonperrelle:master","ref":"master","sha":"49463a76b56b6d4e6e2987fad5e267ea6b0aa363","user":{"login":"jonperrelle","id":15789641,"avatar_url":"https://avatars.githubusercontent.com/u/15789641?v=3","gravatar_id":"","url":"https://api.github.com/users/jonperrelle","html_url":"https://github.com/jonperrelle","followers_url":"https://api.github.com/users/jonperrelle/followers","following_url":"https://api.github.com/users/jonperrelle/following{/other_user}","gists_url":"https://api.github.com/users/jonperrelle/gists{/gist_id}","starred_url":"https://api.github.com/users/jonperrelle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonperrelle/subscriptions","organizations_url":"https://api.github.com/users/jonperrelle/orgs","repos_url":"https://api.github.com/users/jonperrelle/repos","events_url":"https://api.github.com/users/jonperrelle/events{/privacy}","received_events_url":"https://api.github.com/users/jonperrelle/received_events","type":"User","site_admin":false},"repo":{"id":61752686,"name":"Google_Graphs","full_name":"jonperrelle/Google_Graphs","owner":{"login":"jonperrelle","id":15789641,"avatar_url":"https://avatars.githubusercontent.com/u/15789641?v=3","gravatar_id":"","url":"https://api.github.com/users/jonperrelle","html_url":"https://github.com/jonperrelle","followers_url":"https://api.github.com/users/jonperrelle/followers","following_url":"https://api.github.com/users/jonperrelle/following{/other_user}","gists_url":"https://api.github.com/users/jonperrelle/gists{/gist_id}","starred_url":"https://api.github.com/users/jonperrelle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonperrelle/subscriptions","organizations_url":"https://api.github.com/users/jonperrelle/orgs","repos_url":"https://api.github.com/users/jonperrelle/repos","events_url":"https://api.github.com/users/jonperrelle/events{/privacy}","received_events_url":"https://api.github.com/users/jonperrelle/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jonperrelle/Google_Graphs","description":"","fork":false,"url":"https://api.github.com/repos/jonperrelle/Google_Graphs","forks_url":"https://api.github.com/repos/jonperrelle/Google_Graphs/forks","keys_url":"https://api.github.com/repos/jonperrelle/Google_Graphs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jonperrelle/Google_Graphs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jonperrelle/Google_Graphs/teams","hooks_url":"https://api.github.com/repos/jonperrelle/Google_Graphs/hooks","issue_events_url":"https://api.github.com/repos/jonperrelle/Google_Graphs/issues/events{/number}","events_url":"https://api.github.com/repos/jonperrelle/Google_Graphs/events","assignees_url":"https://api.github.com/repos/jonperrelle/Google_Graphs/assignees{/user}","branches_url":"https://api.github.com/repos/jonperrelle/Google_Graphs/branches{/branch}","tags_url":"https://api.github.com/repos/jonperrelle/Google_Graphs/tags","blobs_url":"https://api.github.com/repos/jonperrelle/Google_Graphs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jonperrelle/Google_Graphs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jonperrelle/Google_Graphs/git/refs{/sha}","trees_url":"https://api.github.com/repos/jonperrelle/Google_Graphs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jonperrelle/Google_Graphs/statuses/{sha}","languages_url":"https://api.github.com/repos/jonperrelle/Google_Graphs/languages","stargazers_url":"https://api.github.com/repos/jonperrelle/Google_Graphs/stargazers","contributors_url":"https://api.github.com/repos/jonperrelle/Google_Graphs/contributors","subscribers_url":"https://api.github.com/repos/jonperrelle/Google_Graphs/subscribers","subscription_url":"https://api.github.com/repos/jonperrelle/Google_Graphs/subscription","commits_url":"https://api.github.com/repos/jonperrelle/Google_Graphs/commits{/sha}","git_commits_url":"https://api.github.com/repos/jonperrelle/Google_Graphs/git/commits{/sha}","comments_url":"https://api.github.com/repos/jonperrelle/Google_Graphs/comments{/number}","issue_comment_url":"https://api.github.com/repos/jonperrelle/Google_Graphs/issues/comments{/number}","contents_url":"https://api.github.com/repos/jonperrelle/Google_Graphs/contents/{+path}","compare_url":"https://api.github.com/repos/jonperrelle/Google_Graphs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jonperrelle/Google_Graphs/merges","archive_url":"https://api.github.com/repos/jonperrelle/Google_Graphs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jonperrelle/Google_Graphs/downloads","issues_url":"https://api.github.com/repos/jonperrelle/Google_Graphs/issues{/number}","pulls_url":"https://api.github.com/repos/jonperrelle/Google_Graphs/pulls{/number}","milestones_url":"https://api.github.com/repos/jonperrelle/Google_Graphs/milestones{/number}","notifications_url":"https://api.github.com/repos/jonperrelle/Google_Graphs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jonperrelle/Google_Graphs/labels{/name}","releases_url":"https://api.github.com/repos/jonperrelle/Google_Graphs/releases{/id}","deployments_url":"https://api.github.com/repos/jonperrelle/Google_Graphs/deployments","created_at":"2016-06-22T21:28:20Z","updated_at":"2016-06-29T02:17:33Z","pushed_at":"2016-06-30T13:31:54Z","git_url":"git://github.com/jonperrelle/Google_Graphs.git","ssh_url":"git@github.com:jonperrelle/Google_Graphs.git","clone_url":"https://github.com/jonperrelle/Google_Graphs.git","svn_url":"https://github.com/jonperrelle/Google_Graphs","homepage":null,"size":170,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":26,"forks":0,"open_issues":26,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jonperrelle/Google_Graphs/pulls/55"},"html":{"href":"https://github.com/jonperrelle/Google_Graphs/pull/55"},"issue":{"href":"https://api.github.com/repos/jonperrelle/Google_Graphs/issues/55"},"comments":{"href":"https://api.github.com/repos/jonperrelle/Google_Graphs/issues/55/comments"},"review_comments":{"href":"https://api.github.com/repos/jonperrelle/Google_Graphs/pulls/55/comments"},"review_comment":{"href":"https://api.github.com/repos/jonperrelle/Google_Graphs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jonperrelle/Google_Graphs/pulls/55/commits"},"statuses":{"href":"https://api.github.com/repos/jonperrelle/Google_Graphs/statuses/94666e5ac41ab73b89889055b1bd20fd23e0c3d1"}}}}
{"actor":{"display_login":"geoffbass"}}