{"action":"created","comment":{"url":"https://api.github.com/repos/OpenEnergyDashboard/OED/pulls/comments/177292434","pull_request_review_id":107135056,"id":177292434,"diff_hunk":"@@ -8,16 +8,18 @@ const moment = require('moment');\n const streamBuffers = require('stream-buffers');\n const multer = require('multer');\n const streamToDB = require('../services/loadFromCsvStream');\n+const { insertMeters } = require('../services/readMamacMeters');\n const authenticator = require('./authenticator');\n const validate = require('jsonschema').validate;\n+const { log } = require('../log');","path":"src/server/routes/fileProcessing.js","position":7,"original_position":7,"commit_id":"27bbf2bc1afafbe9d742eb2e53360305662b2902","original_commit_id":"27bbf2bc1afafbe9d742eb2e53360305662b2902","user":{"login":"johndiiorio","id":22435660,"avatar_url":"https://avatars2.githubusercontent.com/u/22435660?v=4","gravatar_id":"","url":"https://api.github.com/users/johndiiorio","html_url":"https://github.com/johndiiorio","followers_url":"https://api.github.com/users/johndiiorio/followers","following_url":"https://api.github.com/users/johndiiorio/following{/other_user}","gists_url":"https://api.github.com/users/johndiiorio/gists{/gist_id}","starred_url":"https://api.github.com/users/johndiiorio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johndiiorio/subscriptions","organizations_url":"https://api.github.com/users/johndiiorio/orgs","repos_url":"https://api.github.com/users/johndiiorio/repos","events_url":"https://api.github.com/users/johndiiorio/events{/privacy}","received_events_url":"https://api.github.com/users/johndiiorio/received_events","type":"User","site_admin":false},"body":"I don't think this import is needed.","created_at":"2018-03-27T02:42:19Z","updated_at":"2018-03-27T02:43:50Z","html_url":"https://github.com/OpenEnergyDashboard/OED/pull/321#discussion_r177292434","pull_request_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/pulls/321","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/OpenEnergyDashboard/OED/pulls/comments/177292434"},"html":{"href":"https://github.com/OpenEnergyDashboard/OED/pull/321#discussion_r177292434"},"pull_request":{"href":"https://api.github.com/repos/OpenEnergyDashboard/OED/pulls/321"}}},"pull_request":{"url":"https://api.github.com/repos/OpenEnergyDashboard/OED/pulls/321","id":177158279,"html_url":"https://github.com/OpenEnergyDashboard/OED/pull/321","diff_url":"https://github.com/OpenEnergyDashboard/OED/pull/321.diff","patch_url":"https://github.com/OpenEnergyDashboard/OED/pull/321.patch","issue_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/issues/321","number":321,"state":"open","locked":false,"title":"Add meter","user":{"login":"sandeepacharya464","id":19838478,"avatar_url":"https://avatars0.githubusercontent.com/u/19838478?v=4","gravatar_id":"","url":"https://api.github.com/users/sandeepacharya464","html_url":"https://github.com/sandeepacharya464","followers_url":"https://api.github.com/users/sandeepacharya464/followers","following_url":"https://api.github.com/users/sandeepacharya464/following{/other_user}","gists_url":"https://api.github.com/users/sandeepacharya464/gists{/gist_id}","starred_url":"https://api.github.com/users/sandeepacharya464/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sandeepacharya464/subscriptions","organizations_url":"https://api.github.com/users/sandeepacharya464/orgs","repos_url":"https://api.github.com/users/sandeepacharya464/repos","events_url":"https://api.github.com/users/sandeepacharya464/events{/privacy}","received_events_url":"https://api.github.com/users/sandeepacharya464/received_events","type":"User","site_admin":false},"body":"1) Refactored admin component into addMeter,addReadings, and preferences component.\r\n2) Separated addMamacMeter script from methods associated with inserting meters.\r\n3) Created a UI to add Mamac meters in the admin section. The file format is assumed to have 'ip' header.\r\n4) Add reading UI and Add meter UI synchronized. ","created_at":"2018-03-23T18:59:57Z","updated_at":"2018-03-27T02:43:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b4b1c5b31942be5c73b8a95a1d442a676e7f015d","assignee":null,"assignees":[],"requested_reviewers":[{"login":"shuheif","id":10185165,"avatar_url":"https://avatars0.githubusercontent.com/u/10185165?v=4","gravatar_id":"","url":"https://api.github.com/users/shuheif","html_url":"https://github.com/shuheif","followers_url":"https://api.github.com/users/shuheif/followers","following_url":"https://api.github.com/users/shuheif/following{/other_user}","gists_url":"https://api.github.com/users/shuheif/gists{/gist_id}","starred_url":"https://api.github.com/users/shuheif/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shuheif/subscriptions","organizations_url":"https://api.github.com/users/shuheif/orgs","repos_url":"https://api.github.com/users/shuheif/repos","events_url":"https://api.github.com/users/shuheif/events{/privacy}","received_events_url":"https://api.github.com/users/shuheif/received_events","type":"User","site_admin":false},{"login":"buip","id":25159193,"avatar_url":"https://avatars3.githubusercontent.com/u/25159193?v=4","gravatar_id":"","url":"https://api.github.com/users/buip","html_url":"https://github.com/buip","followers_url":"https://api.github.com/users/buip/followers","following_url":"https://api.github.com/users/buip/following{/other_user}","gists_url":"https://api.github.com/users/buip/gists{/gist_id}","starred_url":"https://api.github.com/users/buip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/buip/subscriptions","organizations_url":"https://api.github.com/users/buip/orgs","repos_url":"https://api.github.com/users/buip/repos","events_url":"https://api.github.com/users/buip/events{/privacy}","received_events_url":"https://api.github.com/users/buip/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/pulls/321/commits","review_comments_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/pulls/321/comments","review_comment_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/pulls/comments{/number}","comments_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/issues/321/comments","statuses_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/statuses/27bbf2bc1afafbe9d742eb2e53360305662b2902","head":{"label":"OpenEnergyDashboard:add_meter","ref":"add_meter","sha":"27bbf2bc1afafbe9d742eb2e53360305662b2902","user":{"login":"OpenEnergyDashboard","id":32343363,"avatar_url":"https://avatars1.githubusercontent.com/u/32343363?v=4","gravatar_id":"","url":"https://api.github.com/users/OpenEnergyDashboard","html_url":"https://github.com/OpenEnergyDashboard","followers_url":"https://api.github.com/users/OpenEnergyDashboard/followers","following_url":"https://api.github.com/users/OpenEnergyDashboard/following{/other_user}","gists_url":"https://api.github.com/users/OpenEnergyDashboard/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenEnergyDashboard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenEnergyDashboard/subscriptions","organizations_url":"https://api.github.com/users/OpenEnergyDashboard/orgs","repos_url":"https://api.github.com/users/OpenEnergyDashboard/repos","events_url":"https://api.github.com/users/OpenEnergyDashboard/events{/privacy}","received_events_url":"https://api.github.com/users/OpenEnergyDashboard/received_events","type":"Organization","site_admin":false},"repo":{"id":71814050,"name":"OED","full_name":"OpenEnergyDashboard/OED","owner":{"login":"OpenEnergyDashboard","id":32343363,"avatar_url":"https://avatars1.githubusercontent.com/u/32343363?v=4","gravatar_id":"","url":"https://api.github.com/users/OpenEnergyDashboard","html_url":"https://github.com/OpenEnergyDashboard","followers_url":"https://api.github.com/users/OpenEnergyDashboard/followers","following_url":"https://api.github.com/users/OpenEnergyDashboard/following{/other_user}","gists_url":"https://api.github.com/users/OpenEnergyDashboard/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenEnergyDashboard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenEnergyDashboard/subscriptions","organizations_url":"https://api.github.com/users/OpenEnergyDashboard/orgs","repos_url":"https://api.github.com/users/OpenEnergyDashboard/repos","events_url":"https://api.github.com/users/OpenEnergyDashboard/events{/privacy}","received_events_url":"https://api.github.com/users/OpenEnergyDashboard/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/OpenEnergyDashboard/OED","description":"Open Energy Dashboard (OED)","fork":false,"url":"https://api.github.com/repos/OpenEnergyDashboard/OED","forks_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/forks","keys_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/teams","hooks_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/hooks","issue_events_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/issues/events{/number}","events_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/events","assignees_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/assignees{/user}","branches_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/branches{/branch}","tags_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/tags","blobs_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/git/refs{/sha}","trees_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/statuses/{sha}","languages_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/languages","stargazers_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/stargazers","contributors_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/contributors","subscribers_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/subscribers","subscription_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/subscription","commits_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/commits{/sha}","git_commits_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/git/commits{/sha}","comments_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/comments{/number}","issue_comment_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/issues/comments{/number}","contents_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/contents/{+path}","compare_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/merges","archive_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/downloads","issues_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/issues{/number}","pulls_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/pulls{/number}","milestones_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/milestones{/number}","notifications_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/labels{/name}","releases_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/releases{/id}","deployments_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/deployments","created_at":"2016-10-24T17:30:37Z","updated_at":"2018-03-25T03:51:19Z","pushed_at":"2018-03-26T22:03:26Z","git_url":"git://github.com/OpenEnergyDashboard/OED.git","ssh_url":"git@github.com:OpenEnergyDashboard/OED.git","clone_url":"https://github.com/OpenEnergyDashboard/OED.git","svn_url":"https://github.com/OpenEnergyDashboard/OED","homepage":"","size":8748,"stargazers_count":14,"watchers_count":14,"language":"TypeScript","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":63,"license":{"key":"mpl-2.0","name":"Mozilla Public License 2.0","spdx_id":"MPL-2.0","url":"https://api.github.com/licenses/mpl-2.0"},"forks":3,"open_issues":63,"watchers":14,"default_branch":"development"}},"base":{"label":"OpenEnergyDashboard:development","ref":"development","sha":"87bd87062dafb1b1ccc526c516e9ff1623ae3fbc","user":{"login":"OpenEnergyDashboard","id":32343363,"avatar_url":"https://avatars1.githubusercontent.com/u/32343363?v=4","gravatar_id":"","url":"https://api.github.com/users/OpenEnergyDashboard","html_url":"https://github.com/OpenEnergyDashboard","followers_url":"https://api.github.com/users/OpenEnergyDashboard/followers","following_url":"https://api.github.com/users/OpenEnergyDashboard/following{/other_user}","gists_url":"https://api.github.com/users/OpenEnergyDashboard/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenEnergyDashboard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenEnergyDashboard/subscriptions","organizations_url":"https://api.github.com/users/OpenEnergyDashboard/orgs","repos_url":"https://api.github.com/users/OpenEnergyDashboard/repos","events_url":"https://api.github.com/users/OpenEnergyDashboard/events{/privacy}","received_events_url":"https://api.github.com/users/OpenEnergyDashboard/received_events","type":"Organization","site_admin":false},"repo":{"id":71814050,"name":"OED","full_name":"OpenEnergyDashboard/OED","owner":{"login":"OpenEnergyDashboard","id":32343363,"avatar_url":"https://avatars1.githubusercontent.com/u/32343363?v=4","gravatar_id":"","url":"https://api.github.com/users/OpenEnergyDashboard","html_url":"https://github.com/OpenEnergyDashboard","followers_url":"https://api.github.com/users/OpenEnergyDashboard/followers","following_url":"https://api.github.com/users/OpenEnergyDashboard/following{/other_user}","gists_url":"https://api.github.com/users/OpenEnergyDashboard/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenEnergyDashboard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenEnergyDashboard/subscriptions","organizations_url":"https://api.github.com/users/OpenEnergyDashboard/orgs","repos_url":"https://api.github.com/users/OpenEnergyDashboard/repos","events_url":"https://api.github.com/users/OpenEnergyDashboard/events{/privacy}","received_events_url":"https://api.github.com/users/OpenEnergyDashboard/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/OpenEnergyDashboard/OED","description":"Open Energy Dashboard (OED)","fork":false,"url":"https://api.github.com/repos/OpenEnergyDashboard/OED","forks_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/forks","keys_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/teams","hooks_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/hooks","issue_events_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/issues/events{/number}","events_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/events","assignees_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/assignees{/user}","branches_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/branches{/branch}","tags_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/tags","blobs_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/git/refs{/sha}","trees_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/statuses/{sha}","languages_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/languages","stargazers_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/stargazers","contributors_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/contributors","subscribers_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/subscribers","subscription_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/subscription","commits_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/commits{/sha}","git_commits_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/git/commits{/sha}","comments_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/comments{/number}","issue_comment_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/issues/comments{/number}","contents_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/contents/{+path}","compare_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/merges","archive_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/downloads","issues_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/issues{/number}","pulls_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/pulls{/number}","milestones_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/milestones{/number}","notifications_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/labels{/name}","releases_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/releases{/id}","deployments_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/deployments","created_at":"2016-10-24T17:30:37Z","updated_at":"2018-03-25T03:51:19Z","pushed_at":"2018-03-26T22:03:26Z","git_url":"git://github.com/OpenEnergyDashboard/OED.git","ssh_url":"git@github.com:OpenEnergyDashboard/OED.git","clone_url":"https://github.com/OpenEnergyDashboard/OED.git","svn_url":"https://github.com/OpenEnergyDashboard/OED","homepage":"","size":8748,"stargazers_count":14,"watchers_count":14,"language":"TypeScript","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":63,"license":{"key":"mpl-2.0","name":"Mozilla Public License 2.0","spdx_id":"MPL-2.0","url":"https://api.github.com/licenses/mpl-2.0"},"forks":3,"open_issues":63,"watchers":14,"default_branch":"development"}},"_links":{"self":{"href":"https://api.github.com/repos/OpenEnergyDashboard/OED/pulls/321"},"html":{"href":"https://github.com/OpenEnergyDashboard/OED/pull/321"},"issue":{"href":"https://api.github.com/repos/OpenEnergyDashboard/OED/issues/321"},"comments":{"href":"https://api.github.com/repos/OpenEnergyDashboard/OED/issues/321/comments"},"review_comments":{"href":"https://api.github.com/repos/OpenEnergyDashboard/OED/pulls/321/comments"},"review_comment":{"href":"https://api.github.com/repos/OpenEnergyDashboard/OED/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/OpenEnergyDashboard/OED/pulls/321/commits"},"statuses":{"href":"https://api.github.com/repos/OpenEnergyDashboard/OED/statuses/27bbf2bc1afafbe9d742eb2e53360305662b2902"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"johndiiorio"}}