{"action":"created","comment":{"url":"https://api.github.com/repos/18F/openFEC-web-app/pulls/comments/110014921","pull_request_review_id":31155927,"id":110014921,"diff_hunk":"@@ -0,0 +1,93 @@\n+const React = require('react');\n+const URI = require('urijs');\n+const $ = require('jquery');\n+const Checkbox = require('./Checkbox');\n+\n+class CitationFilter extends React.Component {\n+    constructor(props) {\n+      super(props);\n+      this.state = { citations: [], dropdownVisible: false, currentValue: '' }\n+      this.interceptChange = this.interceptChange.bind(this);\n+      this.setSelection = this.setSelection.bind(this);\n+      this.dropdownDisplay = this.dropdownDisplay.bind(this);\n+      this.hideDropdown = this.hideDropdown.bind(this);\n+      this.getFilterAddedText = this.getFilterAddedText.bind(this);\n+    }\n+\n+    interceptChange(e) {\n+        if(e.target.value) {\n+          const path = URI(window.API_LOCATION)\n+                      .path([window.API_VERSION, 'legal', 'citation', this.props.citationType, e.target.value].join('/'))\n+                      .addQuery('api_key', window.API_KEY);\n+          $.getJSON(path.toString(), (result) => {\n+            this.setState({citations: result.citations, dropdownVisible: true});\n+          });\n+        } else {\n+          this.setState({citations: [], dropdownVisible: false});\n+        }\n+\n+        this.setState({currentValue: e.target.value});\n+    }\n+\n+    setSelection(citation) {\n+      const citationTags = this.props.value || [];\n+      citationTags.push(citation)\n+      const syntheticEvent = { target: {name: this.props.name, value: citationTags } };\n+      this.props.instantQuery(syntheticEvent);\n+      this.setState({dropdownVisible: false, currentValue: '', lastAction: \"added\"});\n+    }\n+\n+    dropdownDisplay() {\n+      return this.state.dropdownVisible ? 'block' : 'none';\n+    }\n+\n+    hideDropdown(e) {","path":"static/js/legal/filters/CitationFilter.js","position":44,"original_position":44,"commit_id":"69d5499be0ddb3cff020fa8315dfefa9fd97c823","original_commit_id":"69d5499be0ddb3cff020fa8315dfefa9fd97c823","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars3.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":"'e' is defined but never used.","created_at":"2017-04-05T20:06:55Z","updated_at":"2017-04-05T20:06:55Z","html_url":"https://github.com/18F/openFEC-web-app/pull/1926#discussion_r110014921","pull_request_url":"https://api.github.com/repos/18F/openFEC-web-app/pulls/1926","_links":{"self":{"href":"https://api.github.com/repos/18F/openFEC-web-app/pulls/comments/110014921"},"html":{"href":"https://github.com/18F/openFEC-web-app/pull/1926#discussion_r110014921"},"pull_request":{"href":"https://api.github.com/repos/18F/openFEC-web-app/pulls/1926"}}},"pull_request":{"url":"https://api.github.com/repos/18F/openFEC-web-app/pulls/1926","id":114016783,"html_url":"https://github.com/18F/openFEC-web-app/pull/1926","diff_url":"https://github.com/18F/openFEC-web-app/pull/1926.diff","patch_url":"https://github.com/18F/openFEC-web-app/pull/1926.patch","issue_url":"https://api.github.com/repos/18F/openFEC-web-app/issues/1926","number":1926,"state":"open","locked":false,"title":"[MERGE WITH GITFLOW] Release/public beta 20170405","user":{"login":"LindsayYoung","id":4406333,"avatar_url":"https://avatars0.githubusercontent.com/u/4406333?v=3","gravatar_id":"","url":"https://api.github.com/users/LindsayYoung","html_url":"https://github.com/LindsayYoung","followers_url":"https://api.github.com/users/LindsayYoung/followers","following_url":"https://api.github.com/users/LindsayYoung/following{/other_user}","gists_url":"https://api.github.com/users/LindsayYoung/gists{/gist_id}","starred_url":"https://api.github.com/users/LindsayYoung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LindsayYoung/subscriptions","organizations_url":"https://api.github.com/users/LindsayYoung/orgs","repos_url":"https://api.github.com/users/LindsayYoung/repos","events_url":"https://api.github.com/users/LindsayYoung/events{/privacy}","received_events_url":"https://api.github.com/users/LindsayYoung/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-04-03T20:34:08Z","updated_at":"2017-04-05T20:06:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"66ea197b4f99f4bafdef8c4dc71074328e554f6c","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/18F/openFEC-web-app/pulls/1926/commits","review_comments_url":"https://api.github.com/repos/18F/openFEC-web-app/pulls/1926/comments","review_comment_url":"https://api.github.com/repos/18F/openFEC-web-app/pulls/comments{/number}","comments_url":"https://api.github.com/repos/18F/openFEC-web-app/issues/1926/comments","statuses_url":"https://api.github.com/repos/18F/openFEC-web-app/statuses/69d5499be0ddb3cff020fa8315dfefa9fd97c823","head":{"label":"18F:release/public-beta-20170405","ref":"release/public-beta-20170405","sha":"69d5499be0ddb3cff020fa8315dfefa9fd97c823","user":{"login":"18F","id":6233994,"avatar_url":"https://avatars3.githubusercontent.com/u/6233994?v=3","gravatar_id":"","url":"https://api.github.com/users/18F","html_url":"https://github.com/18F","followers_url":"https://api.github.com/users/18F/followers","following_url":"https://api.github.com/users/18F/following{/other_user}","gists_url":"https://api.github.com/users/18F/gists{/gist_id}","starred_url":"https://api.github.com/users/18F/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/18F/subscriptions","organizations_url":"https://api.github.com/users/18F/orgs","repos_url":"https://api.github.com/users/18F/repos","events_url":"https://api.github.com/users/18F/events{/privacy}","received_events_url":"https://api.github.com/users/18F/received_events","type":"Organization","site_admin":false},"repo":{"id":25273785,"name":"openFEC-web-app","full_name":"18F/openFEC-web-app","owner":{"login":"18F","id":6233994,"avatar_url":"https://avatars3.githubusercontent.com/u/6233994?v=3","gravatar_id":"","url":"https://api.github.com/users/18F","html_url":"https://github.com/18F","followers_url":"https://api.github.com/users/18F/followers","following_url":"https://api.github.com/users/18F/following{/other_user}","gists_url":"https://api.github.com/users/18F/gists{/gist_id}","starred_url":"https://api.github.com/users/18F/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/18F/subscriptions","organizations_url":"https://api.github.com/users/18F/orgs","repos_url":"https://api.github.com/users/18F/repos","events_url":"https://api.github.com/users/18F/events{/privacy}","received_events_url":"https://api.github.com/users/18F/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/18F/openFEC-web-app","description":"The betaFEC web app for exploring campaign finance data","fork":false,"url":"https://api.github.com/repos/18F/openFEC-web-app","forks_url":"https://api.github.com/repos/18F/openFEC-web-app/forks","keys_url":"https://api.github.com/repos/18F/openFEC-web-app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/18F/openFEC-web-app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/18F/openFEC-web-app/teams","hooks_url":"https://api.github.com/repos/18F/openFEC-web-app/hooks","issue_events_url":"https://api.github.com/repos/18F/openFEC-web-app/issues/events{/number}","events_url":"https://api.github.com/repos/18F/openFEC-web-app/events","assignees_url":"https://api.github.com/repos/18F/openFEC-web-app/assignees{/user}","branches_url":"https://api.github.com/repos/18F/openFEC-web-app/branches{/branch}","tags_url":"https://api.github.com/repos/18F/openFEC-web-app/tags","blobs_url":"https://api.github.com/repos/18F/openFEC-web-app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/18F/openFEC-web-app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/18F/openFEC-web-app/git/refs{/sha}","trees_url":"https://api.github.com/repos/18F/openFEC-web-app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/18F/openFEC-web-app/statuses/{sha}","languages_url":"https://api.github.com/repos/18F/openFEC-web-app/languages","stargazers_url":"https://api.github.com/repos/18F/openFEC-web-app/stargazers","contributors_url":"https://api.github.com/repos/18F/openFEC-web-app/contributors","subscribers_url":"https://api.github.com/repos/18F/openFEC-web-app/subscribers","subscription_url":"https://api.github.com/repos/18F/openFEC-web-app/subscription","commits_url":"https://api.github.com/repos/18F/openFEC-web-app/commits{/sha}","git_commits_url":"https://api.github.com/repos/18F/openFEC-web-app/git/commits{/sha}","comments_url":"https://api.github.com/repos/18F/openFEC-web-app/comments{/number}","issue_comment_url":"https://api.github.com/repos/18F/openFEC-web-app/issues/comments{/number}","contents_url":"https://api.github.com/repos/18F/openFEC-web-app/contents/{+path}","compare_url":"https://api.github.com/repos/18F/openFEC-web-app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/18F/openFEC-web-app/merges","archive_url":"https://api.github.com/repos/18F/openFEC-web-app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/18F/openFEC-web-app/downloads","issues_url":"https://api.github.com/repos/18F/openFEC-web-app/issues{/number}","pulls_url":"https://api.github.com/repos/18F/openFEC-web-app/pulls{/number}","milestones_url":"https://api.github.com/repos/18F/openFEC-web-app/milestones{/number}","notifications_url":"https://api.github.com/repos/18F/openFEC-web-app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/18F/openFEC-web-app/labels{/name}","releases_url":"https://api.github.com/repos/18F/openFEC-web-app/releases{/id}","deployments_url":"https://api.github.com/repos/18F/openFEC-web-app/deployments","created_at":"2014-10-15T21:12:32Z","updated_at":"2017-03-02T13:46:17Z","pushed_at":"2017-04-05T20:06:40Z","git_url":"git://github.com/18F/openFEC-web-app.git","ssh_url":"git@github.com:18F/openFEC-web-app.git","clone_url":"https://github.com/18F/openFEC-web-app.git","svn_url":"https://github.com/18F/openFEC-web-app","homepage":"https://beta.fec.gov/data","size":13995,"stargazers_count":38,"watchers_count":38,"language":"HTML","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":25,"mirror_url":null,"open_issues_count":200,"forks":25,"open_issues":200,"watchers":38,"default_branch":"develop"}},"base":{"label":"18F:master","ref":"master","sha":"105cfbfa588cafe772434a141e49bfdc32471015","user":{"login":"18F","id":6233994,"avatar_url":"https://avatars3.githubusercontent.com/u/6233994?v=3","gravatar_id":"","url":"https://api.github.com/users/18F","html_url":"https://github.com/18F","followers_url":"https://api.github.com/users/18F/followers","following_url":"https://api.github.com/users/18F/following{/other_user}","gists_url":"https://api.github.com/users/18F/gists{/gist_id}","starred_url":"https://api.github.com/users/18F/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/18F/subscriptions","organizations_url":"https://api.github.com/users/18F/orgs","repos_url":"https://api.github.com/users/18F/repos","events_url":"https://api.github.com/users/18F/events{/privacy}","received_events_url":"https://api.github.com/users/18F/received_events","type":"Organization","site_admin":false},"repo":{"id":25273785,"name":"openFEC-web-app","full_name":"18F/openFEC-web-app","owner":{"login":"18F","id":6233994,"avatar_url":"https://avatars3.githubusercontent.com/u/6233994?v=3","gravatar_id":"","url":"https://api.github.com/users/18F","html_url":"https://github.com/18F","followers_url":"https://api.github.com/users/18F/followers","following_url":"https://api.github.com/users/18F/following{/other_user}","gists_url":"https://api.github.com/users/18F/gists{/gist_id}","starred_url":"https://api.github.com/users/18F/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/18F/subscriptions","organizations_url":"https://api.github.com/users/18F/orgs","repos_url":"https://api.github.com/users/18F/repos","events_url":"https://api.github.com/users/18F/events{/privacy}","received_events_url":"https://api.github.com/users/18F/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/18F/openFEC-web-app","description":"The betaFEC web app for exploring campaign finance data","fork":false,"url":"https://api.github.com/repos/18F/openFEC-web-app","forks_url":"https://api.github.com/repos/18F/openFEC-web-app/forks","keys_url":"https://api.github.com/repos/18F/openFEC-web-app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/18F/openFEC-web-app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/18F/openFEC-web-app/teams","hooks_url":"https://api.github.com/repos/18F/openFEC-web-app/hooks","issue_events_url":"https://api.github.com/repos/18F/openFEC-web-app/issues/events{/number}","events_url":"https://api.github.com/repos/18F/openFEC-web-app/events","assignees_url":"https://api.github.com/repos/18F/openFEC-web-app/assignees{/user}","branches_url":"https://api.github.com/repos/18F/openFEC-web-app/branches{/branch}","tags_url":"https://api.github.com/repos/18F/openFEC-web-app/tags","blobs_url":"https://api.github.com/repos/18F/openFEC-web-app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/18F/openFEC-web-app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/18F/openFEC-web-app/git/refs{/sha}","trees_url":"https://api.github.com/repos/18F/openFEC-web-app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/18F/openFEC-web-app/statuses/{sha}","languages_url":"https://api.github.com/repos/18F/openFEC-web-app/languages","stargazers_url":"https://api.github.com/repos/18F/openFEC-web-app/stargazers","contributors_url":"https://api.github.com/repos/18F/openFEC-web-app/contributors","subscribers_url":"https://api.github.com/repos/18F/openFEC-web-app/subscribers","subscription_url":"https://api.github.com/repos/18F/openFEC-web-app/subscription","commits_url":"https://api.github.com/repos/18F/openFEC-web-app/commits{/sha}","git_commits_url":"https://api.github.com/repos/18F/openFEC-web-app/git/commits{/sha}","comments_url":"https://api.github.com/repos/18F/openFEC-web-app/comments{/number}","issue_comment_url":"https://api.github.com/repos/18F/openFEC-web-app/issues/comments{/number}","contents_url":"https://api.github.com/repos/18F/openFEC-web-app/contents/{+path}","compare_url":"https://api.github.com/repos/18F/openFEC-web-app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/18F/openFEC-web-app/merges","archive_url":"https://api.github.com/repos/18F/openFEC-web-app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/18F/openFEC-web-app/downloads","issues_url":"https://api.github.com/repos/18F/openFEC-web-app/issues{/number}","pulls_url":"https://api.github.com/repos/18F/openFEC-web-app/pulls{/number}","milestones_url":"https://api.github.com/repos/18F/openFEC-web-app/milestones{/number}","notifications_url":"https://api.github.com/repos/18F/openFEC-web-app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/18F/openFEC-web-app/labels{/name}","releases_url":"https://api.github.com/repos/18F/openFEC-web-app/releases{/id}","deployments_url":"https://api.github.com/repos/18F/openFEC-web-app/deployments","created_at":"2014-10-15T21:12:32Z","updated_at":"2017-03-02T13:46:17Z","pushed_at":"2017-04-05T20:06:40Z","git_url":"git://github.com/18F/openFEC-web-app.git","ssh_url":"git@github.com:18F/openFEC-web-app.git","clone_url":"https://github.com/18F/openFEC-web-app.git","svn_url":"https://github.com/18F/openFEC-web-app","homepage":"https://beta.fec.gov/data","size":13995,"stargazers_count":38,"watchers_count":38,"language":"HTML","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":25,"mirror_url":null,"open_issues_count":200,"forks":25,"open_issues":200,"watchers":38,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/18F/openFEC-web-app/pulls/1926"},"html":{"href":"https://github.com/18F/openFEC-web-app/pull/1926"},"issue":{"href":"https://api.github.com/repos/18F/openFEC-web-app/issues/1926"},"comments":{"href":"https://api.github.com/repos/18F/openFEC-web-app/issues/1926/comments"},"review_comments":{"href":"https://api.github.com/repos/18F/openFEC-web-app/pulls/1926/comments"},"review_comment":{"href":"https://api.github.com/repos/18F/openFEC-web-app/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/18F/openFEC-web-app/pulls/1926/commits"},"statuses":{"href":"https://api.github.com/repos/18F/openFEC-web-app/statuses/69d5499be0ddb3cff020fa8315dfefa9fd97c823"}}}}
{"actor":{"display_login":"houndci-bot"}}