{"action":"created","comment":{"url":"https://api.github.com/repos/quintel/etmodel/pulls/comments/92778437","pull_request_review_id":13299024,"id":92778437,"diff_hunk":"@@ -43,6 +43,10 @@ def self.all_by_area_code\n     end\n   end\n \n+  def self.derived_datasets\n+    all_by_area_code.sort_by { |area_code, _| area_code }.map { |_, area| area }.find_all { |area| area.is_derived? }","path":"app/models/api/area.rb","position":null,"original_position":5,"commit_id":"77ab6c7af0c4dc7fed4d32433157807391cf379f","original_commit_id":"5900b9b6980a00a6b25d7b80787eb2a99553e25a","user":{"login":"ploh","id":768025,"avatar_url":"https://avatars.githubusercontent.com/u/768025?v=3","gravatar_id":"","url":"https://api.github.com/users/ploh","html_url":"https://github.com/ploh","followers_url":"https://api.github.com/users/ploh/followers","following_url":"https://api.github.com/users/ploh/following{/other_user}","gists_url":"https://api.github.com/users/ploh/gists{/gist_id}","starred_url":"https://api.github.com/users/ploh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ploh/subscriptions","organizations_url":"https://api.github.com/users/ploh/orgs","repos_url":"https://api.github.com/users/ploh/repos","events_url":"https://api.github.com/users/ploh/events{/privacy}","received_events_url":"https://api.github.com/users/ploh/received_events","type":"User","site_admin":false},"body":"Good to know. Thx :+1: \r\nI guess I should finally really stop using the [Pickaxe](https://www.amazon.com/Programming-Ruby-1-9-2-0-Programmers/dp/1937785491) as my reference doc because it is too outdated. What a pity!","created_at":"2016-12-16T09:34:02Z","updated_at":"2016-12-16T09:34:02Z","html_url":"https://github.com/quintel/etmodel/pull/2313#discussion_r92778437","pull_request_url":"https://api.github.com/repos/quintel/etmodel/pulls/2313","_links":{"self":{"href":"https://api.github.com/repos/quintel/etmodel/pulls/comments/92778437"},"html":{"href":"https://github.com/quintel/etmodel/pull/2313#discussion_r92778437"},"pull_request":{"href":"https://api.github.com/repos/quintel/etmodel/pulls/2313"}}},"pull_request":{"url":"https://api.github.com/repos/quintel/etmodel/pulls/2313","id":97742302,"html_url":"https://github.com/quintel/etmodel/pull/2313","diff_url":"https://github.com/quintel/etmodel/pull/2313.diff","patch_url":"https://github.com/quintel/etmodel/pull/2313.patch","issue_url":"https://api.github.com/repos/quintel/etmodel/issues/2313","number":2313,"state":"open","locked":false,"title":"Local/derived dataset may be selected for new scenario","user":{"login":"ploh","id":768025,"avatar_url":"https://avatars.githubusercontent.com/u/768025?v=3","gravatar_id":"","url":"https://api.github.com/users/ploh","html_url":"https://github.com/ploh","followers_url":"https://api.github.com/users/ploh/followers","following_url":"https://api.github.com/users/ploh/following{/other_user}","gists_url":"https://api.github.com/users/ploh/gists{/gist_id}","starred_url":"https://api.github.com/users/ploh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ploh/subscriptions","organizations_url":"https://api.github.com/users/ploh/orgs","repos_url":"https://api.github.com/users/ploh/repos","events_url":"https://api.github.com/users/ploh/events{/privacy}","received_events_url":"https://api.github.com/users/ploh/received_events","type":"User","site_admin":false},"body":"Ref quintel/atlas@6cd3b7f15faf45569c5b66","created_at":"2016-12-13T12:33:30Z","updated_at":"2016-12-16T09:34:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"be92bd5aefd5963bfbf01d594f8d9ac0ee9d1266","assignee":{"login":"grdw","id":2676542,"avatar_url":"https://avatars.githubusercontent.com/u/2676542?v=3","gravatar_id":"","url":"https://api.github.com/users/grdw","html_url":"https://github.com/grdw","followers_url":"https://api.github.com/users/grdw/followers","following_url":"https://api.github.com/users/grdw/following{/other_user}","gists_url":"https://api.github.com/users/grdw/gists{/gist_id}","starred_url":"https://api.github.com/users/grdw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grdw/subscriptions","organizations_url":"https://api.github.com/users/grdw/orgs","repos_url":"https://api.github.com/users/grdw/repos","events_url":"https://api.github.com/users/grdw/events{/privacy}","received_events_url":"https://api.github.com/users/grdw/received_events","type":"User","site_admin":false},"assignees":[{"login":"grdw","id":2676542,"avatar_url":"https://avatars.githubusercontent.com/u/2676542?v=3","gravatar_id":"","url":"https://api.github.com/users/grdw","html_url":"https://github.com/grdw","followers_url":"https://api.github.com/users/grdw/followers","following_url":"https://api.github.com/users/grdw/following{/other_user}","gists_url":"https://api.github.com/users/grdw/gists{/gist_id}","starred_url":"https://api.github.com/users/grdw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grdw/subscriptions","organizations_url":"https://api.github.com/users/grdw/orgs","repos_url":"https://api.github.com/users/grdw/repos","events_url":"https://api.github.com/users/grdw/events{/privacy}","received_events_url":"https://api.github.com/users/grdw/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/quintel/etmodel/pulls/2313/commits","review_comments_url":"https://api.github.com/repos/quintel/etmodel/pulls/2313/comments","review_comment_url":"https://api.github.com/repos/quintel/etmodel/pulls/comments{/number}","comments_url":"https://api.github.com/repos/quintel/etmodel/issues/2313/comments","statuses_url":"https://api.github.com/repos/quintel/etmodel/statuses/77ab6c7af0c4dc7fed4d32433157807391cf379f","head":{"label":"quintel:local-datasets-area-choice","ref":"local-datasets-area-choice","sha":"77ab6c7af0c4dc7fed4d32433157807391cf379f","user":{"login":"quintel","id":2242291,"avatar_url":"https://avatars.githubusercontent.com/u/2242291?v=3","gravatar_id":"","url":"https://api.github.com/users/quintel","html_url":"https://github.com/quintel","followers_url":"https://api.github.com/users/quintel/followers","following_url":"https://api.github.com/users/quintel/following{/other_user}","gists_url":"https://api.github.com/users/quintel/gists{/gist_id}","starred_url":"https://api.github.com/users/quintel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quintel/subscriptions","organizations_url":"https://api.github.com/users/quintel/orgs","repos_url":"https://api.github.com/users/quintel/repos","events_url":"https://api.github.com/users/quintel/events{/privacy}","received_events_url":"https://api.github.com/users/quintel/received_events","type":"Organization","site_admin":false},"repo":{"id":1695405,"name":"etmodel","full_name":"quintel/etmodel","owner":{"login":"quintel","id":2242291,"avatar_url":"https://avatars.githubusercontent.com/u/2242291?v=3","gravatar_id":"","url":"https://api.github.com/users/quintel","html_url":"https://github.com/quintel","followers_url":"https://api.github.com/users/quintel/followers","following_url":"https://api.github.com/users/quintel/following{/other_user}","gists_url":"https://api.github.com/users/quintel/gists{/gist_id}","starred_url":"https://api.github.com/users/quintel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quintel/subscriptions","organizations_url":"https://api.github.com/users/quintel/orgs","repos_url":"https://api.github.com/users/quintel/repos","events_url":"https://api.github.com/users/quintel/events{/privacy}","received_events_url":"https://api.github.com/users/quintel/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/quintel/etmodel","description":"Professional interface of the Energy Transition model.","fork":false,"url":"https://api.github.com/repos/quintel/etmodel","forks_url":"https://api.github.com/repos/quintel/etmodel/forks","keys_url":"https://api.github.com/repos/quintel/etmodel/keys{/key_id}","collaborators_url":"https://api.github.com/repos/quintel/etmodel/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/quintel/etmodel/teams","hooks_url":"https://api.github.com/repos/quintel/etmodel/hooks","issue_events_url":"https://api.github.com/repos/quintel/etmodel/issues/events{/number}","events_url":"https://api.github.com/repos/quintel/etmodel/events","assignees_url":"https://api.github.com/repos/quintel/etmodel/assignees{/user}","branches_url":"https://api.github.com/repos/quintel/etmodel/branches{/branch}","tags_url":"https://api.github.com/repos/quintel/etmodel/tags","blobs_url":"https://api.github.com/repos/quintel/etmodel/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/quintel/etmodel/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/quintel/etmodel/git/refs{/sha}","trees_url":"https://api.github.com/repos/quintel/etmodel/git/trees{/sha}","statuses_url":"https://api.github.com/repos/quintel/etmodel/statuses/{sha}","languages_url":"https://api.github.com/repos/quintel/etmodel/languages","stargazers_url":"https://api.github.com/repos/quintel/etmodel/stargazers","contributors_url":"https://api.github.com/repos/quintel/etmodel/contributors","subscribers_url":"https://api.github.com/repos/quintel/etmodel/subscribers","subscription_url":"https://api.github.com/repos/quintel/etmodel/subscription","commits_url":"https://api.github.com/repos/quintel/etmodel/commits{/sha}","git_commits_url":"https://api.github.com/repos/quintel/etmodel/git/commits{/sha}","comments_url":"https://api.github.com/repos/quintel/etmodel/comments{/number}","issue_comment_url":"https://api.github.com/repos/quintel/etmodel/issues/comments{/number}","contents_url":"https://api.github.com/repos/quintel/etmodel/contents/{+path}","compare_url":"https://api.github.com/repos/quintel/etmodel/compare/{base}...{head}","merges_url":"https://api.github.com/repos/quintel/etmodel/merges","archive_url":"https://api.github.com/repos/quintel/etmodel/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/quintel/etmodel/downloads","issues_url":"https://api.github.com/repos/quintel/etmodel/issues{/number}","pulls_url":"https://api.github.com/repos/quintel/etmodel/pulls{/number}","milestones_url":"https://api.github.com/repos/quintel/etmodel/milestones{/number}","notifications_url":"https://api.github.com/repos/quintel/etmodel/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/quintel/etmodel/labels{/name}","releases_url":"https://api.github.com/repos/quintel/etmodel/releases{/id}","deployments_url":"https://api.github.com/repos/quintel/etmodel/deployments","created_at":"2011-05-03T08:55:13Z","updated_at":"2016-11-02T16:41:40Z","pushed_at":"2016-12-16T07:51:03Z","git_url":"git://github.com/quintel/etmodel.git","ssh_url":"git@github.com:quintel/etmodel.git","clone_url":"https://github.com/quintel/etmodel.git","svn_url":"https://github.com/quintel/etmodel","homepage":"pro.energytransitionmodel.com","size":28442,"stargazers_count":12,"watchers_count":12,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":127,"forks":2,"open_issues":127,"watchers":12,"default_branch":"master"}},"base":{"label":"quintel:local-datasets","ref":"local-datasets","sha":"55afe3844c86cf72123986b2f16534d36c53a350","user":{"login":"quintel","id":2242291,"avatar_url":"https://avatars.githubusercontent.com/u/2242291?v=3","gravatar_id":"","url":"https://api.github.com/users/quintel","html_url":"https://github.com/quintel","followers_url":"https://api.github.com/users/quintel/followers","following_url":"https://api.github.com/users/quintel/following{/other_user}","gists_url":"https://api.github.com/users/quintel/gists{/gist_id}","starred_url":"https://api.github.com/users/quintel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quintel/subscriptions","organizations_url":"https://api.github.com/users/quintel/orgs","repos_url":"https://api.github.com/users/quintel/repos","events_url":"https://api.github.com/users/quintel/events{/privacy}","received_events_url":"https://api.github.com/users/quintel/received_events","type":"Organization","site_admin":false},"repo":{"id":1695405,"name":"etmodel","full_name":"quintel/etmodel","owner":{"login":"quintel","id":2242291,"avatar_url":"https://avatars.githubusercontent.com/u/2242291?v=3","gravatar_id":"","url":"https://api.github.com/users/quintel","html_url":"https://github.com/quintel","followers_url":"https://api.github.com/users/quintel/followers","following_url":"https://api.github.com/users/quintel/following{/other_user}","gists_url":"https://api.github.com/users/quintel/gists{/gist_id}","starred_url":"https://api.github.com/users/quintel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quintel/subscriptions","organizations_url":"https://api.github.com/users/quintel/orgs","repos_url":"https://api.github.com/users/quintel/repos","events_url":"https://api.github.com/users/quintel/events{/privacy}","received_events_url":"https://api.github.com/users/quintel/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/quintel/etmodel","description":"Professional interface of the Energy Transition model.","fork":false,"url":"https://api.github.com/repos/quintel/etmodel","forks_url":"https://api.github.com/repos/quintel/etmodel/forks","keys_url":"https://api.github.com/repos/quintel/etmodel/keys{/key_id}","collaborators_url":"https://api.github.com/repos/quintel/etmodel/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/quintel/etmodel/teams","hooks_url":"https://api.github.com/repos/quintel/etmodel/hooks","issue_events_url":"https://api.github.com/repos/quintel/etmodel/issues/events{/number}","events_url":"https://api.github.com/repos/quintel/etmodel/events","assignees_url":"https://api.github.com/repos/quintel/etmodel/assignees{/user}","branches_url":"https://api.github.com/repos/quintel/etmodel/branches{/branch}","tags_url":"https://api.github.com/repos/quintel/etmodel/tags","blobs_url":"https://api.github.com/repos/quintel/etmodel/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/quintel/etmodel/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/quintel/etmodel/git/refs{/sha}","trees_url":"https://api.github.com/repos/quintel/etmodel/git/trees{/sha}","statuses_url":"https://api.github.com/repos/quintel/etmodel/statuses/{sha}","languages_url":"https://api.github.com/repos/quintel/etmodel/languages","stargazers_url":"https://api.github.com/repos/quintel/etmodel/stargazers","contributors_url":"https://api.github.com/repos/quintel/etmodel/contributors","subscribers_url":"https://api.github.com/repos/quintel/etmodel/subscribers","subscription_url":"https://api.github.com/repos/quintel/etmodel/subscription","commits_url":"https://api.github.com/repos/quintel/etmodel/commits{/sha}","git_commits_url":"https://api.github.com/repos/quintel/etmodel/git/commits{/sha}","comments_url":"https://api.github.com/repos/quintel/etmodel/comments{/number}","issue_comment_url":"https://api.github.com/repos/quintel/etmodel/issues/comments{/number}","contents_url":"https://api.github.com/repos/quintel/etmodel/contents/{+path}","compare_url":"https://api.github.com/repos/quintel/etmodel/compare/{base}...{head}","merges_url":"https://api.github.com/repos/quintel/etmodel/merges","archive_url":"https://api.github.com/repos/quintel/etmodel/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/quintel/etmodel/downloads","issues_url":"https://api.github.com/repos/quintel/etmodel/issues{/number}","pulls_url":"https://api.github.com/repos/quintel/etmodel/pulls{/number}","milestones_url":"https://api.github.com/repos/quintel/etmodel/milestones{/number}","notifications_url":"https://api.github.com/repos/quintel/etmodel/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/quintel/etmodel/labels{/name}","releases_url":"https://api.github.com/repos/quintel/etmodel/releases{/id}","deployments_url":"https://api.github.com/repos/quintel/etmodel/deployments","created_at":"2011-05-03T08:55:13Z","updated_at":"2016-11-02T16:41:40Z","pushed_at":"2016-12-16T07:51:03Z","git_url":"git://github.com/quintel/etmodel.git","ssh_url":"git@github.com:quintel/etmodel.git","clone_url":"https://github.com/quintel/etmodel.git","svn_url":"https://github.com/quintel/etmodel","homepage":"pro.energytransitionmodel.com","size":28442,"stargazers_count":12,"watchers_count":12,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":127,"forks":2,"open_issues":127,"watchers":12,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/quintel/etmodel/pulls/2313"},"html":{"href":"https://github.com/quintel/etmodel/pull/2313"},"issue":{"href":"https://api.github.com/repos/quintel/etmodel/issues/2313"},"comments":{"href":"https://api.github.com/repos/quintel/etmodel/issues/2313/comments"},"review_comments":{"href":"https://api.github.com/repos/quintel/etmodel/pulls/2313/comments"},"review_comment":{"href":"https://api.github.com/repos/quintel/etmodel/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/quintel/etmodel/pulls/2313/commits"},"statuses":{"href":"https://api.github.com/repos/quintel/etmodel/statuses/77ab6c7af0c4dc7fed4d32433157807391cf379f"}}}}
{"actor":{"display_login":"ploh"}}