{"action":"created","comment":{"url":"https://api.github.com/repos/it-projects-llc/addons-dev/pulls/comments/225205818","pull_request_review_id":164756449,"id":225205818,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNTIwNTgxOA==","diff_hunk":"@@ -0,0 +1,123 @@\n+odoo.define('event_barcode_partner.EventScanView', function (require) {\n+\"use strict\";\n+\n+var Session = require('web.session');\n+var event_barcode = require('event_barcode.EventScanView');\n+\n+var core = require('web.core');\n+var QWeb = core.qweb;\n+var _t = core._t;\n+\n+\n+event_barcode.EventScanView.include({\n+\n+    start: function() {\n+        var self = this;\n+        this._super.apply(this, arguments);\n+\n+        function isLetter(str) {\n+          return str.length === 1 && str.match(/[a-z]/i);\n+        }\n+\n+        this.$('input#event_client_name_search').on('keypress', function(e){\n+            var name = e.target.value + isLetter(e.key)\n+             ? e.key\n+             : '';\n+            self.on_name_entered(name);\n+        });\n+    },\n+\n+    on_barcode_scanned: function(barcode) {\n+        var self = this;\n+        if (this.attendee && barcode.startsWith('053')) {\n+            this.make_request_and_update('/event_barcode/set_rfid', {\n+                 aid: this.attendee.aid,\n+                 rfid: barcode,\n+            });\n+        } else {\n+            this._super.apply(this, arguments);\n+        }\n+        this.make_request_and_update('/event_barcode/get_attendee_by_barcode', {\n+             barcode: barcode,\n+             event_id: this.action.context.active_id\n+        });\n+    },\n+\n+    on_barcode_scanned_explicit: function(barcode) {\n+        this._super.apply(this, arguments).then(function(result){\n+            if (result.success) {\n+                self.updateCount(\n+                    self.$('.o_event_reg_attendee'),\n+                    result.count\n+                );\n+                // HERE IS NECESSARY TO UPDATE SERVER RESPONSE\n+                self.set_attendee_by_id();\n+                self.notification_manager.success(result.success);\n+            } else if (result.warning) {\n+                self.do_warn(_(\"Warning\"), result.warning);\n+            }\n+        });\n+    },\n+\n+    on_name_entered: function(name) {\n+        this.make_request_and_update('/event_barcode/get_attendees_by_name', {\n+             name: name,\n+             event_id: this.action.context.active_id\n+        });\n+    },\n+\n+    update_client_list: function(data) {\n+        var self = this;\n+        var row_html = '';\n+        var table = this.$('.o_event_barcode_detail.client_info.text-center');\n+        var old_rows = table.find('.client_cell');\n+\n+        this.attendees = data;\n+        this.set_attendee_by_id();\n+\n+        old_rows.remove();\n+        _.each(data, function(att){\n+            row_html = QWeb.render('client_row', {'att':att}) ;\n+            table.append(row_html);\n+        });\n+        var new_rows = table.find('.client_cell').on('click', function(e){\n+            console.log(e, self);\n+            var row = e.target.closest('.client_cell');\n+            var list = row.parentElement;\n+\n+            var aid = row.getAttribute('aid');\n+            $(list).find('.rfid').hide();\n+            $(row).find('.rfid').show();\n+            console.log(Session)\n+            $(row).find('.sign_request').on('click', function(e){","path":"event_barcode_partner/static/src/js/event_barcode_custom.js","position":92,"original_position":92,"commit_id":"3ad45dceb15b7144c17e7f26bcf496f358942080","original_commit_id":"3ad45dceb15b7144c17e7f26bcf496f358942080","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":"'e' is already declared in the upper scope  no-shadow","created_at":"2018-10-15T15:16:05Z","updated_at":"2018-10-15T15:16:07Z","html_url":"https://github.com/it-projects-llc/addons-dev/pull/571#discussion_r225205818","pull_request_url":"https://api.github.com/repos/it-projects-llc/addons-dev/pulls/571","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/it-projects-llc/addons-dev/pulls/comments/225205818"},"html":{"href":"https://github.com/it-projects-llc/addons-dev/pull/571#discussion_r225205818"},"pull_request":{"href":"https://api.github.com/repos/it-projects-llc/addons-dev/pulls/571"}}},"pull_request":{"url":"https://api.github.com/repos/it-projects-llc/addons-dev/pulls/571","id":221828813,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIxODI4ODEz","html_url":"https://github.com/it-projects-llc/addons-dev/pull/571","diff_url":"https://github.com/it-projects-llc/addons-dev/pull/571.diff","patch_url":"https://github.com/it-projects-llc/addons-dev/pull/571.patch","issue_url":"https://api.github.com/repos/it-projects-llc/addons-dev/issues/571","number":571,"state":"open","locked":false,"title":":tada: event_barcode_inteface_custom","user":{"login":"KolushovAlexandr","id":29929423,"node_id":"MDQ6VXNlcjI5OTI5NDIz","avatar_url":"https://avatars1.githubusercontent.com/u/29929423?v=4","gravatar_id":"","url":"https://api.github.com/users/KolushovAlexandr","html_url":"https://github.com/KolushovAlexandr","followers_url":"https://api.github.com/users/KolushovAlexandr/followers","following_url":"https://api.github.com/users/KolushovAlexandr/following{/other_user}","gists_url":"https://api.github.com/users/KolushovAlexandr/gists{/gist_id}","starred_url":"https://api.github.com/users/KolushovAlexandr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KolushovAlexandr/subscriptions","organizations_url":"https://api.github.com/users/KolushovAlexandr/orgs","repos_url":"https://api.github.com/users/KolushovAlexandr/repos","events_url":"https://api.github.com/users/KolushovAlexandr/events{/privacy}","received_events_url":"https://api.github.com/users/KolushovAlexandr/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-10-10T15:11:56Z","updated_at":"2018-10-15T15:16:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f466861fc1cf1cc5cd906b2d63123a5322e7f2cd","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/it-projects-llc/addons-dev/pulls/571/commits","review_comments_url":"https://api.github.com/repos/it-projects-llc/addons-dev/pulls/571/comments","review_comment_url":"https://api.github.com/repos/it-projects-llc/addons-dev/pulls/comments{/number}","comments_url":"https://api.github.com/repos/it-projects-llc/addons-dev/issues/571/comments","statuses_url":"https://api.github.com/repos/it-projects-llc/addons-dev/statuses/3ad45dceb15b7144c17e7f26bcf496f358942080","head":{"label":"KolushovAlexandr:misc-addons-10.0-event_barcode_partner","ref":"misc-addons-10.0-event_barcode_partner","sha":"3ad45dceb15b7144c17e7f26bcf496f358942080","user":{"login":"KolushovAlexandr","id":29929423,"node_id":"MDQ6VXNlcjI5OTI5NDIz","avatar_url":"https://avatars1.githubusercontent.com/u/29929423?v=4","gravatar_id":"","url":"https://api.github.com/users/KolushovAlexandr","html_url":"https://github.com/KolushovAlexandr","followers_url":"https://api.github.com/users/KolushovAlexandr/followers","following_url":"https://api.github.com/users/KolushovAlexandr/following{/other_user}","gists_url":"https://api.github.com/users/KolushovAlexandr/gists{/gist_id}","starred_url":"https://api.github.com/users/KolushovAlexandr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KolushovAlexandr/subscriptions","organizations_url":"https://api.github.com/users/KolushovAlexandr/orgs","repos_url":"https://api.github.com/users/KolushovAlexandr/repos","events_url":"https://api.github.com/users/KolushovAlexandr/events{/privacy}","received_events_url":"https://api.github.com/users/KolushovAlexandr/received_events","type":"User","site_admin":false},"repo":{"id":98859744,"node_id":"MDEwOlJlcG9zaXRvcnk5ODg1OTc0NA==","name":"addons-dev","full_name":"KolushovAlexandr/addons-dev","private":false,"owner":{"login":"KolushovAlexandr","id":29929423,"node_id":"MDQ6VXNlcjI5OTI5NDIz","avatar_url":"https://avatars1.githubusercontent.com/u/29929423?v=4","gravatar_id":"","url":"https://api.github.com/users/KolushovAlexandr","html_url":"https://github.com/KolushovAlexandr","followers_url":"https://api.github.com/users/KolushovAlexandr/followers","following_url":"https://api.github.com/users/KolushovAlexandr/following{/other_user}","gists_url":"https://api.github.com/users/KolushovAlexandr/gists{/gist_id}","starred_url":"https://api.github.com/users/KolushovAlexandr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KolushovAlexandr/subscriptions","organizations_url":"https://api.github.com/users/KolushovAlexandr/orgs","repos_url":"https://api.github.com/users/KolushovAlexandr/repos","events_url":"https://api.github.com/users/KolushovAlexandr/events{/privacy}","received_events_url":"https://api.github.com/users/KolushovAlexandr/received_events","type":"User","site_admin":false},"html_url":"https://github.com/KolushovAlexandr/addons-dev","description":"Addons Forge","fork":true,"url":"https://api.github.com/repos/KolushovAlexandr/addons-dev","forks_url":"https://api.github.com/repos/KolushovAlexandr/addons-dev/forks","keys_url":"https://api.github.com/repos/KolushovAlexandr/addons-dev/keys{/key_id}","collaborators_url":"https://api.github.com/repos/KolushovAlexandr/addons-dev/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/KolushovAlexandr/addons-dev/teams","hooks_url":"https://api.github.com/repos/KolushovAlexandr/addons-dev/hooks","issue_events_url":"https://api.github.com/repos/KolushovAlexandr/addons-dev/issues/events{/number}","events_url":"https://api.github.com/repos/KolushovAlexandr/addons-dev/events","assignees_url":"https://api.github.com/repos/KolushovAlexandr/addons-dev/assignees{/user}","branches_url":"https://api.github.com/repos/KolushovAlexandr/addons-dev/branches{/branch}","tags_url":"https://api.github.com/repos/KolushovAlexandr/addons-dev/tags","blobs_url":"https://api.github.com/repos/KolushovAlexandr/addons-dev/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/KolushovAlexandr/addons-dev/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/KolushovAlexandr/addons-dev/git/refs{/sha}","trees_url":"https://api.github.com/repos/KolushovAlexandr/addons-dev/git/trees{/sha}","statuses_url":"https://api.github.com/repos/KolushovAlexandr/addons-dev/statuses/{sha}","languages_url":"https://api.github.com/repos/KolushovAlexandr/addons-dev/languages","stargazers_url":"https://api.github.com/repos/KolushovAlexandr/addons-dev/stargazers","contributors_url":"https://api.github.com/repos/KolushovAlexandr/addons-dev/contributors","subscribers_url":"https://api.github.com/repos/KolushovAlexandr/addons-dev/subscribers","subscription_url":"https://api.github.com/repos/KolushovAlexandr/addons-dev/subscription","commits_url":"https://api.github.com/repos/KolushovAlexandr/addons-dev/commits{/sha}","git_commits_url":"https://api.github.com/repos/KolushovAlexandr/addons-dev/git/commits{/sha}","comments_url":"https://api.github.com/repos/KolushovAlexandr/addons-dev/comments{/number}","issue_comment_url":"https://api.github.com/repos/KolushovAlexandr/addons-dev/issues/comments{/number}","contents_url":"https://api.github.com/repos/KolushovAlexandr/addons-dev/contents/{+path}","compare_url":"https://api.github.com/repos/KolushovAlexandr/addons-dev/compare/{base}...{head}","merges_url":"https://api.github.com/repos/KolushovAlexandr/addons-dev/merges","archive_url":"https://api.github.com/repos/KolushovAlexandr/addons-dev/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/KolushovAlexandr/addons-dev/downloads","issues_url":"https://api.github.com/repos/KolushovAlexandr/addons-dev/issues{/number}","pulls_url":"https://api.github.com/repos/KolushovAlexandr/addons-dev/pulls{/number}","milestones_url":"https://api.github.com/repos/KolushovAlexandr/addons-dev/milestones{/number}","notifications_url":"https://api.github.com/repos/KolushovAlexandr/addons-dev/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/KolushovAlexandr/addons-dev/labels{/name}","releases_url":"https://api.github.com/repos/KolushovAlexandr/addons-dev/releases{/id}","deployments_url":"https://api.github.com/repos/KolushovAlexandr/addons-dev/deployments","created_at":"2017-07-31T07:17:10Z","updated_at":"2017-02-12T18:20:36Z","pushed_at":"2018-10-15T15:15:46Z","git_url":"git://github.com/KolushovAlexandr/addons-dev.git","ssh_url":"git@github.com:KolushovAlexandr/addons-dev.git","clone_url":"https://github.com/KolushovAlexandr/addons-dev.git","svn_url":"https://github.com/KolushovAlexandr/addons-dev","homepage":"https://www.it-projects.info/","size":104162,"stargazers_count":0,"watchers_count":0,"language":null,"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":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"it-projects-llc:misc-addons-10.0-event_barcode_partner","ref":"misc-addons-10.0-event_barcode_partner","sha":"eb92ad7a92445864d46fc7ef6b0507904c2b85d7","user":{"login":"it-projects-llc","id":17959306,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE3OTU5MzA2","avatar_url":"https://avatars3.githubusercontent.com/u/17959306?v=4","gravatar_id":"","url":"https://api.github.com/users/it-projects-llc","html_url":"https://github.com/it-projects-llc","followers_url":"https://api.github.com/users/it-projects-llc/followers","following_url":"https://api.github.com/users/it-projects-llc/following{/other_user}","gists_url":"https://api.github.com/users/it-projects-llc/gists{/gist_id}","starred_url":"https://api.github.com/users/it-projects-llc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/it-projects-llc/subscriptions","organizations_url":"https://api.github.com/users/it-projects-llc/orgs","repos_url":"https://api.github.com/users/it-projects-llc/repos","events_url":"https://api.github.com/users/it-projects-llc/events{/privacy}","received_events_url":"https://api.github.com/users/it-projects-llc/received_events","type":"Organization","site_admin":false},"repo":{"id":47446675,"node_id":"MDEwOlJlcG9zaXRvcnk0NzQ0NjY3NQ==","name":"addons-dev","full_name":"it-projects-llc/addons-dev","private":false,"owner":{"login":"it-projects-llc","id":17959306,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE3OTU5MzA2","avatar_url":"https://avatars3.githubusercontent.com/u/17959306?v=4","gravatar_id":"","url":"https://api.github.com/users/it-projects-llc","html_url":"https://github.com/it-projects-llc","followers_url":"https://api.github.com/users/it-projects-llc/followers","following_url":"https://api.github.com/users/it-projects-llc/following{/other_user}","gists_url":"https://api.github.com/users/it-projects-llc/gists{/gist_id}","starred_url":"https://api.github.com/users/it-projects-llc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/it-projects-llc/subscriptions","organizations_url":"https://api.github.com/users/it-projects-llc/orgs","repos_url":"https://api.github.com/users/it-projects-llc/repos","events_url":"https://api.github.com/users/it-projects-llc/events{/privacy}","received_events_url":"https://api.github.com/users/it-projects-llc/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/it-projects-llc/addons-dev","description":"Addons Forge","fork":false,"url":"https://api.github.com/repos/it-projects-llc/addons-dev","forks_url":"https://api.github.com/repos/it-projects-llc/addons-dev/forks","keys_url":"https://api.github.com/repos/it-projects-llc/addons-dev/keys{/key_id}","collaborators_url":"https://api.github.com/repos/it-projects-llc/addons-dev/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/it-projects-llc/addons-dev/teams","hooks_url":"https://api.github.com/repos/it-projects-llc/addons-dev/hooks","issue_events_url":"https://api.github.com/repos/it-projects-llc/addons-dev/issues/events{/number}","events_url":"https://api.github.com/repos/it-projects-llc/addons-dev/events","assignees_url":"https://api.github.com/repos/it-projects-llc/addons-dev/assignees{/user}","branches_url":"https://api.github.com/repos/it-projects-llc/addons-dev/branches{/branch}","tags_url":"https://api.github.com/repos/it-projects-llc/addons-dev/tags","blobs_url":"https://api.github.com/repos/it-projects-llc/addons-dev/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/it-projects-llc/addons-dev/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/it-projects-llc/addons-dev/git/refs{/sha}","trees_url":"https://api.github.com/repos/it-projects-llc/addons-dev/git/trees{/sha}","statuses_url":"https://api.github.com/repos/it-projects-llc/addons-dev/statuses/{sha}","languages_url":"https://api.github.com/repos/it-projects-llc/addons-dev/languages","stargazers_url":"https://api.github.com/repos/it-projects-llc/addons-dev/stargazers","contributors_url":"https://api.github.com/repos/it-projects-llc/addons-dev/contributors","subscribers_url":"https://api.github.com/repos/it-projects-llc/addons-dev/subscribers","subscription_url":"https://api.github.com/repos/it-projects-llc/addons-dev/subscription","commits_url":"https://api.github.com/repos/it-projects-llc/addons-dev/commits{/sha}","git_commits_url":"https://api.github.com/repos/it-projects-llc/addons-dev/git/commits{/sha}","comments_url":"https://api.github.com/repos/it-projects-llc/addons-dev/comments{/number}","issue_comment_url":"https://api.github.com/repos/it-projects-llc/addons-dev/issues/comments{/number}","contents_url":"https://api.github.com/repos/it-projects-llc/addons-dev/contents/{+path}","compare_url":"https://api.github.com/repos/it-projects-llc/addons-dev/compare/{base}...{head}","merges_url":"https://api.github.com/repos/it-projects-llc/addons-dev/merges","archive_url":"https://api.github.com/repos/it-projects-llc/addons-dev/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/it-projects-llc/addons-dev/downloads","issues_url":"https://api.github.com/repos/it-projects-llc/addons-dev/issues{/number}","pulls_url":"https://api.github.com/repos/it-projects-llc/addons-dev/pulls{/number}","milestones_url":"https://api.github.com/repos/it-projects-llc/addons-dev/milestones{/number}","notifications_url":"https://api.github.com/repos/it-projects-llc/addons-dev/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/it-projects-llc/addons-dev/labels{/name}","releases_url":"https://api.github.com/repos/it-projects-llc/addons-dev/releases{/id}","deployments_url":"https://api.github.com/repos/it-projects-llc/addons-dev/deployments","created_at":"2015-12-05T07:21:42Z","updated_at":"2018-08-24T15:01:26Z","pushed_at":"2018-10-15T15:15:48Z","git_url":"git://github.com/it-projects-llc/addons-dev.git","ssh_url":"git@github.com:it-projects-llc/addons-dev.git","clone_url":"https://github.com/it-projects-llc/addons-dev.git","svn_url":"https://github.com/it-projects-llc/addons-dev","homepage":"https://www.it-projects.info/","size":117077,"stargazers_count":11,"watchers_count":11,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":38,"mirror_url":null,"archived":false,"open_issues_count":18,"license":null,"forks":38,"open_issues":18,"watchers":11,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/it-projects-llc/addons-dev/pulls/571"},"html":{"href":"https://github.com/it-projects-llc/addons-dev/pull/571"},"issue":{"href":"https://api.github.com/repos/it-projects-llc/addons-dev/issues/571"},"comments":{"href":"https://api.github.com/repos/it-projects-llc/addons-dev/issues/571/comments"},"review_comments":{"href":"https://api.github.com/repos/it-projects-llc/addons-dev/pulls/571/comments"},"review_comment":{"href":"https://api.github.com/repos/it-projects-llc/addons-dev/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/it-projects-llc/addons-dev/pulls/571/commits"},"statuses":{"href":"https://api.github.com/repos/it-projects-llc/addons-dev/statuses/3ad45dceb15b7144c17e7f26bcf496f358942080"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"houndci-bot"}}