{"action":"created","comment":{"url":"https://api.github.com/repos/gszathmari/sritest-backend/pulls/comments/54194669","id":54194669,"diff_hunk":"@@ -18,46 +20,52 @@ class Report\n   save: (fn) ->\n     @data = @sanitize @data\n     self = @\n-    statsKey = config.reports.hashkeys\n-    ttl = config.reports.ttl\n-    key = config.reports.prefix + @data.id\n-    # Store result in Redis\n-    pipeline = redis.pipeline()\n-    # Store result\n-    pipeline.hmset key, @data\n-    # Set TTL value\n-    pipeline.expire key, ttl\n-    # Add report ID to statistics if not hidden\n-    unless @data.hidden\n-      pipeline.lpush statsKey, @data.id\n-    # Execute Redis commands\n-    pipeline.exec (err) ->\n+    db.getConnection (err, connection) =>\n       if err\n         return fn err, self\n       else\n-        return fn null, self\n+        q = 'INSERT INTO reports SET `reportid` = UNHEX(REPLACE(?,\"-\",\"\")), `statuscode` = ?, `error` = ?, `tags` = ?, `url` = ?, `hidden` = ?'","path":"src/models/report.coffee","position":36,"original_position":36,"commit_id":"bfb049c06dc89bde98eccf46ed823799dc3a7a37","original_commit_id":"bfb049c06dc89bde98eccf46ed823799dc3a7a37","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","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":"Line exceeds maximum allowed length","created_at":"2016-02-26T01:39:43Z","updated_at":"2016-02-26T01:39:43Z","html_url":"https://github.com/gszathmari/sritest-backend/pull/2#discussion_r54194669","pull_request_url":"https://api.github.com/repos/gszathmari/sritest-backend/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/gszathmari/sritest-backend/pulls/comments/54194669"},"html":{"href":"https://github.com/gszathmari/sritest-backend/pull/2#discussion_r54194669"},"pull_request":{"href":"https://api.github.com/repos/gszathmari/sritest-backend/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/gszathmari/sritest-backend/pulls/2","id":60779089,"html_url":"https://github.com/gszathmari/sritest-backend/pull/2","diff_url":"https://github.com/gszathmari/sritest-backend/pull/2.diff","patch_url":"https://github.com/gszathmari/sritest-backend/pull/2.patch","issue_url":"https://api.github.com/repos/gszathmari/sritest-backend/issues/2","number":2,"state":"open","locked":false,"title":"Switching backend from Redis to MySQL","user":{"login":"gszathmari","id":4806014,"avatar_url":"https://avatars.githubusercontent.com/u/4806014?v=3","gravatar_id":"","url":"https://api.github.com/users/gszathmari","html_url":"https://github.com/gszathmari","followers_url":"https://api.github.com/users/gszathmari/followers","following_url":"https://api.github.com/users/gszathmari/following{/other_user}","gists_url":"https://api.github.com/users/gszathmari/gists{/gist_id}","starred_url":"https://api.github.com/users/gszathmari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gszathmari/subscriptions","organizations_url":"https://api.github.com/users/gszathmari/orgs","repos_url":"https://api.github.com/users/gszathmari/repos","events_url":"https://api.github.com/users/gszathmari/events{/privacy}","received_events_url":"https://api.github.com/users/gszathmari/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-02-26T01:39:37Z","updated_at":"2016-02-26T01:39:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d3e9bd245308780f860b8f04707163f5d9f1c09b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/gszathmari/sritest-backend/pulls/2/commits","review_comments_url":"https://api.github.com/repos/gszathmari/sritest-backend/pulls/2/comments","review_comment_url":"https://api.github.com/repos/gszathmari/sritest-backend/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gszathmari/sritest-backend/issues/2/comments","statuses_url":"https://api.github.com/repos/gszathmari/sritest-backend/statuses/bfb049c06dc89bde98eccf46ed823799dc3a7a37","head":{"label":"gszathmari:mysql","ref":"mysql","sha":"bfb049c06dc89bde98eccf46ed823799dc3a7a37","user":{"login":"gszathmari","id":4806014,"avatar_url":"https://avatars.githubusercontent.com/u/4806014?v=3","gravatar_id":"","url":"https://api.github.com/users/gszathmari","html_url":"https://github.com/gszathmari","followers_url":"https://api.github.com/users/gszathmari/followers","following_url":"https://api.github.com/users/gszathmari/following{/other_user}","gists_url":"https://api.github.com/users/gszathmari/gists{/gist_id}","starred_url":"https://api.github.com/users/gszathmari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gszathmari/subscriptions","organizations_url":"https://api.github.com/users/gszathmari/orgs","repos_url":"https://api.github.com/users/gszathmari/repos","events_url":"https://api.github.com/users/gszathmari/events{/privacy}","received_events_url":"https://api.github.com/users/gszathmari/received_events","type":"User","site_admin":false},"repo":{"id":48585759,"name":"sritest-backend","full_name":"gszathmari/sritest-backend","owner":{"login":"gszathmari","id":4806014,"avatar_url":"https://avatars.githubusercontent.com/u/4806014?v=3","gravatar_id":"","url":"https://api.github.com/users/gszathmari","html_url":"https://github.com/gszathmari","followers_url":"https://api.github.com/users/gszathmari/followers","following_url":"https://api.github.com/users/gszathmari/following{/other_user}","gists_url":"https://api.github.com/users/gszathmari/gists{/gist_id}","starred_url":"https://api.github.com/users/gszathmari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gszathmari/subscriptions","organizations_url":"https://api.github.com/users/gszathmari/orgs","repos_url":"https://api.github.com/users/gszathmari/repos","events_url":"https://api.github.com/users/gszathmari/events{/privacy}","received_events_url":"https://api.github.com/users/gszathmari/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gszathmari/sritest-backend","description":"Backend of","fork":false,"url":"https://api.github.com/repos/gszathmari/sritest-backend","forks_url":"https://api.github.com/repos/gszathmari/sritest-backend/forks","keys_url":"https://api.github.com/repos/gszathmari/sritest-backend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gszathmari/sritest-backend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gszathmari/sritest-backend/teams","hooks_url":"https://api.github.com/repos/gszathmari/sritest-backend/hooks","issue_events_url":"https://api.github.com/repos/gszathmari/sritest-backend/issues/events{/number}","events_url":"https://api.github.com/repos/gszathmari/sritest-backend/events","assignees_url":"https://api.github.com/repos/gszathmari/sritest-backend/assignees{/user}","branches_url":"https://api.github.com/repos/gszathmari/sritest-backend/branches{/branch}","tags_url":"https://api.github.com/repos/gszathmari/sritest-backend/tags","blobs_url":"https://api.github.com/repos/gszathmari/sritest-backend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gszathmari/sritest-backend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gszathmari/sritest-backend/git/refs{/sha}","trees_url":"https://api.github.com/repos/gszathmari/sritest-backend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gszathmari/sritest-backend/statuses/{sha}","languages_url":"https://api.github.com/repos/gszathmari/sritest-backend/languages","stargazers_url":"https://api.github.com/repos/gszathmari/sritest-backend/stargazers","contributors_url":"https://api.github.com/repos/gszathmari/sritest-backend/contributors","subscribers_url":"https://api.github.com/repos/gszathmari/sritest-backend/subscribers","subscription_url":"https://api.github.com/repos/gszathmari/sritest-backend/subscription","commits_url":"https://api.github.com/repos/gszathmari/sritest-backend/commits{/sha}","git_commits_url":"https://api.github.com/repos/gszathmari/sritest-backend/git/commits{/sha}","comments_url":"https://api.github.com/repos/gszathmari/sritest-backend/comments{/number}","issue_comment_url":"https://api.github.com/repos/gszathmari/sritest-backend/issues/comments{/number}","contents_url":"https://api.github.com/repos/gszathmari/sritest-backend/contents/{+path}","compare_url":"https://api.github.com/repos/gszathmari/sritest-backend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gszathmari/sritest-backend/merges","archive_url":"https://api.github.com/repos/gszathmari/sritest-backend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gszathmari/sritest-backend/downloads","issues_url":"https://api.github.com/repos/gszathmari/sritest-backend/issues{/number}","pulls_url":"https://api.github.com/repos/gszathmari/sritest-backend/pulls{/number}","milestones_url":"https://api.github.com/repos/gszathmari/sritest-backend/milestones{/number}","notifications_url":"https://api.github.com/repos/gszathmari/sritest-backend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gszathmari/sritest-backend/labels{/name}","releases_url":"https://api.github.com/repos/gszathmari/sritest-backend/releases{/id}","deployments_url":"https://api.github.com/repos/gszathmari/sritest-backend/deployments","created_at":"2015-12-25T16:27:58Z","updated_at":"2016-01-18T21:59:43Z","pushed_at":"2016-02-26T01:39:37Z","git_url":"git://github.com/gszathmari/sritest-backend.git","ssh_url":"git@github.com:gszathmari/sritest-backend.git","clone_url":"https://github.com/gszathmari/sritest-backend.git","svn_url":"https://github.com/gszathmari/sritest-backend","homepage":"https://sritest.io","size":25,"stargazers_count":1,"watchers_count":1,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"base":{"label":"gszathmari:master","ref":"master","sha":"49c579373332e5edc651ceacd69a9ddfa406b246","user":{"login":"gszathmari","id":4806014,"avatar_url":"https://avatars.githubusercontent.com/u/4806014?v=3","gravatar_id":"","url":"https://api.github.com/users/gszathmari","html_url":"https://github.com/gszathmari","followers_url":"https://api.github.com/users/gszathmari/followers","following_url":"https://api.github.com/users/gszathmari/following{/other_user}","gists_url":"https://api.github.com/users/gszathmari/gists{/gist_id}","starred_url":"https://api.github.com/users/gszathmari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gszathmari/subscriptions","organizations_url":"https://api.github.com/users/gszathmari/orgs","repos_url":"https://api.github.com/users/gszathmari/repos","events_url":"https://api.github.com/users/gszathmari/events{/privacy}","received_events_url":"https://api.github.com/users/gszathmari/received_events","type":"User","site_admin":false},"repo":{"id":48585759,"name":"sritest-backend","full_name":"gszathmari/sritest-backend","owner":{"login":"gszathmari","id":4806014,"avatar_url":"https://avatars.githubusercontent.com/u/4806014?v=3","gravatar_id":"","url":"https://api.github.com/users/gszathmari","html_url":"https://github.com/gszathmari","followers_url":"https://api.github.com/users/gszathmari/followers","following_url":"https://api.github.com/users/gszathmari/following{/other_user}","gists_url":"https://api.github.com/users/gszathmari/gists{/gist_id}","starred_url":"https://api.github.com/users/gszathmari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gszathmari/subscriptions","organizations_url":"https://api.github.com/users/gszathmari/orgs","repos_url":"https://api.github.com/users/gszathmari/repos","events_url":"https://api.github.com/users/gszathmari/events{/privacy}","received_events_url":"https://api.github.com/users/gszathmari/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gszathmari/sritest-backend","description":"Backend of","fork":false,"url":"https://api.github.com/repos/gszathmari/sritest-backend","forks_url":"https://api.github.com/repos/gszathmari/sritest-backend/forks","keys_url":"https://api.github.com/repos/gszathmari/sritest-backend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gszathmari/sritest-backend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gszathmari/sritest-backend/teams","hooks_url":"https://api.github.com/repos/gszathmari/sritest-backend/hooks","issue_events_url":"https://api.github.com/repos/gszathmari/sritest-backend/issues/events{/number}","events_url":"https://api.github.com/repos/gszathmari/sritest-backend/events","assignees_url":"https://api.github.com/repos/gszathmari/sritest-backend/assignees{/user}","branches_url":"https://api.github.com/repos/gszathmari/sritest-backend/branches{/branch}","tags_url":"https://api.github.com/repos/gszathmari/sritest-backend/tags","blobs_url":"https://api.github.com/repos/gszathmari/sritest-backend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gszathmari/sritest-backend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gszathmari/sritest-backend/git/refs{/sha}","trees_url":"https://api.github.com/repos/gszathmari/sritest-backend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gszathmari/sritest-backend/statuses/{sha}","languages_url":"https://api.github.com/repos/gszathmari/sritest-backend/languages","stargazers_url":"https://api.github.com/repos/gszathmari/sritest-backend/stargazers","contributors_url":"https://api.github.com/repos/gszathmari/sritest-backend/contributors","subscribers_url":"https://api.github.com/repos/gszathmari/sritest-backend/subscribers","subscription_url":"https://api.github.com/repos/gszathmari/sritest-backend/subscription","commits_url":"https://api.github.com/repos/gszathmari/sritest-backend/commits{/sha}","git_commits_url":"https://api.github.com/repos/gszathmari/sritest-backend/git/commits{/sha}","comments_url":"https://api.github.com/repos/gszathmari/sritest-backend/comments{/number}","issue_comment_url":"https://api.github.com/repos/gszathmari/sritest-backend/issues/comments{/number}","contents_url":"https://api.github.com/repos/gszathmari/sritest-backend/contents/{+path}","compare_url":"https://api.github.com/repos/gszathmari/sritest-backend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gszathmari/sritest-backend/merges","archive_url":"https://api.github.com/repos/gszathmari/sritest-backend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gszathmari/sritest-backend/downloads","issues_url":"https://api.github.com/repos/gszathmari/sritest-backend/issues{/number}","pulls_url":"https://api.github.com/repos/gszathmari/sritest-backend/pulls{/number}","milestones_url":"https://api.github.com/repos/gszathmari/sritest-backend/milestones{/number}","notifications_url":"https://api.github.com/repos/gszathmari/sritest-backend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gszathmari/sritest-backend/labels{/name}","releases_url":"https://api.github.com/repos/gszathmari/sritest-backend/releases{/id}","deployments_url":"https://api.github.com/repos/gszathmari/sritest-backend/deployments","created_at":"2015-12-25T16:27:58Z","updated_at":"2016-01-18T21:59:43Z","pushed_at":"2016-02-26T01:39:37Z","git_url":"git://github.com/gszathmari/sritest-backend.git","ssh_url":"git@github.com:gszathmari/sritest-backend.git","clone_url":"https://github.com/gszathmari/sritest-backend.git","svn_url":"https://github.com/gszathmari/sritest-backend","homepage":"https://sritest.io","size":25,"stargazers_count":1,"watchers_count":1,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gszathmari/sritest-backend/pulls/2"},"html":{"href":"https://github.com/gszathmari/sritest-backend/pull/2"},"issue":{"href":"https://api.github.com/repos/gszathmari/sritest-backend/issues/2"},"comments":{"href":"https://api.github.com/repos/gszathmari/sritest-backend/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/gszathmari/sritest-backend/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/gszathmari/sritest-backend/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gszathmari/sritest-backend/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/gszathmari/sritest-backend/statuses/bfb049c06dc89bde98eccf46ed823799dc3a7a37"}}}}