{"action":"created","comment":{"url":"https://api.github.com/repos/Vizzuality/climate-watch/pulls/comments/267710505","pull_request_review_id":217180872,"id":267710505,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI2NzcxMDUwNQ==","diff_hunk":"@@ -0,0 +1,213 @@\n+class ImportAgricultureProfile\n+  include ClimateWatchEngine::CSVImporter\n+\n+  # rubocop:disable LineLength\n+  EMISSIONS_FILEPATH = \"#{CW_FILES_PREFIX}agriculture/Agr FAOSTAT Emissions Sample Data 823.csv\".freeze\n+  INPUTS_FILEPATH = \"#{CW_FILES_PREFIX}agriculture/Agr FAOSTAT Inputs Sample Data 823.csv\".freeze\n+  LAND_USE_FILEPATH = \"#{CW_FILES_PREFIX}agriculture/Agr FAOSTAT Land Use Sample Data 823.csv\".freeze\n+  MACRO_INDICATORS_FILEPATH = \"#{CW_FILES_PREFIX}agriculture/Agr FAOSTAT Macro Indicators Sample Data 823.csv\".freeze\n+  PRODUCTION_FILEPATH = \"#{CW_FILES_PREFIX}agriculture/Agr FAOSTAT Production and Trade Sample Data 823.csv\".freeze\n+  WATER_WITHDRAWAL_FILEPATH = \"#{CW_FILES_PREFIX}agriculture/Agr FAOSTAT Water Withdrawal Database 823.csv\".freeze\n+  FAO_FILEPATH = \"#{CW_FILES_PREFIX}agriculture/Agr OECD_FAO Sample Data 823.csv\".freeze\n+  WBD_FILEPATH = \"#{CW_FILES_PREFIX}agriculture/Agr WBD Sample Data 823.csv\".freeze\n+  LEGEND_FILEPATH = \"#{CW_FILES_PREFIX}agriculture/Legend File 823.csv\".freeze\n+  METADATA_FILEPATH = \"#{CW_FILES_PREFIX}agriculture/metadata_sources_823.csv\".freeze\n+\n+  # rubocop:enable LineLength\n+\n+  def call\n+    ActiveRecord::Base.transaction do\n+      cleanup\n+      Rails.logger.info \"Importing LEGEND\"\n+      import_metadata(S3CSVReader.read(LEGEND_FILEPATH), LEGEND_FILEPATH)\n+      import_emission_categories(S3CSVReader.read(LEGEND_FILEPATH), LEGEND_FILEPATH)\n+      Rails.logger.info \"Importing EMISSIONS\"\n+      import_emissions(S3CSVReader.read(EMISSIONS_FILEPATH), EMISSIONS_FILEPATH)\n+      Rails.logger.info \"Importing MACRO_INDICATORS\"\n+      import_country_contexts(S3CSVReader.read(MACRO_INDICATORS_FILEPATH), MACRO_INDICATORS_FILEPATH)\n+      Rails.logger.info \"Importing WBD\"\n+      import_country_contexts(S3CSVReader.read(WBD_FILEPATH), WBD_FILEPATH)\n+      Rails.logger.info \"Importing INPUTS\"\n+      import_country_contexts(S3CSVReader.read(INPUTS_FILEPATH), INPUTS_FILEPATH)\n+      Rails.logger.info \"Importing WATER_WITHDRAWAL\"\n+      import_country_contexts(S3CSVReader.read(WATER_WITHDRAWAL_FILEPATH), WATER_WITHDRAWAL_FILEPATH)","path":"app/services/import_agriculture_profile.rb","position":33,"original_position":33,"commit_id":"4d9389b66c8214e61d40cd3c12f6248aec7fcfd0","original_commit_id":"4d9389b66c8214e61d40cd3c12f6248aec7fcfd0","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":"Metrics/LineLength: Line is too long. [101/100]","created_at":"2019-03-21T11:13:22Z","updated_at":"2019-03-21T11:13:24Z","html_url":"https://github.com/Vizzuality/climate-watch/pull/813#discussion_r267710505","pull_request_url":"https://api.github.com/repos/Vizzuality/climate-watch/pulls/813","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/Vizzuality/climate-watch/pulls/comments/267710505"},"html":{"href":"https://github.com/Vizzuality/climate-watch/pull/813#discussion_r267710505"},"pull_request":{"href":"https://api.github.com/repos/Vizzuality/climate-watch/pulls/813"}}},"pull_request":{"url":"https://api.github.com/repos/Vizzuality/climate-watch/pulls/813","id":263005419,"node_id":"MDExOlB1bGxSZXF1ZXN0MjYzMDA1NDE5","html_url":"https://github.com/Vizzuality/climate-watch/pull/813","diff_url":"https://github.com/Vizzuality/climate-watch/pull/813.diff","patch_url":"https://github.com/Vizzuality/climate-watch/pull/813.patch","issue_url":"https://api.github.com/repos/Vizzuality/climate-watch/issues/813","number":813,"state":"open","locked":false,"title":"Release: New Homepage","user":{"login":"simaob","id":10764,"node_id":"MDQ6VXNlcjEwNzY0","avatar_url":"https://avatars2.githubusercontent.com/u/10764?v=4","gravatar_id":"","url":"https://api.github.com/users/simaob","html_url":"https://github.com/simaob","followers_url":"https://api.github.com/users/simaob/followers","following_url":"https://api.github.com/users/simaob/following{/other_user}","gists_url":"https://api.github.com/users/simaob/gists{/gist_id}","starred_url":"https://api.github.com/users/simaob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simaob/subscriptions","organizations_url":"https://api.github.com/users/simaob/orgs","repos_url":"https://api.github.com/users/simaob/repos","events_url":"https://api.github.com/users/simaob/events{/privacy}","received_events_url":"https://api.github.com/users/simaob/received_events","type":"User","site_admin":false},"body":"This very long PR brings to Production the following changes:\r\n\r\n- Updated Homepage!\r\n- User Report feedback button;\r\n- Agriculture Profile, though still behind a feature flag;\r\n- Bug fixes and small changes;\r\n\r\nIt leaves out, from the develop branch, the changes to GHG emissions.","created_at":"2019-03-20T19:25:14Z","updated_at":"2019-03-21T11:13:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"620abb362803e5f4c8fdb2b4798e114182632b37","assignee":null,"assignees":[],"requested_reviewers":[{"login":"kfilip94","id":15097138,"node_id":"MDQ6VXNlcjE1MDk3MTM4","avatar_url":"https://avatars0.githubusercontent.com/u/15097138?v=4","gravatar_id":"","url":"https://api.github.com/users/kfilip94","html_url":"https://github.com/kfilip94","followers_url":"https://api.github.com/users/kfilip94/followers","following_url":"https://api.github.com/users/kfilip94/following{/other_user}","gists_url":"https://api.github.com/users/kfilip94/gists{/gist_id}","starred_url":"https://api.github.com/users/kfilip94/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kfilip94/subscriptions","organizations_url":"https://api.github.com/users/kfilip94/orgs","repos_url":"https://api.github.com/users/kfilip94/repos","events_url":"https://api.github.com/users/kfilip94/events{/privacy}","received_events_url":"https://api.github.com/users/kfilip94/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[{"id":743483758,"node_id":"MDU6TGFiZWw3NDM0ODM3NTg=","url":"https://api.github.com/repos/Vizzuality/climate-watch/labels/RELEASE","name":"RELEASE","color":"c3f473","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/Vizzuality/climate-watch/pulls/813/commits","review_comments_url":"https://api.github.com/repos/Vizzuality/climate-watch/pulls/813/comments","review_comment_url":"https://api.github.com/repos/Vizzuality/climate-watch/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Vizzuality/climate-watch/issues/813/comments","statuses_url":"https://api.github.com/repos/Vizzuality/climate-watch/statuses/4d9389b66c8214e61d40cd3c12f6248aec7fcfd0","head":{"label":"Vizzuality:release/home-updated","ref":"release/home-updated","sha":"4d9389b66c8214e61d40cd3c12f6248aec7fcfd0","user":{"login":"Vizzuality","id":305994,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMwNTk5NA==","avatar_url":"https://avatars3.githubusercontent.com/u/305994?v=4","gravatar_id":"","url":"https://api.github.com/users/Vizzuality","html_url":"https://github.com/Vizzuality","followers_url":"https://api.github.com/users/Vizzuality/followers","following_url":"https://api.github.com/users/Vizzuality/following{/other_user}","gists_url":"https://api.github.com/users/Vizzuality/gists{/gist_id}","starred_url":"https://api.github.com/users/Vizzuality/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vizzuality/subscriptions","organizations_url":"https://api.github.com/users/Vizzuality/orgs","repos_url":"https://api.github.com/users/Vizzuality/repos","events_url":"https://api.github.com/users/Vizzuality/events{/privacy}","received_events_url":"https://api.github.com/users/Vizzuality/received_events","type":"Organization","site_admin":false},"repo":{"id":98279746,"node_id":"MDEwOlJlcG9zaXRvcnk5ODI3OTc0Ng==","name":"climate-watch","full_name":"Vizzuality/climate-watch","private":false,"owner":{"login":"Vizzuality","id":305994,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMwNTk5NA==","avatar_url":"https://avatars3.githubusercontent.com/u/305994?v=4","gravatar_id":"","url":"https://api.github.com/users/Vizzuality","html_url":"https://github.com/Vizzuality","followers_url":"https://api.github.com/users/Vizzuality/followers","following_url":"https://api.github.com/users/Vizzuality/following{/other_user}","gists_url":"https://api.github.com/users/Vizzuality/gists{/gist_id}","starred_url":"https://api.github.com/users/Vizzuality/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vizzuality/subscriptions","organizations_url":"https://api.github.com/users/Vizzuality/orgs","repos_url":"https://api.github.com/users/Vizzuality/repos","events_url":"https://api.github.com/users/Vizzuality/events{/privacy}","received_events_url":"https://api.github.com/users/Vizzuality/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/Vizzuality/climate-watch","description":"Climate Watch: Data for Climate Action","fork":false,"url":"https://api.github.com/repos/Vizzuality/climate-watch","forks_url":"https://api.github.com/repos/Vizzuality/climate-watch/forks","keys_url":"https://api.github.com/repos/Vizzuality/climate-watch/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Vizzuality/climate-watch/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Vizzuality/climate-watch/teams","hooks_url":"https://api.github.com/repos/Vizzuality/climate-watch/hooks","issue_events_url":"https://api.github.com/repos/Vizzuality/climate-watch/issues/events{/number}","events_url":"https://api.github.com/repos/Vizzuality/climate-watch/events","assignees_url":"https://api.github.com/repos/Vizzuality/climate-watch/assignees{/user}","branches_url":"https://api.github.com/repos/Vizzuality/climate-watch/branches{/branch}","tags_url":"https://api.github.com/repos/Vizzuality/climate-watch/tags","blobs_url":"https://api.github.com/repos/Vizzuality/climate-watch/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Vizzuality/climate-watch/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Vizzuality/climate-watch/git/refs{/sha}","trees_url":"https://api.github.com/repos/Vizzuality/climate-watch/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Vizzuality/climate-watch/statuses/{sha}","languages_url":"https://api.github.com/repos/Vizzuality/climate-watch/languages","stargazers_url":"https://api.github.com/repos/Vizzuality/climate-watch/stargazers","contributors_url":"https://api.github.com/repos/Vizzuality/climate-watch/contributors","subscribers_url":"https://api.github.com/repos/Vizzuality/climate-watch/subscribers","subscription_url":"https://api.github.com/repos/Vizzuality/climate-watch/subscription","commits_url":"https://api.github.com/repos/Vizzuality/climate-watch/commits{/sha}","git_commits_url":"https://api.github.com/repos/Vizzuality/climate-watch/git/commits{/sha}","comments_url":"https://api.github.com/repos/Vizzuality/climate-watch/comments{/number}","issue_comment_url":"https://api.github.com/repos/Vizzuality/climate-watch/issues/comments{/number}","contents_url":"https://api.github.com/repos/Vizzuality/climate-watch/contents/{+path}","compare_url":"https://api.github.com/repos/Vizzuality/climate-watch/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Vizzuality/climate-watch/merges","archive_url":"https://api.github.com/repos/Vizzuality/climate-watch/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Vizzuality/climate-watch/downloads","issues_url":"https://api.github.com/repos/Vizzuality/climate-watch/issues{/number}","pulls_url":"https://api.github.com/repos/Vizzuality/climate-watch/pulls{/number}","milestones_url":"https://api.github.com/repos/Vizzuality/climate-watch/milestones{/number}","notifications_url":"https://api.github.com/repos/Vizzuality/climate-watch/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Vizzuality/climate-watch/labels{/name}","releases_url":"https://api.github.com/repos/Vizzuality/climate-watch/releases{/id}","deployments_url":"https://api.github.com/repos/Vizzuality/climate-watch/deployments","created_at":"2017-07-25T07:51:14Z","updated_at":"2019-03-20T19:28:27Z","pushed_at":"2019-03-21T11:12:53Z","git_url":"git://github.com/Vizzuality/climate-watch.git","ssh_url":"git@github.com:Vizzuality/climate-watch.git","clone_url":"https://github.com/Vizzuality/climate-watch.git","svn_url":"https://github.com/Vizzuality/climate-watch","homepage":"https://www.climatewatchdata.org","size":47391,"stargazers_count":12,"watchers_count":12,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":4,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":3,"open_issues":4,"watchers":12,"default_branch":"develop"}},"base":{"label":"Vizzuality:master","ref":"master","sha":"9a6f6b695c0bd7ace78851764c0ef8e1bc7f8001","user":{"login":"Vizzuality","id":305994,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMwNTk5NA==","avatar_url":"https://avatars3.githubusercontent.com/u/305994?v=4","gravatar_id":"","url":"https://api.github.com/users/Vizzuality","html_url":"https://github.com/Vizzuality","followers_url":"https://api.github.com/users/Vizzuality/followers","following_url":"https://api.github.com/users/Vizzuality/following{/other_user}","gists_url":"https://api.github.com/users/Vizzuality/gists{/gist_id}","starred_url":"https://api.github.com/users/Vizzuality/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vizzuality/subscriptions","organizations_url":"https://api.github.com/users/Vizzuality/orgs","repos_url":"https://api.github.com/users/Vizzuality/repos","events_url":"https://api.github.com/users/Vizzuality/events{/privacy}","received_events_url":"https://api.github.com/users/Vizzuality/received_events","type":"Organization","site_admin":false},"repo":{"id":98279746,"node_id":"MDEwOlJlcG9zaXRvcnk5ODI3OTc0Ng==","name":"climate-watch","full_name":"Vizzuality/climate-watch","private":false,"owner":{"login":"Vizzuality","id":305994,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMwNTk5NA==","avatar_url":"https://avatars3.githubusercontent.com/u/305994?v=4","gravatar_id":"","url":"https://api.github.com/users/Vizzuality","html_url":"https://github.com/Vizzuality","followers_url":"https://api.github.com/users/Vizzuality/followers","following_url":"https://api.github.com/users/Vizzuality/following{/other_user}","gists_url":"https://api.github.com/users/Vizzuality/gists{/gist_id}","starred_url":"https://api.github.com/users/Vizzuality/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vizzuality/subscriptions","organizations_url":"https://api.github.com/users/Vizzuality/orgs","repos_url":"https://api.github.com/users/Vizzuality/repos","events_url":"https://api.github.com/users/Vizzuality/events{/privacy}","received_events_url":"https://api.github.com/users/Vizzuality/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/Vizzuality/climate-watch","description":"Climate Watch: Data for Climate Action","fork":false,"url":"https://api.github.com/repos/Vizzuality/climate-watch","forks_url":"https://api.github.com/repos/Vizzuality/climate-watch/forks","keys_url":"https://api.github.com/repos/Vizzuality/climate-watch/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Vizzuality/climate-watch/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Vizzuality/climate-watch/teams","hooks_url":"https://api.github.com/repos/Vizzuality/climate-watch/hooks","issue_events_url":"https://api.github.com/repos/Vizzuality/climate-watch/issues/events{/number}","events_url":"https://api.github.com/repos/Vizzuality/climate-watch/events","assignees_url":"https://api.github.com/repos/Vizzuality/climate-watch/assignees{/user}","branches_url":"https://api.github.com/repos/Vizzuality/climate-watch/branches{/branch}","tags_url":"https://api.github.com/repos/Vizzuality/climate-watch/tags","blobs_url":"https://api.github.com/repos/Vizzuality/climate-watch/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Vizzuality/climate-watch/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Vizzuality/climate-watch/git/refs{/sha}","trees_url":"https://api.github.com/repos/Vizzuality/climate-watch/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Vizzuality/climate-watch/statuses/{sha}","languages_url":"https://api.github.com/repos/Vizzuality/climate-watch/languages","stargazers_url":"https://api.github.com/repos/Vizzuality/climate-watch/stargazers","contributors_url":"https://api.github.com/repos/Vizzuality/climate-watch/contributors","subscribers_url":"https://api.github.com/repos/Vizzuality/climate-watch/subscribers","subscription_url":"https://api.github.com/repos/Vizzuality/climate-watch/subscription","commits_url":"https://api.github.com/repos/Vizzuality/climate-watch/commits{/sha}","git_commits_url":"https://api.github.com/repos/Vizzuality/climate-watch/git/commits{/sha}","comments_url":"https://api.github.com/repos/Vizzuality/climate-watch/comments{/number}","issue_comment_url":"https://api.github.com/repos/Vizzuality/climate-watch/issues/comments{/number}","contents_url":"https://api.github.com/repos/Vizzuality/climate-watch/contents/{+path}","compare_url":"https://api.github.com/repos/Vizzuality/climate-watch/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Vizzuality/climate-watch/merges","archive_url":"https://api.github.com/repos/Vizzuality/climate-watch/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Vizzuality/climate-watch/downloads","issues_url":"https://api.github.com/repos/Vizzuality/climate-watch/issues{/number}","pulls_url":"https://api.github.com/repos/Vizzuality/climate-watch/pulls{/number}","milestones_url":"https://api.github.com/repos/Vizzuality/climate-watch/milestones{/number}","notifications_url":"https://api.github.com/repos/Vizzuality/climate-watch/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Vizzuality/climate-watch/labels{/name}","releases_url":"https://api.github.com/repos/Vizzuality/climate-watch/releases{/id}","deployments_url":"https://api.github.com/repos/Vizzuality/climate-watch/deployments","created_at":"2017-07-25T07:51:14Z","updated_at":"2019-03-20T19:28:27Z","pushed_at":"2019-03-21T11:12:53Z","git_url":"git://github.com/Vizzuality/climate-watch.git","ssh_url":"git@github.com:Vizzuality/climate-watch.git","clone_url":"https://github.com/Vizzuality/climate-watch.git","svn_url":"https://github.com/Vizzuality/climate-watch","homepage":"https://www.climatewatchdata.org","size":47391,"stargazers_count":12,"watchers_count":12,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":4,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":3,"open_issues":4,"watchers":12,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/Vizzuality/climate-watch/pulls/813"},"html":{"href":"https://github.com/Vizzuality/climate-watch/pull/813"},"issue":{"href":"https://api.github.com/repos/Vizzuality/climate-watch/issues/813"},"comments":{"href":"https://api.github.com/repos/Vizzuality/climate-watch/issues/813/comments"},"review_comments":{"href":"https://api.github.com/repos/Vizzuality/climate-watch/pulls/813/comments"},"review_comment":{"href":"https://api.github.com/repos/Vizzuality/climate-watch/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Vizzuality/climate-watch/pulls/813/commits"},"statuses":{"href":"https://api.github.com/repos/Vizzuality/climate-watch/statuses/4d9389b66c8214e61d40cd3c12f6248aec7fcfd0"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"houndci-bot"}}