{"action":"created","comment":{"url":"https://api.github.com/repos/brave-intl/publishers/pulls/comments/195475457","pull_request_review_id":128853174,"id":195475457,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5NTQ3NTQ1Nw==","diff_hunk":"@@ -12,7 +12,16 @@ function formatDate(date) {\n let generating = false;\n \n document.addEventListener('DOMContentLoaded', function() {\n-  if (document.querySelectorAll('body[data-action=\"statements\"]').length === 0) {\n+\n+  let isPublisherStatementAction = ((document.querySelectorAll('body[data-action=\"statements\"]').length === 1) &&\n+                                    (document.querySelectorAll('body[data-controller=\"publishers\"').length === 1))\n+  let isAdminShowAction = ((document.querySelectorAll('body[data-action=\"show\"]').length === 1) &&\n+                           (document.querySelectorAll('body[data-controller=\"admin/publishers\"').length === 1))\n+\n+  console.log(isPublisherStatementAction);","path":"app/javascript/publishers/statements.js","position":11,"original_position":11,"commit_id":"7956cb92200dec6e8cfc4df6e14d3d76d626c5d9","original_commit_id":"7956cb92200dec6e8cfc4df6e14d3d76d626c5d9","user":{"login":"yachtcaptain23","id":8647607,"node_id":"MDQ6VXNlcjg2NDc2MDc=","avatar_url":"https://avatars2.githubusercontent.com/u/8647607?v=4","gravatar_id":"","url":"https://api.github.com/users/yachtcaptain23","html_url":"https://github.com/yachtcaptain23","followers_url":"https://api.github.com/users/yachtcaptain23/followers","following_url":"https://api.github.com/users/yachtcaptain23/following{/other_user}","gists_url":"https://api.github.com/users/yachtcaptain23/gists{/gist_id}","starred_url":"https://api.github.com/users/yachtcaptain23/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yachtcaptain23/subscriptions","organizations_url":"https://api.github.com/users/yachtcaptain23/orgs","repos_url":"https://api.github.com/users/yachtcaptain23/repos","events_url":"https://api.github.com/users/yachtcaptain23/events{/privacy}","received_events_url":"https://api.github.com/users/yachtcaptain23/received_events","type":"User","site_admin":false},"body":"Debugger statements","created_at":"2018-06-14T15:49:54Z","updated_at":"2018-06-14T15:49:54Z","html_url":"https://github.com/brave-intl/publishers/pull/966#discussion_r195475457","pull_request_url":"https://api.github.com/repos/brave-intl/publishers/pulls/966","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/brave-intl/publishers/pulls/comments/195475457"},"html":{"href":"https://github.com/brave-intl/publishers/pull/966#discussion_r195475457"},"pull_request":{"href":"https://api.github.com/repos/brave-intl/publishers/pulls/966"}}},"pull_request":{"url":"https://api.github.com/repos/brave-intl/publishers/pulls/966","id":194358707,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk0MzU4NzA3","html_url":"https://github.com/brave-intl/publishers/pull/966","diff_url":"https://github.com/brave-intl/publishers/pull/966.diff","patch_url":"https://github.com/brave-intl/publishers/pull/966.patch","issue_url":"https://api.github.com/repos/brave-intl/publishers/issues/966","number":966,"state":"open","locked":false,"title":"[WIP] Add #show per publisher on admin dashboard","user":{"login":"nvonpentz","id":12549658,"node_id":"MDQ6VXNlcjEyNTQ5NjU4","avatar_url":"https://avatars1.githubusercontent.com/u/12549658?v=4","gravatar_id":"","url":"https://api.github.com/users/nvonpentz","html_url":"https://github.com/nvonpentz","followers_url":"https://api.github.com/users/nvonpentz/followers","following_url":"https://api.github.com/users/nvonpentz/following{/other_user}","gists_url":"https://api.github.com/users/nvonpentz/gists{/gist_id}","starred_url":"https://api.github.com/users/nvonpentz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nvonpentz/subscriptions","organizations_url":"https://api.github.com/users/nvonpentz/orgs","repos_url":"https://api.github.com/users/nvonpentz/repos","events_url":"https://api.github.com/users/nvonpentz/events{/privacy}","received_events_url":"https://api.github.com/users/nvonpentz/received_events","type":"User","site_admin":false},"body":"Resolves #959 \r\n![image](https://user-images.githubusercontent.com/12549658/41421850-a9ca9450-6fc5-11e8-94ab-641e8404efa0.png)\r\n\r\nSubmitter Checklist:\r\n\r\n- [ ] Submitted a [ticket](https://github.com/brave-intl/publishers/issues) for my issue if one did not already exist.\r\n- [ ] Used Github [auto-closing keywords](https://help.github.com/articles/closing-issues-via-commit-messages/) in the commit message.\r\n- [ ] Added/updated tests for this change (for new code or code which already has tests).\r\n- [ ] Tagged reviewers.\r\n- [ ] Integrated piwik/matomo (for code that adds new buttons).\r\n- [ ] Addressed or ignored all brakeman warnings\r\n\r\nTest Plan:\r\n\r\n\r\nReviewer Checklist:\r\n\r\nTests\r\n- [ ] Adequate test coverage exists to prevent regressions\r\n\r\nSecurity:\r\n- [ ] No raw SQL -- Always prefer ActiveRecord query helpers ([more info on StackOverflow](https://stackoverflow.com/questions/41410752/rails-5-sql-injection#41452695))\r\n- [ ] XSS is mitigated -- Avoid `html_safe` and `raw`; escape untrusted content from users and 3rd party APIs ([Rails XSS guide](https://brakemanpro.com/2017/09/08/cross-site-scripting-in-rails) and [OWASP XSS Prevention Cheat Sheet](https://www.owasp.org/index.php/XSS_(Cross_Site_Scripting)_Prevention_Cheat_Sheet))\r\n","created_at":"2018-06-12T17:49:37Z","updated_at":"2018-06-14T15:49:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"be3ae34c0397c237c42eb428a48e7ca7a6c56e52","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/brave-intl/publishers/pulls/966/commits","review_comments_url":"https://api.github.com/repos/brave-intl/publishers/pulls/966/comments","review_comment_url":"https://api.github.com/repos/brave-intl/publishers/pulls/comments{/number}","comments_url":"https://api.github.com/repos/brave-intl/publishers/issues/966/comments","statuses_url":"https://api.github.com/repos/brave-intl/publishers/statuses/7956cb92200dec6e8cfc4df6e14d3d76d626c5d9","head":{"label":"nvonpentz:continue-admin-dashboard","ref":"continue-admin-dashboard","sha":"7956cb92200dec6e8cfc4df6e14d3d76d626c5d9","user":{"login":"nvonpentz","id":12549658,"node_id":"MDQ6VXNlcjEyNTQ5NjU4","avatar_url":"https://avatars1.githubusercontent.com/u/12549658?v=4","gravatar_id":"","url":"https://api.github.com/users/nvonpentz","html_url":"https://github.com/nvonpentz","followers_url":"https://api.github.com/users/nvonpentz/followers","following_url":"https://api.github.com/users/nvonpentz/following{/other_user}","gists_url":"https://api.github.com/users/nvonpentz/gists{/gist_id}","starred_url":"https://api.github.com/users/nvonpentz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nvonpentz/subscriptions","organizations_url":"https://api.github.com/users/nvonpentz/orgs","repos_url":"https://api.github.com/users/nvonpentz/repos","events_url":"https://api.github.com/users/nvonpentz/events{/privacy}","received_events_url":"https://api.github.com/users/nvonpentz/received_events","type":"User","site_admin":false},"repo":{"id":111492596,"node_id":"MDEwOlJlcG9zaXRvcnkxMTE0OTI1OTY=","name":"publishers","full_name":"nvonpentz/publishers","owner":{"login":"nvonpentz","id":12549658,"node_id":"MDQ6VXNlcjEyNTQ5NjU4","avatar_url":"https://avatars1.githubusercontent.com/u/12549658?v=4","gravatar_id":"","url":"https://api.github.com/users/nvonpentz","html_url":"https://github.com/nvonpentz","followers_url":"https://api.github.com/users/nvonpentz/followers","following_url":"https://api.github.com/users/nvonpentz/following{/other_user}","gists_url":"https://api.github.com/users/nvonpentz/gists{/gist_id}","starred_url":"https://api.github.com/users/nvonpentz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nvonpentz/subscriptions","organizations_url":"https://api.github.com/users/nvonpentz/orgs","repos_url":"https://api.github.com/users/nvonpentz/repos","events_url":"https://api.github.com/users/nvonpentz/events{/privacy}","received_events_url":"https://api.github.com/users/nvonpentz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nvonpentz/publishers","description":"Publisher interface for Brave Payments","fork":true,"url":"https://api.github.com/repos/nvonpentz/publishers","forks_url":"https://api.github.com/repos/nvonpentz/publishers/forks","keys_url":"https://api.github.com/repos/nvonpentz/publishers/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nvonpentz/publishers/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nvonpentz/publishers/teams","hooks_url":"https://api.github.com/repos/nvonpentz/publishers/hooks","issue_events_url":"https://api.github.com/repos/nvonpentz/publishers/issues/events{/number}","events_url":"https://api.github.com/repos/nvonpentz/publishers/events","assignees_url":"https://api.github.com/repos/nvonpentz/publishers/assignees{/user}","branches_url":"https://api.github.com/repos/nvonpentz/publishers/branches{/branch}","tags_url":"https://api.github.com/repos/nvonpentz/publishers/tags","blobs_url":"https://api.github.com/repos/nvonpentz/publishers/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nvonpentz/publishers/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nvonpentz/publishers/git/refs{/sha}","trees_url":"https://api.github.com/repos/nvonpentz/publishers/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nvonpentz/publishers/statuses/{sha}","languages_url":"https://api.github.com/repos/nvonpentz/publishers/languages","stargazers_url":"https://api.github.com/repos/nvonpentz/publishers/stargazers","contributors_url":"https://api.github.com/repos/nvonpentz/publishers/contributors","subscribers_url":"https://api.github.com/repos/nvonpentz/publishers/subscribers","subscription_url":"https://api.github.com/repos/nvonpentz/publishers/subscription","commits_url":"https://api.github.com/repos/nvonpentz/publishers/commits{/sha}","git_commits_url":"https://api.github.com/repos/nvonpentz/publishers/git/commits{/sha}","comments_url":"https://api.github.com/repos/nvonpentz/publishers/comments{/number}","issue_comment_url":"https://api.github.com/repos/nvonpentz/publishers/issues/comments{/number}","contents_url":"https://api.github.com/repos/nvonpentz/publishers/contents/{+path}","compare_url":"https://api.github.com/repos/nvonpentz/publishers/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nvonpentz/publishers/merges","archive_url":"https://api.github.com/repos/nvonpentz/publishers/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nvonpentz/publishers/downloads","issues_url":"https://api.github.com/repos/nvonpentz/publishers/issues{/number}","pulls_url":"https://api.github.com/repos/nvonpentz/publishers/pulls{/number}","milestones_url":"https://api.github.com/repos/nvonpentz/publishers/milestones{/number}","notifications_url":"https://api.github.com/repos/nvonpentz/publishers/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nvonpentz/publishers/labels{/name}","releases_url":"https://api.github.com/repos/nvonpentz/publishers/releases{/id}","deployments_url":"https://api.github.com/repos/nvonpentz/publishers/deployments","created_at":"2017-11-21T03:12:22Z","updated_at":"2018-06-11T15:03:42Z","pushed_at":"2018-06-14T15:46:13Z","git_url":"git://github.com/nvonpentz/publishers.git","ssh_url":"git@github.com:nvonpentz/publishers.git","clone_url":"https://github.com/nvonpentz/publishers.git","svn_url":"https://github.com/nvonpentz/publishers","homepage":"https://publishers.brave.com","size":12817,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mpl-2.0","name":"Mozilla Public License 2.0","spdx_id":"MPL-2.0","url":"https://api.github.com/licenses/mpl-2.0","node_id":"MDc6TGljZW5zZTE0"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"staging"}},"base":{"label":"brave-intl:staging","ref":"staging","sha":"931cdade0d9b900a0058368485fdaa4484f45f7f","user":{"login":"brave-intl","id":28767864,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI4NzY3ODY0","avatar_url":"https://avatars2.githubusercontent.com/u/28767864?v=4","gravatar_id":"","url":"https://api.github.com/users/brave-intl","html_url":"https://github.com/brave-intl","followers_url":"https://api.github.com/users/brave-intl/followers","following_url":"https://api.github.com/users/brave-intl/following{/other_user}","gists_url":"https://api.github.com/users/brave-intl/gists{/gist_id}","starred_url":"https://api.github.com/users/brave-intl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brave-intl/subscriptions","organizations_url":"https://api.github.com/users/brave-intl/orgs","repos_url":"https://api.github.com/users/brave-intl/repos","events_url":"https://api.github.com/users/brave-intl/events{/privacy}","received_events_url":"https://api.github.com/users/brave-intl/received_events","type":"Organization","site_admin":false},"repo":{"id":69634519,"node_id":"MDEwOlJlcG9zaXRvcnk2OTYzNDUxOQ==","name":"publishers","full_name":"brave-intl/publishers","owner":{"login":"brave-intl","id":28767864,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI4NzY3ODY0","avatar_url":"https://avatars2.githubusercontent.com/u/28767864?v=4","gravatar_id":"","url":"https://api.github.com/users/brave-intl","html_url":"https://github.com/brave-intl","followers_url":"https://api.github.com/users/brave-intl/followers","following_url":"https://api.github.com/users/brave-intl/following{/other_user}","gists_url":"https://api.github.com/users/brave-intl/gists{/gist_id}","starred_url":"https://api.github.com/users/brave-intl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brave-intl/subscriptions","organizations_url":"https://api.github.com/users/brave-intl/orgs","repos_url":"https://api.github.com/users/brave-intl/repos","events_url":"https://api.github.com/users/brave-intl/events{/privacy}","received_events_url":"https://api.github.com/users/brave-intl/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/brave-intl/publishers","description":"Publisher interface for Brave Payments","fork":false,"url":"https://api.github.com/repos/brave-intl/publishers","forks_url":"https://api.github.com/repos/brave-intl/publishers/forks","keys_url":"https://api.github.com/repos/brave-intl/publishers/keys{/key_id}","collaborators_url":"https://api.github.com/repos/brave-intl/publishers/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/brave-intl/publishers/teams","hooks_url":"https://api.github.com/repos/brave-intl/publishers/hooks","issue_events_url":"https://api.github.com/repos/brave-intl/publishers/issues/events{/number}","events_url":"https://api.github.com/repos/brave-intl/publishers/events","assignees_url":"https://api.github.com/repos/brave-intl/publishers/assignees{/user}","branches_url":"https://api.github.com/repos/brave-intl/publishers/branches{/branch}","tags_url":"https://api.github.com/repos/brave-intl/publishers/tags","blobs_url":"https://api.github.com/repos/brave-intl/publishers/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/brave-intl/publishers/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/brave-intl/publishers/git/refs{/sha}","trees_url":"https://api.github.com/repos/brave-intl/publishers/git/trees{/sha}","statuses_url":"https://api.github.com/repos/brave-intl/publishers/statuses/{sha}","languages_url":"https://api.github.com/repos/brave-intl/publishers/languages","stargazers_url":"https://api.github.com/repos/brave-intl/publishers/stargazers","contributors_url":"https://api.github.com/repos/brave-intl/publishers/contributors","subscribers_url":"https://api.github.com/repos/brave-intl/publishers/subscribers","subscription_url":"https://api.github.com/repos/brave-intl/publishers/subscription","commits_url":"https://api.github.com/repos/brave-intl/publishers/commits{/sha}","git_commits_url":"https://api.github.com/repos/brave-intl/publishers/git/commits{/sha}","comments_url":"https://api.github.com/repos/brave-intl/publishers/comments{/number}","issue_comment_url":"https://api.github.com/repos/brave-intl/publishers/issues/comments{/number}","contents_url":"https://api.github.com/repos/brave-intl/publishers/contents/{+path}","compare_url":"https://api.github.com/repos/brave-intl/publishers/compare/{base}...{head}","merges_url":"https://api.github.com/repos/brave-intl/publishers/merges","archive_url":"https://api.github.com/repos/brave-intl/publishers/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/brave-intl/publishers/downloads","issues_url":"https://api.github.com/repos/brave-intl/publishers/issues{/number}","pulls_url":"https://api.github.com/repos/brave-intl/publishers/pulls{/number}","milestones_url":"https://api.github.com/repos/brave-intl/publishers/milestones{/number}","notifications_url":"https://api.github.com/repos/brave-intl/publishers/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/brave-intl/publishers/labels{/name}","releases_url":"https://api.github.com/repos/brave-intl/publishers/releases{/id}","deployments_url":"https://api.github.com/repos/brave-intl/publishers/deployments","created_at":"2016-09-30T04:47:29Z","updated_at":"2018-06-13T23:23:37Z","pushed_at":"2018-06-14T15:46:17Z","git_url":"git://github.com/brave-intl/publishers.git","ssh_url":"git@github.com:brave-intl/publishers.git","clone_url":"https://github.com/brave-intl/publishers.git","svn_url":"https://github.com/brave-intl/publishers","homepage":"https://publishers.basicattentiontoken.org","size":12722,"stargazers_count":22,"watchers_count":22,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":18,"mirror_url":null,"archived":false,"open_issues_count":72,"license":{"key":"mpl-2.0","name":"Mozilla Public License 2.0","spdx_id":"MPL-2.0","url":"https://api.github.com/licenses/mpl-2.0","node_id":"MDc6TGljZW5zZTE0"},"forks":18,"open_issues":72,"watchers":22,"default_branch":"staging"}},"_links":{"self":{"href":"https://api.github.com/repos/brave-intl/publishers/pulls/966"},"html":{"href":"https://github.com/brave-intl/publishers/pull/966"},"issue":{"href":"https://api.github.com/repos/brave-intl/publishers/issues/966"},"comments":{"href":"https://api.github.com/repos/brave-intl/publishers/issues/966/comments"},"review_comments":{"href":"https://api.github.com/repos/brave-intl/publishers/pulls/966/comments"},"review_comment":{"href":"https://api.github.com/repos/brave-intl/publishers/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/brave-intl/publishers/pulls/966/commits"},"statuses":{"href":"https://api.github.com/repos/brave-intl/publishers/statuses/7956cb92200dec6e8cfc4df6e14d3d76d626c5d9"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"yachtcaptain23"}}