{"action":"created","comment":{"url":"https://api.github.com/repos/WikiWatershed/model-my-watershed/pulls/comments/36339651","id":36339651,"diff_hunk":"@@ -73,6 +73,54 @@ var utils = {\n             });\n \n         return md5(JSON.stringify(sortedCollection));\n+    },\n+\n+    convertToMetric: function(value, fromUnit) {","path":"src/mmw/js/src/core/utils.js","position":6,"original_position":6,"commit_id":"4dab63cf671e221503634cfba0283b3ca95b7378","original_commit_id":"4dab63cf671e221503634cfba0283b3ca95b7378","user":{"login":"caseypt","id":1042475,"avatar_url":"https://avatars.githubusercontent.com/u/1042475?v=3","gravatar_id":"","url":"https://api.github.com/users/caseypt","html_url":"https://github.com/caseypt","followers_url":"https://api.github.com/users/caseypt/followers","following_url":"https://api.github.com/users/caseypt/following{/other_user}","gists_url":"https://api.github.com/users/caseypt/gists{/gist_id}","starred_url":"https://api.github.com/users/caseypt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caseypt/subscriptions","organizations_url":"https://api.github.com/users/caseypt/orgs","repos_url":"https://api.github.com/users/caseypt/repos","events_url":"https://api.github.com/users/caseypt/events{/privacy}","received_events_url":"https://api.github.com/users/caseypt/received_events","type":"User","site_admin":false},"body":"Consider modifying `convertToMetric` and `convertToImperial` to take in the desired output unit as a parameter. I think this could make it more clear when using these functions.","created_at":"2015-08-05T18:52:09Z","updated_at":"2015-08-05T18:52:09Z","html_url":"https://github.com/WikiWatershed/model-my-watershed/pull/664#discussion_r36339651","pull_request_url":"https://api.github.com/repos/WikiWatershed/model-my-watershed/pulls/664","_links":{"self":{"href":"https://api.github.com/repos/WikiWatershed/model-my-watershed/pulls/comments/36339651"},"html":{"href":"https://github.com/WikiWatershed/model-my-watershed/pull/664#discussion_r36339651"},"pull_request":{"href":"https://api.github.com/repos/WikiWatershed/model-my-watershed/pulls/664"}}},"pull_request":{"url":"https://api.github.com/repos/WikiWatershed/model-my-watershed/pulls/664","id":41674709,"html_url":"https://github.com/WikiWatershed/model-my-watershed/pull/664","diff_url":"https://github.com/WikiWatershed/model-my-watershed/pull/664.diff","patch_url":"https://github.com/WikiWatershed/model-my-watershed/pull/664.patch","issue_url":"https://api.github.com/repos/WikiWatershed/model-my-watershed/issues/664","number":664,"state":"open","locked":false,"title":"Feature/lol/standarize units","user":{"login":"lliss","id":903219,"avatar_url":"https://avatars.githubusercontent.com/u/903219?v=3","gravatar_id":"","url":"https://api.github.com/users/lliss","html_url":"https://github.com/lliss","followers_url":"https://api.github.com/users/lliss/followers","following_url":"https://api.github.com/users/lliss/following{/other_user}","gists_url":"https://api.github.com/users/lliss/gists{/gist_id}","starred_url":"https://api.github.com/users/lliss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lliss/subscriptions","organizations_url":"https://api.github.com/users/lliss/orgs","repos_url":"https://api.github.com/users/lliss/repos","events_url":"https://api.github.com/users/lliss/events{/privacy}","received_events_url":"https://api.github.com/users/lliss/received_events","type":"User","site_admin":false},"body":"Connects #632 \r\n\r\n* Converts all display units to metric.\r\n* Inputs to TR55 from front end remain in Imperial but display in metric.\r\n* Job results that show pixel counts are converted to area based on approximate latitude.","created_at":"2015-08-05T12:48:59Z","updated_at":"2015-08-05T18:52:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"58d30c6d5dcc67cc21865b24fccfa87f1dd423b4","assignee":{"login":"rajadain","id":1430060,"avatar_url":"https://avatars.githubusercontent.com/u/1430060?v=3","gravatar_id":"","url":"https://api.github.com/users/rajadain","html_url":"https://github.com/rajadain","followers_url":"https://api.github.com/users/rajadain/followers","following_url":"https://api.github.com/users/rajadain/following{/other_user}","gists_url":"https://api.github.com/users/rajadain/gists{/gist_id}","starred_url":"https://api.github.com/users/rajadain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rajadain/subscriptions","organizations_url":"https://api.github.com/users/rajadain/orgs","repos_url":"https://api.github.com/users/rajadain/repos","events_url":"https://api.github.com/users/rajadain/events{/privacy}","received_events_url":"https://api.github.com/users/rajadain/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/WikiWatershed/model-my-watershed/pulls/664/commits","review_comments_url":"https://api.github.com/repos/WikiWatershed/model-my-watershed/pulls/664/comments","review_comment_url":"https://api.github.com/repos/WikiWatershed/model-my-watershed/pulls/comments{/number}","comments_url":"https://api.github.com/repos/WikiWatershed/model-my-watershed/issues/664/comments","statuses_url":"https://api.github.com/repos/WikiWatershed/model-my-watershed/statuses/4dab63cf671e221503634cfba0283b3ca95b7378","head":{"label":"lliss:feature/lol/standarize-units","ref":"feature/lol/standarize-units","sha":"4dab63cf671e221503634cfba0283b3ca95b7378","user":{"login":"lliss","id":903219,"avatar_url":"https://avatars.githubusercontent.com/u/903219?v=3","gravatar_id":"","url":"https://api.github.com/users/lliss","html_url":"https://github.com/lliss","followers_url":"https://api.github.com/users/lliss/followers","following_url":"https://api.github.com/users/lliss/following{/other_user}","gists_url":"https://api.github.com/users/lliss/gists{/gist_id}","starred_url":"https://api.github.com/users/lliss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lliss/subscriptions","organizations_url":"https://api.github.com/users/lliss/orgs","repos_url":"https://api.github.com/users/lliss/repos","events_url":"https://api.github.com/users/lliss/events{/privacy}","received_events_url":"https://api.github.com/users/lliss/received_events","type":"User","site_admin":false},"repo":{"id":36316546,"name":"model-my-watershed","full_name":"lliss/model-my-watershed","owner":{"login":"lliss","id":903219,"avatar_url":"https://avatars.githubusercontent.com/u/903219?v=3","gravatar_id":"","url":"https://api.github.com/users/lliss","html_url":"https://github.com/lliss","followers_url":"https://api.github.com/users/lliss/followers","following_url":"https://api.github.com/users/lliss/following{/other_user}","gists_url":"https://api.github.com/users/lliss/gists{/gist_id}","starred_url":"https://api.github.com/users/lliss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lliss/subscriptions","organizations_url":"https://api.github.com/users/lliss/orgs","repos_url":"https://api.github.com/users/lliss/repos","events_url":"https://api.github.com/users/lliss/events{/privacy}","received_events_url":"https://api.github.com/users/lliss/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lliss/model-my-watershed","description":"The web application front end for Model My Watershed.","fork":true,"url":"https://api.github.com/repos/lliss/model-my-watershed","forks_url":"https://api.github.com/repos/lliss/model-my-watershed/forks","keys_url":"https://api.github.com/repos/lliss/model-my-watershed/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lliss/model-my-watershed/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lliss/model-my-watershed/teams","hooks_url":"https://api.github.com/repos/lliss/model-my-watershed/hooks","issue_events_url":"https://api.github.com/repos/lliss/model-my-watershed/issues/events{/number}","events_url":"https://api.github.com/repos/lliss/model-my-watershed/events","assignees_url":"https://api.github.com/repos/lliss/model-my-watershed/assignees{/user}","branches_url":"https://api.github.com/repos/lliss/model-my-watershed/branches{/branch}","tags_url":"https://api.github.com/repos/lliss/model-my-watershed/tags","blobs_url":"https://api.github.com/repos/lliss/model-my-watershed/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lliss/model-my-watershed/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lliss/model-my-watershed/git/refs{/sha}","trees_url":"https://api.github.com/repos/lliss/model-my-watershed/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lliss/model-my-watershed/statuses/{sha}","languages_url":"https://api.github.com/repos/lliss/model-my-watershed/languages","stargazers_url":"https://api.github.com/repos/lliss/model-my-watershed/stargazers","contributors_url":"https://api.github.com/repos/lliss/model-my-watershed/contributors","subscribers_url":"https://api.github.com/repos/lliss/model-my-watershed/subscribers","subscription_url":"https://api.github.com/repos/lliss/model-my-watershed/subscription","commits_url":"https://api.github.com/repos/lliss/model-my-watershed/commits{/sha}","git_commits_url":"https://api.github.com/repos/lliss/model-my-watershed/git/commits{/sha}","comments_url":"https://api.github.com/repos/lliss/model-my-watershed/comments{/number}","issue_comment_url":"https://api.github.com/repos/lliss/model-my-watershed/issues/comments{/number}","contents_url":"https://api.github.com/repos/lliss/model-my-watershed/contents/{+path}","compare_url":"https://api.github.com/repos/lliss/model-my-watershed/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lliss/model-my-watershed/merges","archive_url":"https://api.github.com/repos/lliss/model-my-watershed/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lliss/model-my-watershed/downloads","issues_url":"https://api.github.com/repos/lliss/model-my-watershed/issues{/number}","pulls_url":"https://api.github.com/repos/lliss/model-my-watershed/pulls{/number}","milestones_url":"https://api.github.com/repos/lliss/model-my-watershed/milestones{/number}","notifications_url":"https://api.github.com/repos/lliss/model-my-watershed/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lliss/model-my-watershed/labels{/name}","releases_url":"https://api.github.com/repos/lliss/model-my-watershed/releases{/id}","created_at":"2015-05-26T18:46:24Z","updated_at":"2015-06-11T19:50:01Z","pushed_at":"2015-08-05T17:38:05Z","git_url":"git://github.com/lliss/model-my-watershed.git","ssh_url":"git@github.com:lliss/model-my-watershed.git","clone_url":"https://github.com/lliss/model-my-watershed.git","svn_url":"https://github.com/lliss/model-my-watershed","homepage":null,"size":14585,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"WikiWatershed:develop","ref":"develop","sha":"3d58bbbf07679b943906c727ce19983f6c93901c","user":{"login":"WikiWatershed","id":8520008,"avatar_url":"https://avatars.githubusercontent.com/u/8520008?v=3","gravatar_id":"","url":"https://api.github.com/users/WikiWatershed","html_url":"https://github.com/WikiWatershed","followers_url":"https://api.github.com/users/WikiWatershed/followers","following_url":"https://api.github.com/users/WikiWatershed/following{/other_user}","gists_url":"https://api.github.com/users/WikiWatershed/gists{/gist_id}","starred_url":"https://api.github.com/users/WikiWatershed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WikiWatershed/subscriptions","organizations_url":"https://api.github.com/users/WikiWatershed/orgs","repos_url":"https://api.github.com/users/WikiWatershed/repos","events_url":"https://api.github.com/users/WikiWatershed/events{/privacy}","received_events_url":"https://api.github.com/users/WikiWatershed/received_events","type":"Organization","site_admin":false},"repo":{"id":32742922,"name":"model-my-watershed","full_name":"WikiWatershed/model-my-watershed","owner":{"login":"WikiWatershed","id":8520008,"avatar_url":"https://avatars.githubusercontent.com/u/8520008?v=3","gravatar_id":"","url":"https://api.github.com/users/WikiWatershed","html_url":"https://github.com/WikiWatershed","followers_url":"https://api.github.com/users/WikiWatershed/followers","following_url":"https://api.github.com/users/WikiWatershed/following{/other_user}","gists_url":"https://api.github.com/users/WikiWatershed/gists{/gist_id}","starred_url":"https://api.github.com/users/WikiWatershed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WikiWatershed/subscriptions","organizations_url":"https://api.github.com/users/WikiWatershed/orgs","repos_url":"https://api.github.com/users/WikiWatershed/repos","events_url":"https://api.github.com/users/WikiWatershed/events{/privacy}","received_events_url":"https://api.github.com/users/WikiWatershed/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/WikiWatershed/model-my-watershed","description":"The web application front end for Model My Watershed.","fork":false,"url":"https://api.github.com/repos/WikiWatershed/model-my-watershed","forks_url":"https://api.github.com/repos/WikiWatershed/model-my-watershed/forks","keys_url":"https://api.github.com/repos/WikiWatershed/model-my-watershed/keys{/key_id}","collaborators_url":"https://api.github.com/repos/WikiWatershed/model-my-watershed/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/WikiWatershed/model-my-watershed/teams","hooks_url":"https://api.github.com/repos/WikiWatershed/model-my-watershed/hooks","issue_events_url":"https://api.github.com/repos/WikiWatershed/model-my-watershed/issues/events{/number}","events_url":"https://api.github.com/repos/WikiWatershed/model-my-watershed/events","assignees_url":"https://api.github.com/repos/WikiWatershed/model-my-watershed/assignees{/user}","branches_url":"https://api.github.com/repos/WikiWatershed/model-my-watershed/branches{/branch}","tags_url":"https://api.github.com/repos/WikiWatershed/model-my-watershed/tags","blobs_url":"https://api.github.com/repos/WikiWatershed/model-my-watershed/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/WikiWatershed/model-my-watershed/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/WikiWatershed/model-my-watershed/git/refs{/sha}","trees_url":"https://api.github.com/repos/WikiWatershed/model-my-watershed/git/trees{/sha}","statuses_url":"https://api.github.com/repos/WikiWatershed/model-my-watershed/statuses/{sha}","languages_url":"https://api.github.com/repos/WikiWatershed/model-my-watershed/languages","stargazers_url":"https://api.github.com/repos/WikiWatershed/model-my-watershed/stargazers","contributors_url":"https://api.github.com/repos/WikiWatershed/model-my-watershed/contributors","subscribers_url":"https://api.github.com/repos/WikiWatershed/model-my-watershed/subscribers","subscription_url":"https://api.github.com/repos/WikiWatershed/model-my-watershed/subscription","commits_url":"https://api.github.com/repos/WikiWatershed/model-my-watershed/commits{/sha}","git_commits_url":"https://api.github.com/repos/WikiWatershed/model-my-watershed/git/commits{/sha}","comments_url":"https://api.github.com/repos/WikiWatershed/model-my-watershed/comments{/number}","issue_comment_url":"https://api.github.com/repos/WikiWatershed/model-my-watershed/issues/comments{/number}","contents_url":"https://api.github.com/repos/WikiWatershed/model-my-watershed/contents/{+path}","compare_url":"https://api.github.com/repos/WikiWatershed/model-my-watershed/compare/{base}...{head}","merges_url":"https://api.github.com/repos/WikiWatershed/model-my-watershed/merges","archive_url":"https://api.github.com/repos/WikiWatershed/model-my-watershed/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/WikiWatershed/model-my-watershed/downloads","issues_url":"https://api.github.com/repos/WikiWatershed/model-my-watershed/issues{/number}","pulls_url":"https://api.github.com/repos/WikiWatershed/model-my-watershed/pulls{/number}","milestones_url":"https://api.github.com/repos/WikiWatershed/model-my-watershed/milestones{/number}","notifications_url":"https://api.github.com/repos/WikiWatershed/model-my-watershed/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/WikiWatershed/model-my-watershed/labels{/name}","releases_url":"https://api.github.com/repos/WikiWatershed/model-my-watershed/releases{/id}","created_at":"2015-03-23T16:02:55Z","updated_at":"2015-07-16T03:33:25Z","pushed_at":"2015-08-05T17:49:31Z","git_url":"git://github.com/WikiWatershed/model-my-watershed.git","ssh_url":"git@github.com:WikiWatershed/model-my-watershed.git","clone_url":"https://github.com/WikiWatershed/model-my-watershed.git","svn_url":"https://github.com/WikiWatershed/model-my-watershed","homepage":null,"size":17361,"stargazers_count":3,"watchers_count":3,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":123,"forks":11,"open_issues":123,"watchers":3,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/WikiWatershed/model-my-watershed/pulls/664"},"html":{"href":"https://github.com/WikiWatershed/model-my-watershed/pull/664"},"issue":{"href":"https://api.github.com/repos/WikiWatershed/model-my-watershed/issues/664"},"comments":{"href":"https://api.github.com/repos/WikiWatershed/model-my-watershed/issues/664/comments"},"review_comments":{"href":"https://api.github.com/repos/WikiWatershed/model-my-watershed/pulls/664/comments"},"review_comment":{"href":"https://api.github.com/repos/WikiWatershed/model-my-watershed/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/WikiWatershed/model-my-watershed/pulls/664/commits"},"statuses":{"href":"https://api.github.com/repos/WikiWatershed/model-my-watershed/statuses/4dab63cf671e221503634cfba0283b3ca95b7378"}}}}