{"action":"created","comment":{"url":"https://api.github.com/repos/consul/consul/pulls/comments/253851005","pull_request_review_id":200057881,"id":253851005,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI1Mzg1MTAwNQ==","diff_hunk":"@@ -0,0 +1,97 @@\n+require 'rails_helper'","path":"spec/models/geography_spec.rb","position":1,"original_position":1,"commit_id":"9da4613d15fc8b20b6f77bf73887eb31515d05df","original_commit_id":"9da4613d15fc8b20b6f77bf73887eb31515d05df","user":{"login":"houndci-bot","id":6697940,"node_id":"MDQ6VXNlcjY2OTc5NDA=","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":"Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping. (https://github.com/bbatsov/ruby-style-guide#consistent-string-literals)","created_at":"2019-02-05T12:55:39Z","updated_at":"2019-02-05T12:55:42Z","html_url":"https://github.com/consul/consul/pull/3266#discussion_r253851005","pull_request_url":"https://api.github.com/repos/consul/consul/pulls/3266","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/consul/consul/pulls/comments/253851005"},"html":{"href":"https://github.com/consul/consul/pull/3266#discussion_r253851005"},"pull_request":{"href":"https://api.github.com/repos/consul/consul/pulls/3266"}}},"pull_request":{"url":"https://api.github.com/repos/consul/consul/pulls/3266","id":250391199,"node_id":"MDExOlB1bGxSZXF1ZXN0MjUwMzkxMTk5","html_url":"https://github.com/consul/consul/pull/3266","diff_url":"https://github.com/consul/consul/pull/3266.diff","patch_url":"https://github.com/consul/consul/pull/3266.patch","issue_url":"https://api.github.com/repos/consul/consul/issues/3266","number":3266,"state":"open","locked":false,"title":"Add polygon geographies to Budgets' map","user":{"login":"MatheusMiranda","id":13803249,"node_id":"MDQ6VXNlcjEzODAzMjQ5","avatar_url":"https://avatars3.githubusercontent.com/u/13803249?v=4","gravatar_id":"","url":"https://api.github.com/users/MatheusMiranda","html_url":"https://github.com/MatheusMiranda","followers_url":"https://api.github.com/users/MatheusMiranda/followers","following_url":"https://api.github.com/users/MatheusMiranda/following{/other_user}","gists_url":"https://api.github.com/users/MatheusMiranda/gists{/gist_id}","starred_url":"https://api.github.com/users/MatheusMiranda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MatheusMiranda/subscriptions","organizations_url":"https://api.github.com/users/MatheusMiranda/orgs","repos_url":"https://api.github.com/users/MatheusMiranda/repos","events_url":"https://api.github.com/users/MatheusMiranda/events{/privacy}","received_events_url":"https://api.github.com/users/MatheusMiranda/received_events","type":"User","site_admin":false},"body":"## References\r\n\r\nRelated to issue:  #3045\r\n\r\n## Objectives\r\n\r\nAdd feature to create Geographies. This geographies may have GeoJSON's attributtes and be plotted as polygon on Budgets' map. \r\n\r\n![budget_geographies](https://user-images.githubusercontent.com/13803249/52270705-e80b5c00-2928-11e9-8baa-36595c21287f.png)\r\n\r\n## Visual Changes\r\n\r\nOn Administration section, at *Settings* area, there is now an option to *Manage Geographies*.\r\n\r\n![administration_sidebar](https://user-images.githubusercontent.com/13803249/52271151-13db1180-292a-11e9-945f-48bff39d75fa.png)\r\n\r\nIt is possible to create Geographies, defining its color and the *Headings* related to this geography. Also it's possible to paste a GeoJSON file to define polygon to be drawed.\r\n\r\n![edit_geography](https://user-images.githubusercontent.com/13803249/52271381-9d8adf00-292a-11e9-9347-4e0f402f6069.png)\r\n\r\nThe name of related headings are shown for each geography. \"No related Headings\" is shown for geographies without related headings.\r\n\r\n![geographies_list](https://user-images.githubusercontent.com/13803249/52272647-9bc31a80-292e-11e9-8f76-242f68326046.png)\r\n\r\nThe name of related geography is shown for each heading. \"No related geography\" is shown when there is no associated geography;\r\n\r\n![geography_on_headings_page](https://user-images.githubusercontent.com/13803249/52273595-784d9f00-2931-11e9-944c-2b8a916d7741.png)\r\n\r\n\r\n## Notes\r\n\r\n- The GeoJSON file format is validated according to the ![RFC 7946](https://tools.ietf.org/html/rfc7946);\r\n- It's not possible to set GeoJSON by uploading files. Paperclip is good for simple file upload, but  can be a little overhead for processing files' contents, and for Geographies it's necessary to process the content of uploaded file, to validade it's content and process the coordinates;\r\n- As a geography can be related to many headings, when clicked on, it links to the heading that belongs to the current PB process;\r\n- Geographies that are not related to \"active headings\" are drawed  without filling;\r\n\r\n\r\n","created_at":"2019-02-05T12:54:16Z","updated_at":"2019-02-05T12:55:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"83f5e5dba3998e89aa339167490f0b00a64395f8","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/consul/consul/pulls/3266/commits","review_comments_url":"https://api.github.com/repos/consul/consul/pulls/3266/comments","review_comment_url":"https://api.github.com/repos/consul/consul/pulls/comments{/number}","comments_url":"https://api.github.com/repos/consul/consul/issues/3266/comments","statuses_url":"https://api.github.com/repos/consul/consul/statuses/9da4613d15fc8b20b6f77bf73887eb31515d05df","head":{"label":"MatheusMiranda:master","ref":"master","sha":"9da4613d15fc8b20b6f77bf73887eb31515d05df","user":{"login":"MatheusMiranda","id":13803249,"node_id":"MDQ6VXNlcjEzODAzMjQ5","avatar_url":"https://avatars3.githubusercontent.com/u/13803249?v=4","gravatar_id":"","url":"https://api.github.com/users/MatheusMiranda","html_url":"https://github.com/MatheusMiranda","followers_url":"https://api.github.com/users/MatheusMiranda/followers","following_url":"https://api.github.com/users/MatheusMiranda/following{/other_user}","gists_url":"https://api.github.com/users/MatheusMiranda/gists{/gist_id}","starred_url":"https://api.github.com/users/MatheusMiranda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MatheusMiranda/subscriptions","organizations_url":"https://api.github.com/users/MatheusMiranda/orgs","repos_url":"https://api.github.com/users/MatheusMiranda/repos","events_url":"https://api.github.com/users/MatheusMiranda/events{/privacy}","received_events_url":"https://api.github.com/users/MatheusMiranda/received_events","type":"User","site_admin":false},"repo":{"id":162487266,"node_id":"MDEwOlJlcG9zaXRvcnkxNjI0ODcyNjY=","name":"consul","full_name":"MatheusMiranda/consul","private":false,"owner":{"login":"MatheusMiranda","id":13803249,"node_id":"MDQ6VXNlcjEzODAzMjQ5","avatar_url":"https://avatars3.githubusercontent.com/u/13803249?v=4","gravatar_id":"","url":"https://api.github.com/users/MatheusMiranda","html_url":"https://github.com/MatheusMiranda","followers_url":"https://api.github.com/users/MatheusMiranda/followers","following_url":"https://api.github.com/users/MatheusMiranda/following{/other_user}","gists_url":"https://api.github.com/users/MatheusMiranda/gists{/gist_id}","starred_url":"https://api.github.com/users/MatheusMiranda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MatheusMiranda/subscriptions","organizations_url":"https://api.github.com/users/MatheusMiranda/orgs","repos_url":"https://api.github.com/users/MatheusMiranda/repos","events_url":"https://api.github.com/users/MatheusMiranda/events{/privacy}","received_events_url":"https://api.github.com/users/MatheusMiranda/received_events","type":"User","site_admin":false},"html_url":"https://github.com/MatheusMiranda/consul","description":"Consul - Open Government and E-Participation Web Software","fork":true,"url":"https://api.github.com/repos/MatheusMiranda/consul","forks_url":"https://api.github.com/repos/MatheusMiranda/consul/forks","keys_url":"https://api.github.com/repos/MatheusMiranda/consul/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MatheusMiranda/consul/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MatheusMiranda/consul/teams","hooks_url":"https://api.github.com/repos/MatheusMiranda/consul/hooks","issue_events_url":"https://api.github.com/repos/MatheusMiranda/consul/issues/events{/number}","events_url":"https://api.github.com/repos/MatheusMiranda/consul/events","assignees_url":"https://api.github.com/repos/MatheusMiranda/consul/assignees{/user}","branches_url":"https://api.github.com/repos/MatheusMiranda/consul/branches{/branch}","tags_url":"https://api.github.com/repos/MatheusMiranda/consul/tags","blobs_url":"https://api.github.com/repos/MatheusMiranda/consul/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MatheusMiranda/consul/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MatheusMiranda/consul/git/refs{/sha}","trees_url":"https://api.github.com/repos/MatheusMiranda/consul/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MatheusMiranda/consul/statuses/{sha}","languages_url":"https://api.github.com/repos/MatheusMiranda/consul/languages","stargazers_url":"https://api.github.com/repos/MatheusMiranda/consul/stargazers","contributors_url":"https://api.github.com/repos/MatheusMiranda/consul/contributors","subscribers_url":"https://api.github.com/repos/MatheusMiranda/consul/subscribers","subscription_url":"https://api.github.com/repos/MatheusMiranda/consul/subscription","commits_url":"https://api.github.com/repos/MatheusMiranda/consul/commits{/sha}","git_commits_url":"https://api.github.com/repos/MatheusMiranda/consul/git/commits{/sha}","comments_url":"https://api.github.com/repos/MatheusMiranda/consul/comments{/number}","issue_comment_url":"https://api.github.com/repos/MatheusMiranda/consul/issues/comments{/number}","contents_url":"https://api.github.com/repos/MatheusMiranda/consul/contents/{+path}","compare_url":"https://api.github.com/repos/MatheusMiranda/consul/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MatheusMiranda/consul/merges","archive_url":"https://api.github.com/repos/MatheusMiranda/consul/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MatheusMiranda/consul/downloads","issues_url":"https://api.github.com/repos/MatheusMiranda/consul/issues{/number}","pulls_url":"https://api.github.com/repos/MatheusMiranda/consul/pulls{/number}","milestones_url":"https://api.github.com/repos/MatheusMiranda/consul/milestones{/number}","notifications_url":"https://api.github.com/repos/MatheusMiranda/consul/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MatheusMiranda/consul/labels{/name}","releases_url":"https://api.github.com/repos/MatheusMiranda/consul/releases{/id}","deployments_url":"https://api.github.com/repos/MatheusMiranda/consul/deployments","created_at":"2018-12-19T20:28:12Z","updated_at":"2019-02-05T10:53:32Z","pushed_at":"2019-02-05T10:53:30Z","git_url":"git://github.com/MatheusMiranda/consul.git","ssh_url":"git@github.com:MatheusMiranda/consul.git","clone_url":"https://github.com/MatheusMiranda/consul.git","svn_url":"https://github.com/MatheusMiranda/consul","homepage":"","size":49243,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0","node_id":"MDc6TGljZW5zZTE="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"consul:master","ref":"master","sha":"42c065f630c8d5c60c6c3e8283586302c24e7fe8","user":{"login":"consul","id":14167322,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0MTY3MzIy","avatar_url":"https://avatars2.githubusercontent.com/u/14167322?v=4","gravatar_id":"","url":"https://api.github.com/users/consul","html_url":"https://github.com/consul","followers_url":"https://api.github.com/users/consul/followers","following_url":"https://api.github.com/users/consul/following{/other_user}","gists_url":"https://api.github.com/users/consul/gists{/gist_id}","starred_url":"https://api.github.com/users/consul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/consul/subscriptions","organizations_url":"https://api.github.com/users/consul/orgs","repos_url":"https://api.github.com/users/consul/repos","events_url":"https://api.github.com/users/consul/events{/privacy}","received_events_url":"https://api.github.com/users/consul/received_events","type":"Organization","site_admin":false},"repo":{"id":39152554,"node_id":"MDEwOlJlcG9zaXRvcnkzOTE1MjU1NA==","name":"consul","full_name":"consul/consul","private":false,"owner":{"login":"consul","id":14167322,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0MTY3MzIy","avatar_url":"https://avatars2.githubusercontent.com/u/14167322?v=4","gravatar_id":"","url":"https://api.github.com/users/consul","html_url":"https://github.com/consul","followers_url":"https://api.github.com/users/consul/followers","following_url":"https://api.github.com/users/consul/following{/other_user}","gists_url":"https://api.github.com/users/consul/gists{/gist_id}","starred_url":"https://api.github.com/users/consul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/consul/subscriptions","organizations_url":"https://api.github.com/users/consul/orgs","repos_url":"https://api.github.com/users/consul/repos","events_url":"https://api.github.com/users/consul/events{/privacy}","received_events_url":"https://api.github.com/users/consul/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/consul/consul","description":"Consul - Open Government and E-Participation Web Software","fork":false,"url":"https://api.github.com/repos/consul/consul","forks_url":"https://api.github.com/repos/consul/consul/forks","keys_url":"https://api.github.com/repos/consul/consul/keys{/key_id}","collaborators_url":"https://api.github.com/repos/consul/consul/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/consul/consul/teams","hooks_url":"https://api.github.com/repos/consul/consul/hooks","issue_events_url":"https://api.github.com/repos/consul/consul/issues/events{/number}","events_url":"https://api.github.com/repos/consul/consul/events","assignees_url":"https://api.github.com/repos/consul/consul/assignees{/user}","branches_url":"https://api.github.com/repos/consul/consul/branches{/branch}","tags_url":"https://api.github.com/repos/consul/consul/tags","blobs_url":"https://api.github.com/repos/consul/consul/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/consul/consul/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/consul/consul/git/refs{/sha}","trees_url":"https://api.github.com/repos/consul/consul/git/trees{/sha}","statuses_url":"https://api.github.com/repos/consul/consul/statuses/{sha}","languages_url":"https://api.github.com/repos/consul/consul/languages","stargazers_url":"https://api.github.com/repos/consul/consul/stargazers","contributors_url":"https://api.github.com/repos/consul/consul/contributors","subscribers_url":"https://api.github.com/repos/consul/consul/subscribers","subscription_url":"https://api.github.com/repos/consul/consul/subscription","commits_url":"https://api.github.com/repos/consul/consul/commits{/sha}","git_commits_url":"https://api.github.com/repos/consul/consul/git/commits{/sha}","comments_url":"https://api.github.com/repos/consul/consul/comments{/number}","issue_comment_url":"https://api.github.com/repos/consul/consul/issues/comments{/number}","contents_url":"https://api.github.com/repos/consul/consul/contents/{+path}","compare_url":"https://api.github.com/repos/consul/consul/compare/{base}...{head}","merges_url":"https://api.github.com/repos/consul/consul/merges","archive_url":"https://api.github.com/repos/consul/consul/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/consul/consul/downloads","issues_url":"https://api.github.com/repos/consul/consul/issues{/number}","pulls_url":"https://api.github.com/repos/consul/consul/pulls{/number}","milestones_url":"https://api.github.com/repos/consul/consul/milestones{/number}","notifications_url":"https://api.github.com/repos/consul/consul/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/consul/consul/labels{/name}","releases_url":"https://api.github.com/repos/consul/consul/releases{/id}","deployments_url":"https://api.github.com/repos/consul/consul/deployments","created_at":"2015-07-15T18:04:16Z","updated_at":"2019-02-03T05:24:25Z","pushed_at":"2019-02-05T12:54:17Z","git_url":"git://github.com/consul/consul.git","ssh_url":"git@github.com:consul/consul.git","clone_url":"https://github.com/consul/consul.git","svn_url":"https://github.com/consul/consul","homepage":"","size":49039,"stargazers_count":793,"watchers_count":793,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":493,"mirror_url":null,"archived":false,"open_issues_count":332,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0","node_id":"MDc6TGljZW5zZTE="},"forks":493,"open_issues":332,"watchers":793,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/consul/consul/pulls/3266"},"html":{"href":"https://github.com/consul/consul/pull/3266"},"issue":{"href":"https://api.github.com/repos/consul/consul/issues/3266"},"comments":{"href":"https://api.github.com/repos/consul/consul/issues/3266/comments"},"review_comments":{"href":"https://api.github.com/repos/consul/consul/pulls/3266/comments"},"review_comment":{"href":"https://api.github.com/repos/consul/consul/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/consul/consul/pulls/3266/commits"},"statuses":{"href":"https://api.github.com/repos/consul/consul/statuses/9da4613d15fc8b20b6f77bf73887eb31515d05df"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"houndci-bot"}}