{"action":"created","comment":{"url":"https://api.github.com/repos/gitcoinco/web/pulls/comments/230138957","pull_request_review_id":170808497,"id":230138957,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzMDEzODk1Nw==","diff_hunk":"@@ -0,0 +1,152 @@\n+$(document).ready(function() {\n+  $(\"[data-toggle=popover]\").popover({\n+    html : true,\n+    trigger: 'focus',\n+    template: '<div class=\"popover wallet-popover\" role=\"tooltip\"><div class=\"arrow\"></div><h3 class=\"popover-header\"></h3><div class=\"popover-body\"></div></div>',\n+    content: function() {\n+      var content = $(this).attr(\"data-popover-content\");\n+      return $(content).children(\".popover-body\").html();\n+    },\n+    title: function() {\n+      var title = $(this).attr(\"data-popover-content\");\n+      return $(title).children(\".popover-heading\").html();\n+    }\n+  });\n+\n+  if (!document.hasPreferredPayoutAddress) {\n+    $(\"[data-toggle=popover]\").popover('show');\n+  }\n+\n+  $(\"body\").on('submit', '#form-wallets', function(e) {\n+    e.preventDefault()\n+    var data = $(\"#form-wallets\").serializeArray();\n+    data.push({'page': 2});\n+    var postWallets = fetchData ( e.currentTarget.action,\n+      e.currentTarget.method,\n+      data\n+    )\n+\n+    $.when( postWallets ).then( function ( response ){\n+      var walletAddress = response.wallets[0]\n+      var newAddress = new truncate(walletAddress)\n+      $('#preferred-address').text(newAddress.elem);\n+      $('#preferred-address').prop('title', walletAddress)\n+      $('#kudos-section').html(response.kudos_html)\n+\n+    })\n+  });\n+\n+  setupTabs('#activity-tabs');\n+\n+  const tabSection = document.querySelector('#activity-tabs-sections');\n+  const updateViewBtn = document.querySelector('#update-view-btn');\n+  let fetchInProgress = false;\n+\n+  function updateView(ignoreScrollOffset) {\n+    window.setTimeout(updateView, 300);\n+\n+    if (fetchInProgress) {\n+      return;\n+    }\n+\n+    const activityContainer = document.querySelector('.tab-section.active .activities');\n+    const activityCount = parseInt(activityContainer.getAttribute('count')) || 0;\n+\n+    if (activityContainer.children.length < activityCount) {\n+      updateViewBtn.style['visibility'] = 'visible';\n+    } else {\n+      updateViewBtn.style['visibility'] = 'hidden';\n+      return;\n+    }\n+\n+    if (ignoreScrollOffset || window.scrollY >= tabSection.scrollHeight) {\n+      const activityName = activityContainer.id;\n+      let page = parseInt(activityContainer.getAttribute('page')) || 1;\n+\n+      fetchInProgress = true;\n+      showBusyOverlay();\n+\n+      fetch(document.location.href + '?p=' + (++page) + '&a=' + activityName).then(\n+        function(response) {\n+          if (response.status === 200) {\n+            response.text().then(\n+              function(html) {\n+                const results = document.createElement('div');\n+\n+                activityContainer.setAttribute('page', page);\n+                results.insertAdjacentHTML('afterBegin', html);\n+\n+                const childs = results.children;\n+\n+                while (childs.length) {\n+                  activityContainer.append(childs[0]);\n+                }\n+\n+                fetchInProgress = false;\n+                hideBusyOverlay();\n+              }\n+            );\n+            return;\n+          }\n+\n+          fetchInProgress = false;\n+          hideBusyOverlay();\n+        }\n+      ).catch(\n+        function() {\n+          fetchInProgress = false;\n+          hideBusyOverlay();\n+        }\n+      );\n+    }\n+  }\n+\n+  updateViewBtn.addEventListener('click',\n+    function() {\n+      updateView(true);\n+    },\n+    false\n+  );\n+\n+  updateView();\n+});\n+\n+(function($) {\n+  $(document).on('click','.load-more' ,function() {\n+    var address =  $('#preferred-address').prop('title')\n+    if (!address) {\n+      return","path":"app/assets/v2/js/pages/profile.js","position":118,"original_position":118,"commit_id":"ac17bbbbdd4d69feaf2bb5dedc3c8531f3f6f9ec","original_commit_id":"ac17bbbbdd4d69feaf2bb5dedc3c8531f3f6f9ec","user":{"login":"stickler-ci","id":16011037,"node_id":"MDQ6VXNlcjE2MDExMDM3","avatar_url":"https://avatars3.githubusercontent.com/u/16011037?v=4","gravatar_id":"","url":"https://api.github.com/users/stickler-ci","html_url":"https://github.com/stickler-ci","followers_url":"https://api.github.com/users/stickler-ci/followers","following_url":"https://api.github.com/users/stickler-ci/following{/other_user}","gists_url":"https://api.github.com/users/stickler-ci/gists{/gist_id}","starred_url":"https://api.github.com/users/stickler-ci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stickler-ci/subscriptions","organizations_url":"https://api.github.com/users/stickler-ci/orgs","repos_url":"https://api.github.com/users/stickler-ci/repos","events_url":"https://api.github.com/users/stickler-ci/events{/privacy}","received_events_url":"https://api.github.com/users/stickler-ci/received_events","type":"User","site_admin":false},"body":"Missing semicolon. (semi)","created_at":"2018-11-01T18:01:00Z","updated_at":"2018-11-01T18:01:01Z","html_url":"https://github.com/gitcoinco/web/pull/2409#discussion_r230138957","pull_request_url":"https://api.github.com/repos/gitcoinco/web/pulls/2409","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/gitcoinco/web/pulls/comments/230138957"},"html":{"href":"https://github.com/gitcoinco/web/pull/2409#discussion_r230138957"},"pull_request":{"href":"https://api.github.com/repos/gitcoinco/web/pulls/2409"}}},"pull_request":{"url":"https://api.github.com/repos/gitcoinco/web/pulls/2409","id":221812364,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIxODEyMzY0","html_url":"https://github.com/gitcoinco/web/pull/2409","diff_url":"https://github.com/gitcoinco/web/pull/2409.diff","patch_url":"https://github.com/gitcoinco/web/pull/2409.patch","issue_url":"https://api.github.com/repos/gitcoinco/web/issues/2409","number":2409,"state":"open","locked":false,"title":"dashboard/profile view: performance improvements & refactoring","user":{"login":"pinkiebell","id":40266861,"node_id":"MDQ6VXNlcjQwMjY2ODYx","avatar_url":"https://avatars1.githubusercontent.com/u/40266861?v=4","gravatar_id":"","url":"https://api.github.com/users/pinkiebell","html_url":"https://github.com/pinkiebell","followers_url":"https://api.github.com/users/pinkiebell/followers","following_url":"https://api.github.com/users/pinkiebell/following{/other_user}","gists_url":"https://api.github.com/users/pinkiebell/gists{/gist_id}","starred_url":"https://api.github.com/users/pinkiebell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pinkiebell/subscriptions","organizations_url":"https://api.github.com/users/pinkiebell/orgs","repos_url":"https://api.github.com/users/pinkiebell/repos","events_url":"https://api.github.com/users/pinkiebell/events{/privacy}","received_events_url":"https://api.github.com/users/pinkiebell/received_events","type":"User","site_admin":false},"body":"Improve performance for profile view(s)\r\nFixes #2381 \r\n\r\n```\r\n*** without redis ***\r\n/profile/owocki\r\n\r\nrinkeby:\r\n\r\nbefore:\r\nreal         3.52\r\nuser         0.00\r\nsys          0.00\r\n\r\nafter:\r\nreal         0.54\r\nuser         0.00\r\nsys          0.00\r\n\r\nmainnet:\r\n\r\nbefore:\r\nreal         5.21\r\nuser         0.02\r\nsys          0.03\r\n\r\nafter:\r\nreal         1.93\r\nuser         0.02\r\nsys          0.03\r\n\r\n```\r\n\r\n*latest loading time w/ redis*\r\n```\r\n/profile/owocki\r\n\r\nwithout this pr\r\nreal         2.67\r\nuser         0.02\r\nsys          0.03\r\n\r\nwith this pr\r\nreal         0.48\r\nuser         0.00\r\nsys          0.00\r\n```","created_at":"2018-10-10T14:30:00Z","updated_at":"2018-11-01T18:01:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2fcce7a3b40f02d97e0d2ccd00f68542491867ef","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":643750118,"node_id":"MDU6TGFiZWw2NDM3NTAxMTg=","url":"https://api.github.com/repos/gitcoinco/web/labels/enhancement","name":"enhancement","color":"F5B7B1","default":true}],"milestone":null,"commits_url":"https://api.github.com/repos/gitcoinco/web/pulls/2409/commits","review_comments_url":"https://api.github.com/repos/gitcoinco/web/pulls/2409/comments","review_comment_url":"https://api.github.com/repos/gitcoinco/web/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gitcoinco/web/issues/2409/comments","statuses_url":"https://api.github.com/repos/gitcoinco/web/statuses/ac17bbbbdd4d69feaf2bb5dedc3c8531f3f6f9ec","head":{"label":"pinkiebell:profile/performance","ref":"profile/performance","sha":"ac17bbbbdd4d69feaf2bb5dedc3c8531f3f6f9ec","user":{"login":"pinkiebell","id":40266861,"node_id":"MDQ6VXNlcjQwMjY2ODYx","avatar_url":"https://avatars1.githubusercontent.com/u/40266861?v=4","gravatar_id":"","url":"https://api.github.com/users/pinkiebell","html_url":"https://github.com/pinkiebell","followers_url":"https://api.github.com/users/pinkiebell/followers","following_url":"https://api.github.com/users/pinkiebell/following{/other_user}","gists_url":"https://api.github.com/users/pinkiebell/gists{/gist_id}","starred_url":"https://api.github.com/users/pinkiebell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pinkiebell/subscriptions","organizations_url":"https://api.github.com/users/pinkiebell/orgs","repos_url":"https://api.github.com/users/pinkiebell/repos","events_url":"https://api.github.com/users/pinkiebell/events{/privacy}","received_events_url":"https://api.github.com/users/pinkiebell/received_events","type":"User","site_admin":false},"repo":{"id":138723898,"node_id":"MDEwOlJlcG9zaXRvcnkxMzg3MjM4OTg=","name":"web","full_name":"pinkiebell/web","private":false,"owner":{"login":"pinkiebell","id":40266861,"node_id":"MDQ6VXNlcjQwMjY2ODYx","avatar_url":"https://avatars1.githubusercontent.com/u/40266861?v=4","gravatar_id":"","url":"https://api.github.com/users/pinkiebell","html_url":"https://github.com/pinkiebell","followers_url":"https://api.github.com/users/pinkiebell/followers","following_url":"https://api.github.com/users/pinkiebell/following{/other_user}","gists_url":"https://api.github.com/users/pinkiebell/gists{/gist_id}","starred_url":"https://api.github.com/users/pinkiebell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pinkiebell/subscriptions","organizations_url":"https://api.github.com/users/pinkiebell/orgs","repos_url":"https://api.github.com/users/pinkiebell/repos","events_url":"https://api.github.com/users/pinkiebell/events{/privacy}","received_events_url":"https://api.github.com/users/pinkiebell/received_events","type":"User","site_admin":false},"html_url":"https://github.com/pinkiebell/web","description":"Grow Open Source","fork":true,"url":"https://api.github.com/repos/pinkiebell/web","forks_url":"https://api.github.com/repos/pinkiebell/web/forks","keys_url":"https://api.github.com/repos/pinkiebell/web/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pinkiebell/web/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pinkiebell/web/teams","hooks_url":"https://api.github.com/repos/pinkiebell/web/hooks","issue_events_url":"https://api.github.com/repos/pinkiebell/web/issues/events{/number}","events_url":"https://api.github.com/repos/pinkiebell/web/events","assignees_url":"https://api.github.com/repos/pinkiebell/web/assignees{/user}","branches_url":"https://api.github.com/repos/pinkiebell/web/branches{/branch}","tags_url":"https://api.github.com/repos/pinkiebell/web/tags","blobs_url":"https://api.github.com/repos/pinkiebell/web/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pinkiebell/web/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pinkiebell/web/git/refs{/sha}","trees_url":"https://api.github.com/repos/pinkiebell/web/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pinkiebell/web/statuses/{sha}","languages_url":"https://api.github.com/repos/pinkiebell/web/languages","stargazers_url":"https://api.github.com/repos/pinkiebell/web/stargazers","contributors_url":"https://api.github.com/repos/pinkiebell/web/contributors","subscribers_url":"https://api.github.com/repos/pinkiebell/web/subscribers","subscription_url":"https://api.github.com/repos/pinkiebell/web/subscription","commits_url":"https://api.github.com/repos/pinkiebell/web/commits{/sha}","git_commits_url":"https://api.github.com/repos/pinkiebell/web/git/commits{/sha}","comments_url":"https://api.github.com/repos/pinkiebell/web/comments{/number}","issue_comment_url":"https://api.github.com/repos/pinkiebell/web/issues/comments{/number}","contents_url":"https://api.github.com/repos/pinkiebell/web/contents/{+path}","compare_url":"https://api.github.com/repos/pinkiebell/web/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pinkiebell/web/merges","archive_url":"https://api.github.com/repos/pinkiebell/web/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pinkiebell/web/downloads","issues_url":"https://api.github.com/repos/pinkiebell/web/issues{/number}","pulls_url":"https://api.github.com/repos/pinkiebell/web/pulls{/number}","milestones_url":"https://api.github.com/repos/pinkiebell/web/milestones{/number}","notifications_url":"https://api.github.com/repos/pinkiebell/web/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pinkiebell/web/labels{/name}","releases_url":"https://api.github.com/repos/pinkiebell/web/releases{/id}","deployments_url":"https://api.github.com/repos/pinkiebell/web/deployments","created_at":"2018-06-26T10:43:07Z","updated_at":"2018-09-06T22:08:43Z","pushed_at":"2018-11-01T17:56:59Z","git_url":"git://github.com/pinkiebell/web.git","ssh_url":"git@github.com:pinkiebell/web.git","clone_url":"https://github.com/pinkiebell/web.git","svn_url":"https://github.com/pinkiebell/web","homepage":"https://gitcoin.co","size":195287,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0","node_id":"MDc6TGljZW5zZTE="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"gitcoinco:master","ref":"master","sha":"048afa7dffe3281bbacc8bdf4e94e49e230500ae","user":{"login":"gitcoinco","id":30044474,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMwMDQ0NDc0","avatar_url":"https://avatars1.githubusercontent.com/u/30044474?v=4","gravatar_id":"","url":"https://api.github.com/users/gitcoinco","html_url":"https://github.com/gitcoinco","followers_url":"https://api.github.com/users/gitcoinco/followers","following_url":"https://api.github.com/users/gitcoinco/following{/other_user}","gists_url":"https://api.github.com/users/gitcoinco/gists{/gist_id}","starred_url":"https://api.github.com/users/gitcoinco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gitcoinco/subscriptions","organizations_url":"https://api.github.com/users/gitcoinco/orgs","repos_url":"https://api.github.com/users/gitcoinco/repos","events_url":"https://api.github.com/users/gitcoinco/events{/privacy}","received_events_url":"https://api.github.com/users/gitcoinco/received_events","type":"Organization","site_admin":false},"repo":{"id":96767206,"node_id":"MDEwOlJlcG9zaXRvcnk5Njc2NzIwNg==","name":"web","full_name":"gitcoinco/web","private":false,"owner":{"login":"gitcoinco","id":30044474,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMwMDQ0NDc0","avatar_url":"https://avatars1.githubusercontent.com/u/30044474?v=4","gravatar_id":"","url":"https://api.github.com/users/gitcoinco","html_url":"https://github.com/gitcoinco","followers_url":"https://api.github.com/users/gitcoinco/followers","following_url":"https://api.github.com/users/gitcoinco/following{/other_user}","gists_url":"https://api.github.com/users/gitcoinco/gists{/gist_id}","starred_url":"https://api.github.com/users/gitcoinco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gitcoinco/subscriptions","organizations_url":"https://api.github.com/users/gitcoinco/orgs","repos_url":"https://api.github.com/users/gitcoinco/repos","events_url":"https://api.github.com/users/gitcoinco/events{/privacy}","received_events_url":"https://api.github.com/users/gitcoinco/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/gitcoinco/web","description":"Grow Open Source","fork":false,"url":"https://api.github.com/repos/gitcoinco/web","forks_url":"https://api.github.com/repos/gitcoinco/web/forks","keys_url":"https://api.github.com/repos/gitcoinco/web/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gitcoinco/web/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gitcoinco/web/teams","hooks_url":"https://api.github.com/repos/gitcoinco/web/hooks","issue_events_url":"https://api.github.com/repos/gitcoinco/web/issues/events{/number}","events_url":"https://api.github.com/repos/gitcoinco/web/events","assignees_url":"https://api.github.com/repos/gitcoinco/web/assignees{/user}","branches_url":"https://api.github.com/repos/gitcoinco/web/branches{/branch}","tags_url":"https://api.github.com/repos/gitcoinco/web/tags","blobs_url":"https://api.github.com/repos/gitcoinco/web/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gitcoinco/web/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gitcoinco/web/git/refs{/sha}","trees_url":"https://api.github.com/repos/gitcoinco/web/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gitcoinco/web/statuses/{sha}","languages_url":"https://api.github.com/repos/gitcoinco/web/languages","stargazers_url":"https://api.github.com/repos/gitcoinco/web/stargazers","contributors_url":"https://api.github.com/repos/gitcoinco/web/contributors","subscribers_url":"https://api.github.com/repos/gitcoinco/web/subscribers","subscription_url":"https://api.github.com/repos/gitcoinco/web/subscription","commits_url":"https://api.github.com/repos/gitcoinco/web/commits{/sha}","git_commits_url":"https://api.github.com/repos/gitcoinco/web/git/commits{/sha}","comments_url":"https://api.github.com/repos/gitcoinco/web/comments{/number}","issue_comment_url":"https://api.github.com/repos/gitcoinco/web/issues/comments{/number}","contents_url":"https://api.github.com/repos/gitcoinco/web/contents/{+path}","compare_url":"https://api.github.com/repos/gitcoinco/web/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gitcoinco/web/merges","archive_url":"https://api.github.com/repos/gitcoinco/web/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gitcoinco/web/downloads","issues_url":"https://api.github.com/repos/gitcoinco/web/issues{/number}","pulls_url":"https://api.github.com/repos/gitcoinco/web/pulls{/number}","milestones_url":"https://api.github.com/repos/gitcoinco/web/milestones{/number}","notifications_url":"https://api.github.com/repos/gitcoinco/web/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gitcoinco/web/labels{/name}","releases_url":"https://api.github.com/repos/gitcoinco/web/releases{/id}","deployments_url":"https://api.github.com/repos/gitcoinco/web/deployments","created_at":"2017-07-10T10:53:45Z","updated_at":"2018-11-01T15:34:50Z","pushed_at":"2018-11-01T17:57:02Z","git_url":"git://github.com/gitcoinco/web.git","ssh_url":"git@github.com:gitcoinco/web.git","clone_url":"https://github.com/gitcoinco/web.git","svn_url":"https://github.com/gitcoinco/web","homepage":"https://gitcoin.co","size":299058,"stargazers_count":522,"watchers_count":522,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":305,"mirror_url":null,"archived":false,"open_issues_count":676,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0","node_id":"MDc6TGljZW5zZTE="},"forks":305,"open_issues":676,"watchers":522,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gitcoinco/web/pulls/2409"},"html":{"href":"https://github.com/gitcoinco/web/pull/2409"},"issue":{"href":"https://api.github.com/repos/gitcoinco/web/issues/2409"},"comments":{"href":"https://api.github.com/repos/gitcoinco/web/issues/2409/comments"},"review_comments":{"href":"https://api.github.com/repos/gitcoinco/web/pulls/2409/comments"},"review_comment":{"href":"https://api.github.com/repos/gitcoinco/web/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gitcoinco/web/pulls/2409/commits"},"statuses":{"href":"https://api.github.com/repos/gitcoinco/web/statuses/ac17bbbbdd4d69feaf2bb5dedc3c8531f3f6f9ec"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"stickler-ci"}}