{"action":"created","comment":{"url":"https://api.github.com/repos/metasfresh/metasfresh-webui-frontend/pulls/comments/175634358","pull_request_review_id":105195118,"id":175634358,"diff_hunk":"@@ -0,0 +1,77 @@\n+import React, { Component } from 'react';\n+import BarcodeScanner, { BarcodeScannerResult } from './BarcodeScanner';\n+\n+function addBarcodeScanner(WrappedComponent) {\n+  return class BarcodeScannerWidget extends Component {\n+    constructor(props) {\n+      super(props);\n+\n+      this.state = {\n+        scanning: false,\n+        result: null,\n+        barcodeSelected: null,\n+      };\n+    }\n+\n+    _scanBarcode = val => {","path":"src/components/widget/BarcodeScanner/BarcodeScannerWidget.js","position":16,"original_position":16,"commit_id":"2939c15e727561b30a8e56d7784e2653b573493f","original_commit_id":"2939c15e727561b30a8e56d7784e2653b573493f","user":{"login":"PabloSichert","id":4450694,"avatar_url":"https://avatars2.githubusercontent.com/u/4450694?v=4","gravatar_id":"","url":"https://api.github.com/users/PabloSichert","html_url":"https://github.com/PabloSichert","followers_url":"https://api.github.com/users/PabloSichert/followers","following_url":"https://api.github.com/users/PabloSichert/following{/other_user}","gists_url":"https://api.github.com/users/PabloSichert/gists{/gist_id}","starred_url":"https://api.github.com/users/PabloSichert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PabloSichert/subscriptions","organizations_url":"https://api.github.com/users/PabloSichert/orgs","repos_url":"https://api.github.com/users/PabloSichert/repos","events_url":"https://api.github.com/users/PabloSichert/events{/privacy}","received_events_url":"https://api.github.com/users/PabloSichert/received_events","type":"User","site_admin":false},"body":"Does the leading underscore have any implication here or could it be removed?","created_at":"2018-03-20T01:35:58Z","updated_at":"2018-03-20T01:35:58Z","html_url":"https://github.com/metasfresh/metasfresh-webui-frontend/pull/1690#discussion_r175634358","pull_request_url":"https://api.github.com/repos/metasfresh/metasfresh-webui-frontend/pulls/1690","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/metasfresh/metasfresh-webui-frontend/pulls/comments/175634358"},"html":{"href":"https://github.com/metasfresh/metasfresh-webui-frontend/pull/1690#discussion_r175634358"},"pull_request":{"href":"https://api.github.com/repos/metasfresh/metasfresh-webui-frontend/pulls/1690"}}},"pull_request":{"url":"https://api.github.com/repos/metasfresh/metasfresh-webui-frontend/pulls/1690","id":176057581,"html_url":"https://github.com/metasfresh/metasfresh-webui-frontend/pull/1690","diff_url":"https://github.com/metasfresh/metasfresh-webui-frontend/pull/1690.diff","patch_url":"https://github.com/metasfresh/metasfresh-webui-frontend/pull/1690.patch","issue_url":"https://api.github.com/repos/metasfresh/metasfresh-webui-frontend/issues/1690","number":1690,"state":"open","locked":false,"title":"Barcode scanner in lookup widgets","user":{"login":"siemiatj","id":513460,"avatar_url":"https://avatars1.githubusercontent.com/u/513460?v=4","gravatar_id":"","url":"https://api.github.com/users/siemiatj","html_url":"https://github.com/siemiatj","followers_url":"https://api.github.com/users/siemiatj/followers","following_url":"https://api.github.com/users/siemiatj/following{/other_user}","gists_url":"https://api.github.com/users/siemiatj/gists{/gist_id}","starred_url":"https://api.github.com/users/siemiatj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/siemiatj/subscriptions","organizations_url":"https://api.github.com/users/siemiatj/orgs","repos_url":"https://api.github.com/users/siemiatj/repos","events_url":"https://api.github.com/users/siemiatj/events{/privacy}","received_events_url":"https://api.github.com/users/siemiatj/received_events","type":"User","site_admin":false},"body":"Rewrite BarcodeScanner so that it's easy to add it to other fields.","created_at":"2018-03-20T00:06:21Z","updated_at":"2018-03-20T01:35:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"16218f7de7d986aee04595ce4481e9ae7d7dfaff","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/metasfresh/metasfresh-webui-frontend/pulls/1690/commits","review_comments_url":"https://api.github.com/repos/metasfresh/metasfresh-webui-frontend/pulls/1690/comments","review_comment_url":"https://api.github.com/repos/metasfresh/metasfresh-webui-frontend/pulls/comments{/number}","comments_url":"https://api.github.com/repos/metasfresh/metasfresh-webui-frontend/issues/1690/comments","statuses_url":"https://api.github.com/repos/metasfresh/metasfresh-webui-frontend/statuses/2939c15e727561b30a8e56d7784e2653b573493f","head":{"label":"metasfresh:dev-1681","ref":"dev-1681","sha":"2939c15e727561b30a8e56d7784e2653b573493f","user":{"login":"metasfresh","id":13364239,"avatar_url":"https://avatars3.githubusercontent.com/u/13364239?v=4","gravatar_id":"","url":"https://api.github.com/users/metasfresh","html_url":"https://github.com/metasfresh","followers_url":"https://api.github.com/users/metasfresh/followers","following_url":"https://api.github.com/users/metasfresh/following{/other_user}","gists_url":"https://api.github.com/users/metasfresh/gists{/gist_id}","starred_url":"https://api.github.com/users/metasfresh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/metasfresh/subscriptions","organizations_url":"https://api.github.com/users/metasfresh/orgs","repos_url":"https://api.github.com/users/metasfresh/repos","events_url":"https://api.github.com/users/metasfresh/events{/privacy}","received_events_url":"https://api.github.com/users/metasfresh/received_events","type":"Organization","site_admin":false},"repo":{"id":62222753,"name":"metasfresh-webui-frontend","full_name":"metasfresh/metasfresh-webui-frontend","owner":{"login":"metasfresh","id":13364239,"avatar_url":"https://avatars3.githubusercontent.com/u/13364239?v=4","gravatar_id":"","url":"https://api.github.com/users/metasfresh","html_url":"https://github.com/metasfresh","followers_url":"https://api.github.com/users/metasfresh/followers","following_url":"https://api.github.com/users/metasfresh/following{/other_user}","gists_url":"https://api.github.com/users/metasfresh/gists{/gist_id}","starred_url":"https://api.github.com/users/metasfresh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/metasfresh/subscriptions","organizations_url":"https://api.github.com/users/metasfresh/orgs","repos_url":"https://api.github.com/users/metasfresh/repos","events_url":"https://api.github.com/users/metasfresh/events{/privacy}","received_events_url":"https://api.github.com/users/metasfresh/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/metasfresh/metasfresh-webui-frontend","description":"metasfresh Webui Frontend","fork":false,"url":"https://api.github.com/repos/metasfresh/metasfresh-webui-frontend","forks_url":"https://api.github.com/repos/metasfresh/metasfresh-webui-frontend/forks","keys_url":"https://api.github.com/repos/metasfresh/metasfresh-webui-frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/metasfresh/metasfresh-webui-frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/metasfresh/metasfresh-webui-frontend/teams","hooks_url":"https://api.github.com/repos/metasfresh/metasfresh-webui-frontend/hooks","issue_events_url":"https://api.github.com/repos/metasfresh/metasfresh-webui-frontend/issues/events{/number}","events_url":"https://api.github.com/repos/metasfresh/metasfresh-webui-frontend/events","assignees_url":"https://api.github.com/repos/metasfresh/metasfresh-webui-frontend/assignees{/user}","branches_url":"https://api.github.com/repos/metasfresh/metasfresh-webui-frontend/branches{/branch}","tags_url":"https://api.github.com/repos/metasfresh/metasfresh-webui-frontend/tags","blobs_url":"https://api.github.com/repos/metasfresh/metasfresh-webui-frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/metasfresh/metasfresh-webui-frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/metasfresh/metasfresh-webui-frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/metasfresh/metasfresh-webui-frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/metasfresh/metasfresh-webui-frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/metasfresh/metasfresh-webui-frontend/languages","stargazers_url":"https://api.github.com/repos/metasfresh/metasfresh-webui-frontend/stargazers","contributors_url":"https://api.github.com/repos/metasfresh/metasfresh-webui-frontend/contributors","subscribers_url":"https://api.github.com/repos/metasfresh/metasfresh-webui-frontend/subscribers","subscription_url":"https://api.github.com/repos/metasfresh/metasfresh-webui-frontend/subscription","commits_url":"https://api.github.com/repos/metasfresh/metasfresh-webui-frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/metasfresh/metasfresh-webui-frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/metasfresh/metasfresh-webui-frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/metasfresh/metasfresh-webui-frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/metasfresh/metasfresh-webui-frontend/contents/{+path}","compare_url":"https://api.github.com/repos/metasfresh/metasfresh-webui-frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/metasfresh/metasfresh-webui-frontend/merges","archive_url":"https://api.github.com/repos/metasfresh/metasfresh-webui-frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/metasfresh/metasfresh-webui-frontend/downloads","issues_url":"https://api.github.com/repos/metasfresh/metasfresh-webui-frontend/issues{/number}","pulls_url":"https://api.github.com/repos/metasfresh/metasfresh-webui-frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/metasfresh/metasfresh-webui-frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/metasfresh/metasfresh-webui-frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/metasfresh/metasfresh-webui-frontend/labels{/name}","releases_url":"https://api.github.com/repos/metasfresh/metasfresh-webui-frontend/releases{/id}","deployments_url":"https://api.github.com/repos/metasfresh/metasfresh-webui-frontend/deployments","created_at":"2016-06-29T12:06:13Z","updated_at":"2018-03-19T06:08:59Z","pushed_at":"2018-03-20T01:09:37Z","git_url":"git://github.com/metasfresh/metasfresh-webui-frontend.git","ssh_url":"git@github.com:metasfresh/metasfresh-webui-frontend.git","clone_url":"https://github.com/metasfresh/metasfresh-webui-frontend.git","svn_url":"https://github.com/metasfresh/metasfresh-webui-frontend","homepage":null,"size":5543,"stargazers_count":21,"watchers_count":21,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":13,"mirror_url":null,"archived":false,"open_issues_count":115,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0"},"forks":13,"open_issues":115,"watchers":21,"default_branch":"master"}},"base":{"label":"metasfresh:master","ref":"master","sha":"f4fd7b1ba568c347ae72af45c947001404ea73ab","user":{"login":"metasfresh","id":13364239,"avatar_url":"https://avatars3.githubusercontent.com/u/13364239?v=4","gravatar_id":"","url":"https://api.github.com/users/metasfresh","html_url":"https://github.com/metasfresh","followers_url":"https://api.github.com/users/metasfresh/followers","following_url":"https://api.github.com/users/metasfresh/following{/other_user}","gists_url":"https://api.github.com/users/metasfresh/gists{/gist_id}","starred_url":"https://api.github.com/users/metasfresh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/metasfresh/subscriptions","organizations_url":"https://api.github.com/users/metasfresh/orgs","repos_url":"https://api.github.com/users/metasfresh/repos","events_url":"https://api.github.com/users/metasfresh/events{/privacy}","received_events_url":"https://api.github.com/users/metasfresh/received_events","type":"Organization","site_admin":false},"repo":{"id":62222753,"name":"metasfresh-webui-frontend","full_name":"metasfresh/metasfresh-webui-frontend","owner":{"login":"metasfresh","id":13364239,"avatar_url":"https://avatars3.githubusercontent.com/u/13364239?v=4","gravatar_id":"","url":"https://api.github.com/users/metasfresh","html_url":"https://github.com/metasfresh","followers_url":"https://api.github.com/users/metasfresh/followers","following_url":"https://api.github.com/users/metasfresh/following{/other_user}","gists_url":"https://api.github.com/users/metasfresh/gists{/gist_id}","starred_url":"https://api.github.com/users/metasfresh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/metasfresh/subscriptions","organizations_url":"https://api.github.com/users/metasfresh/orgs","repos_url":"https://api.github.com/users/metasfresh/repos","events_url":"https://api.github.com/users/metasfresh/events{/privacy}","received_events_url":"https://api.github.com/users/metasfresh/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/metasfresh/metasfresh-webui-frontend","description":"metasfresh Webui Frontend","fork":false,"url":"https://api.github.com/repos/metasfresh/metasfresh-webui-frontend","forks_url":"https://api.github.com/repos/metasfresh/metasfresh-webui-frontend/forks","keys_url":"https://api.github.com/repos/metasfresh/metasfresh-webui-frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/metasfresh/metasfresh-webui-frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/metasfresh/metasfresh-webui-frontend/teams","hooks_url":"https://api.github.com/repos/metasfresh/metasfresh-webui-frontend/hooks","issue_events_url":"https://api.github.com/repos/metasfresh/metasfresh-webui-frontend/issues/events{/number}","events_url":"https://api.github.com/repos/metasfresh/metasfresh-webui-frontend/events","assignees_url":"https://api.github.com/repos/metasfresh/metasfresh-webui-frontend/assignees{/user}","branches_url":"https://api.github.com/repos/metasfresh/metasfresh-webui-frontend/branches{/branch}","tags_url":"https://api.github.com/repos/metasfresh/metasfresh-webui-frontend/tags","blobs_url":"https://api.github.com/repos/metasfresh/metasfresh-webui-frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/metasfresh/metasfresh-webui-frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/metasfresh/metasfresh-webui-frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/metasfresh/metasfresh-webui-frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/metasfresh/metasfresh-webui-frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/metasfresh/metasfresh-webui-frontend/languages","stargazers_url":"https://api.github.com/repos/metasfresh/metasfresh-webui-frontend/stargazers","contributors_url":"https://api.github.com/repos/metasfresh/metasfresh-webui-frontend/contributors","subscribers_url":"https://api.github.com/repos/metasfresh/metasfresh-webui-frontend/subscribers","subscription_url":"https://api.github.com/repos/metasfresh/metasfresh-webui-frontend/subscription","commits_url":"https://api.github.com/repos/metasfresh/metasfresh-webui-frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/metasfresh/metasfresh-webui-frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/metasfresh/metasfresh-webui-frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/metasfresh/metasfresh-webui-frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/metasfresh/metasfresh-webui-frontend/contents/{+path}","compare_url":"https://api.github.com/repos/metasfresh/metasfresh-webui-frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/metasfresh/metasfresh-webui-frontend/merges","archive_url":"https://api.github.com/repos/metasfresh/metasfresh-webui-frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/metasfresh/metasfresh-webui-frontend/downloads","issues_url":"https://api.github.com/repos/metasfresh/metasfresh-webui-frontend/issues{/number}","pulls_url":"https://api.github.com/repos/metasfresh/metasfresh-webui-frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/metasfresh/metasfresh-webui-frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/metasfresh/metasfresh-webui-frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/metasfresh/metasfresh-webui-frontend/labels{/name}","releases_url":"https://api.github.com/repos/metasfresh/metasfresh-webui-frontend/releases{/id}","deployments_url":"https://api.github.com/repos/metasfresh/metasfresh-webui-frontend/deployments","created_at":"2016-06-29T12:06:13Z","updated_at":"2018-03-19T06:08:59Z","pushed_at":"2018-03-20T01:09:37Z","git_url":"git://github.com/metasfresh/metasfresh-webui-frontend.git","ssh_url":"git@github.com:metasfresh/metasfresh-webui-frontend.git","clone_url":"https://github.com/metasfresh/metasfresh-webui-frontend.git","svn_url":"https://github.com/metasfresh/metasfresh-webui-frontend","homepage":null,"size":5543,"stargazers_count":21,"watchers_count":21,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":13,"mirror_url":null,"archived":false,"open_issues_count":115,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0"},"forks":13,"open_issues":115,"watchers":21,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/metasfresh/metasfresh-webui-frontend/pulls/1690"},"html":{"href":"https://github.com/metasfresh/metasfresh-webui-frontend/pull/1690"},"issue":{"href":"https://api.github.com/repos/metasfresh/metasfresh-webui-frontend/issues/1690"},"comments":{"href":"https://api.github.com/repos/metasfresh/metasfresh-webui-frontend/issues/1690/comments"},"review_comments":{"href":"https://api.github.com/repos/metasfresh/metasfresh-webui-frontend/pulls/1690/comments"},"review_comment":{"href":"https://api.github.com/repos/metasfresh/metasfresh-webui-frontend/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/metasfresh/metasfresh-webui-frontend/pulls/1690/commits"},"statuses":{"href":"https://api.github.com/repos/metasfresh/metasfresh-webui-frontend/statuses/2939c15e727561b30a8e56d7784e2653b573493f"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"PabloSichert"}}