{"action":"created","comment":{"url":"https://api.github.com/repos/fedspendingtransparency/usaspending-website/pulls/comments/105500870","pull_request_review_id":26390192,"id":105500870,"diff_hunk":"@@ -0,0 +1,70 @@\n+/**\n+  * KeywordContainer.jsx\n+  * Created by Emily Gullo 11/30/16\n+  **/\n+\n+import React from 'react';\n+import { bindActionCreators } from 'redux';\n+import { connect } from 'react-redux';\n+\n+import * as searchFilterActions from 'redux/actions/search/searchFilterActions';\n+\n+import Keyword from 'components/search/filters/keyword/Keyword';\n+\n+const propTypes = {\n+    updateTextSearchInput: React.PropTypes.func,\n+    clearFilterType: React.PropTypes.func,\n+    keyword: React.PropTypes.string\n+};\n+\n+export class KeywordContainer extends React.Component {\n+\n+    constructor(props) {\n+        super(props);\n+\n+        this.state = {\n+            newKeyword: '',\n+            keyword: ''\n+        };\n+\n+        this.submitText = this.submitText.bind(this);\n+        this.handleChange = this.handleChange.bind(this);\n+    }\n+\n+    handleChange(e) {\n+        this.setState({\n+            newKeyword: e.target.value\n+        });\n+    }\n+\n+    submitText() {\n+        // remove any previous keyword applied in redux\n+        if (this.props.keyword !== null) {\n+            this.props.clearFilterType();\n+        }\n+        // take in keywords and pass to redux\n+        if (this.state.newKeyword !== null) {\n+            this.props.updateTextSearchInput(this.state.newKeyword);\n+        }\n+    }\n+\n+    // add redux value to filter values\n+\n+    // resubmit filters","path":"src/js/containers/search/filters/KeywordContainer.jsx","position":53,"original_position":53,"commit_id":"844b4ab5cb865cf05d9ed5e07fb857ac02459dd1","original_commit_id":"844b4ab5cb865cf05d9ed5e07fb857ac02459dd1","user":{"login":"mab6bf","id":4449046,"avatar_url":"https://avatars1.githubusercontent.com/u/4449046?v=3","gravatar_id":"","url":"https://api.github.com/users/mab6bf","html_url":"https://github.com/mab6bf","followers_url":"https://api.github.com/users/mab6bf/followers","following_url":"https://api.github.com/users/mab6bf/following{/other_user}","gists_url":"https://api.github.com/users/mab6bf/gists{/gist_id}","starred_url":"https://api.github.com/users/mab6bf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mab6bf/subscriptions","organizations_url":"https://api.github.com/users/mab6bf/orgs","repos_url":"https://api.github.com/users/mab6bf/repos","events_url":"https://api.github.com/users/mab6bf/events{/privacy}","received_events_url":"https://api.github.com/users/mab6bf/received_events","type":"User","site_admin":false},"body":"Are these old comments?","created_at":"2017-03-10T22:18:07Z","updated_at":"2017-03-10T22:51:08Z","html_url":"https://github.com/fedspendingtransparency/usaspending-website/pull/89#discussion_r105500870","pull_request_url":"https://api.github.com/repos/fedspendingtransparency/usaspending-website/pulls/89","_links":{"self":{"href":"https://api.github.com/repos/fedspendingtransparency/usaspending-website/pulls/comments/105500870"},"html":{"href":"https://github.com/fedspendingtransparency/usaspending-website/pull/89#discussion_r105500870"},"pull_request":{"href":"https://api.github.com/repos/fedspendingtransparency/usaspending-website/pulls/89"}}},"pull_request":{"url":"https://api.github.com/repos/fedspendingtransparency/usaspending-website/pulls/89","id":109963622,"html_url":"https://github.com/fedspendingtransparency/usaspending-website/pull/89","diff_url":"https://github.com/fedspendingtransparency/usaspending-website/pull/89.diff","patch_url":"https://github.com/fedspendingtransparency/usaspending-website/pull/89.patch","issue_url":"https://api.github.com/repos/fedspendingtransparency/usaspending-website/issues/89","number":89,"state":"open","locked":false,"title":"Free Text Search Filter (DS-723)","user":{"login":"ejgullo","id":19807146,"avatar_url":"https://avatars2.githubusercontent.com/u/19807146?v=3","gravatar_id":"","url":"https://api.github.com/users/ejgullo","html_url":"https://github.com/ejgullo","followers_url":"https://api.github.com/users/ejgullo/followers","following_url":"https://api.github.com/users/ejgullo/following{/other_user}","gists_url":"https://api.github.com/users/ejgullo/gists{/gist_id}","starred_url":"https://api.github.com/users/ejgullo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ejgullo/subscriptions","organizations_url":"https://api.github.com/users/ejgullo/orgs","repos_url":"https://api.github.com/users/ejgullo/repos","events_url":"https://api.github.com/users/ejgullo/events{/privacy}","received_events_url":"https://api.github.com/users/ejgullo/received_events","type":"User","site_admin":false},"body":"Free Text Search Filter (DS-723)\r\n- Renamed files to match properly (previous mix of ‘keyword’ and ‘search’ - all are now keyword to avoid any confusion w/ overall search)\r\n- Removed ‘coming soon’ inactive state\r\n- Added submit button, hooked up to API to put keyword(s) into redux and pass into search terms (Searches against the ‘description’ field only)\r\n- Created query builder + updated searchOperation to include the filter\r\n- Updated top filter bar to include search term tag (leaving this as an array, both to work with the base filter group generator and to allow for future updates that are likely to include AND/OR search operations and result in multiple terms)\r\n- Searching simply the exact string in this sprint, further updates to the behavior are out of scope for the current sprint","created_at":"2017-03-09T17:19:53Z","updated_at":"2017-03-10T22:51:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d1673459fcad96f1d70f5f9f08fdcbbe41c3329a","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/fedspendingtransparency/usaspending-website/pulls/89/commits","review_comments_url":"https://api.github.com/repos/fedspendingtransparency/usaspending-website/pulls/89/comments","review_comment_url":"https://api.github.com/repos/fedspendingtransparency/usaspending-website/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fedspendingtransparency/usaspending-website/issues/89/comments","statuses_url":"https://api.github.com/repos/fedspendingtransparency/usaspending-website/statuses/844b4ab5cb865cf05d9ed5e07fb857ac02459dd1","head":{"label":"fedspendingtransparency:feature-text-search","ref":"feature-text-search","sha":"844b4ab5cb865cf05d9ed5e07fb857ac02459dd1","user":{"login":"fedspendingtransparency","id":8397762,"avatar_url":"https://avatars3.githubusercontent.com/u/8397762?v=3","gravatar_id":"","url":"https://api.github.com/users/fedspendingtransparency","html_url":"https://github.com/fedspendingtransparency","followers_url":"https://api.github.com/users/fedspendingtransparency/followers","following_url":"https://api.github.com/users/fedspendingtransparency/following{/other_user}","gists_url":"https://api.github.com/users/fedspendingtransparency/gists{/gist_id}","starred_url":"https://api.github.com/users/fedspendingtransparency/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fedspendingtransparency/subscriptions","organizations_url":"https://api.github.com/users/fedspendingtransparency/orgs","repos_url":"https://api.github.com/users/fedspendingtransparency/repos","events_url":"https://api.github.com/users/fedspendingtransparency/events{/privacy}","received_events_url":"https://api.github.com/users/fedspendingtransparency/received_events","type":"Organization","site_admin":false},"repo":{"id":65394770,"name":"usaspending-website","full_name":"fedspendingtransparency/usaspending-website","owner":{"login":"fedspendingtransparency","id":8397762,"avatar_url":"https://avatars3.githubusercontent.com/u/8397762?v=3","gravatar_id":"","url":"https://api.github.com/users/fedspendingtransparency","html_url":"https://github.com/fedspendingtransparency","followers_url":"https://api.github.com/users/fedspendingtransparency/followers","following_url":"https://api.github.com/users/fedspendingtransparency/following{/other_user}","gists_url":"https://api.github.com/users/fedspendingtransparency/gists{/gist_id}","starred_url":"https://api.github.com/users/fedspendingtransparency/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fedspendingtransparency/subscriptions","organizations_url":"https://api.github.com/users/fedspendingtransparency/orgs","repos_url":"https://api.github.com/users/fedspendingtransparency/repos","events_url":"https://api.github.com/users/fedspendingtransparency/events{/privacy}","received_events_url":"https://api.github.com/users/fedspendingtransparency/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fedspendingtransparency/usaspending-website","description":"Web application for U.S. federal spending data","fork":false,"url":"https://api.github.com/repos/fedspendingtransparency/usaspending-website","forks_url":"https://api.github.com/repos/fedspendingtransparency/usaspending-website/forks","keys_url":"https://api.github.com/repos/fedspendingtransparency/usaspending-website/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fedspendingtransparency/usaspending-website/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fedspendingtransparency/usaspending-website/teams","hooks_url":"https://api.github.com/repos/fedspendingtransparency/usaspending-website/hooks","issue_events_url":"https://api.github.com/repos/fedspendingtransparency/usaspending-website/issues/events{/number}","events_url":"https://api.github.com/repos/fedspendingtransparency/usaspending-website/events","assignees_url":"https://api.github.com/repos/fedspendingtransparency/usaspending-website/assignees{/user}","branches_url":"https://api.github.com/repos/fedspendingtransparency/usaspending-website/branches{/branch}","tags_url":"https://api.github.com/repos/fedspendingtransparency/usaspending-website/tags","blobs_url":"https://api.github.com/repos/fedspendingtransparency/usaspending-website/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fedspendingtransparency/usaspending-website/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fedspendingtransparency/usaspending-website/git/refs{/sha}","trees_url":"https://api.github.com/repos/fedspendingtransparency/usaspending-website/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fedspendingtransparency/usaspending-website/statuses/{sha}","languages_url":"https://api.github.com/repos/fedspendingtransparency/usaspending-website/languages","stargazers_url":"https://api.github.com/repos/fedspendingtransparency/usaspending-website/stargazers","contributors_url":"https://api.github.com/repos/fedspendingtransparency/usaspending-website/contributors","subscribers_url":"https://api.github.com/repos/fedspendingtransparency/usaspending-website/subscribers","subscription_url":"https://api.github.com/repos/fedspendingtransparency/usaspending-website/subscription","commits_url":"https://api.github.com/repos/fedspendingtransparency/usaspending-website/commits{/sha}","git_commits_url":"https://api.github.com/repos/fedspendingtransparency/usaspending-website/git/commits{/sha}","comments_url":"https://api.github.com/repos/fedspendingtransparency/usaspending-website/comments{/number}","issue_comment_url":"https://api.github.com/repos/fedspendingtransparency/usaspending-website/issues/comments{/number}","contents_url":"https://api.github.com/repos/fedspendingtransparency/usaspending-website/contents/{+path}","compare_url":"https://api.github.com/repos/fedspendingtransparency/usaspending-website/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fedspendingtransparency/usaspending-website/merges","archive_url":"https://api.github.com/repos/fedspendingtransparency/usaspending-website/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fedspendingtransparency/usaspending-website/downloads","issues_url":"https://api.github.com/repos/fedspendingtransparency/usaspending-website/issues{/number}","pulls_url":"https://api.github.com/repos/fedspendingtransparency/usaspending-website/pulls{/number}","milestones_url":"https://api.github.com/repos/fedspendingtransparency/usaspending-website/milestones{/number}","notifications_url":"https://api.github.com/repos/fedspendingtransparency/usaspending-website/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fedspendingtransparency/usaspending-website/labels{/name}","releases_url":"https://api.github.com/repos/fedspendingtransparency/usaspending-website/releases{/id}","deployments_url":"https://api.github.com/repos/fedspendingtransparency/usaspending-website/deployments","created_at":"2016-08-10T15:39:03Z","updated_at":"2017-02-14T15:36:39Z","pushed_at":"2017-03-10T22:15:48Z","git_url":"git://github.com/fedspendingtransparency/usaspending-website.git","ssh_url":"git@github.com:fedspendingtransparency/usaspending-website.git","clone_url":"https://github.com/fedspendingtransparency/usaspending-website.git","svn_url":"https://github.com/fedspendingtransparency/usaspending-website","homepage":"","size":3073,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":5,"forks":4,"open_issues":5,"watchers":2,"default_branch":"dev"}},"base":{"label":"fedspendingtransparency:dev","ref":"dev","sha":"d673b4d62f2a60f342050a11951c0a61f1dbf6f3","user":{"login":"fedspendingtransparency","id":8397762,"avatar_url":"https://avatars3.githubusercontent.com/u/8397762?v=3","gravatar_id":"","url":"https://api.github.com/users/fedspendingtransparency","html_url":"https://github.com/fedspendingtransparency","followers_url":"https://api.github.com/users/fedspendingtransparency/followers","following_url":"https://api.github.com/users/fedspendingtransparency/following{/other_user}","gists_url":"https://api.github.com/users/fedspendingtransparency/gists{/gist_id}","starred_url":"https://api.github.com/users/fedspendingtransparency/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fedspendingtransparency/subscriptions","organizations_url":"https://api.github.com/users/fedspendingtransparency/orgs","repos_url":"https://api.github.com/users/fedspendingtransparency/repos","events_url":"https://api.github.com/users/fedspendingtransparency/events{/privacy}","received_events_url":"https://api.github.com/users/fedspendingtransparency/received_events","type":"Organization","site_admin":false},"repo":{"id":65394770,"name":"usaspending-website","full_name":"fedspendingtransparency/usaspending-website","owner":{"login":"fedspendingtransparency","id":8397762,"avatar_url":"https://avatars3.githubusercontent.com/u/8397762?v=3","gravatar_id":"","url":"https://api.github.com/users/fedspendingtransparency","html_url":"https://github.com/fedspendingtransparency","followers_url":"https://api.github.com/users/fedspendingtransparency/followers","following_url":"https://api.github.com/users/fedspendingtransparency/following{/other_user}","gists_url":"https://api.github.com/users/fedspendingtransparency/gists{/gist_id}","starred_url":"https://api.github.com/users/fedspendingtransparency/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fedspendingtransparency/subscriptions","organizations_url":"https://api.github.com/users/fedspendingtransparency/orgs","repos_url":"https://api.github.com/users/fedspendingtransparency/repos","events_url":"https://api.github.com/users/fedspendingtransparency/events{/privacy}","received_events_url":"https://api.github.com/users/fedspendingtransparency/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fedspendingtransparency/usaspending-website","description":"Web application for U.S. federal spending data","fork":false,"url":"https://api.github.com/repos/fedspendingtransparency/usaspending-website","forks_url":"https://api.github.com/repos/fedspendingtransparency/usaspending-website/forks","keys_url":"https://api.github.com/repos/fedspendingtransparency/usaspending-website/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fedspendingtransparency/usaspending-website/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fedspendingtransparency/usaspending-website/teams","hooks_url":"https://api.github.com/repos/fedspendingtransparency/usaspending-website/hooks","issue_events_url":"https://api.github.com/repos/fedspendingtransparency/usaspending-website/issues/events{/number}","events_url":"https://api.github.com/repos/fedspendingtransparency/usaspending-website/events","assignees_url":"https://api.github.com/repos/fedspendingtransparency/usaspending-website/assignees{/user}","branches_url":"https://api.github.com/repos/fedspendingtransparency/usaspending-website/branches{/branch}","tags_url":"https://api.github.com/repos/fedspendingtransparency/usaspending-website/tags","blobs_url":"https://api.github.com/repos/fedspendingtransparency/usaspending-website/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fedspendingtransparency/usaspending-website/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fedspendingtransparency/usaspending-website/git/refs{/sha}","trees_url":"https://api.github.com/repos/fedspendingtransparency/usaspending-website/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fedspendingtransparency/usaspending-website/statuses/{sha}","languages_url":"https://api.github.com/repos/fedspendingtransparency/usaspending-website/languages","stargazers_url":"https://api.github.com/repos/fedspendingtransparency/usaspending-website/stargazers","contributors_url":"https://api.github.com/repos/fedspendingtransparency/usaspending-website/contributors","subscribers_url":"https://api.github.com/repos/fedspendingtransparency/usaspending-website/subscribers","subscription_url":"https://api.github.com/repos/fedspendingtransparency/usaspending-website/subscription","commits_url":"https://api.github.com/repos/fedspendingtransparency/usaspending-website/commits{/sha}","git_commits_url":"https://api.github.com/repos/fedspendingtransparency/usaspending-website/git/commits{/sha}","comments_url":"https://api.github.com/repos/fedspendingtransparency/usaspending-website/comments{/number}","issue_comment_url":"https://api.github.com/repos/fedspendingtransparency/usaspending-website/issues/comments{/number}","contents_url":"https://api.github.com/repos/fedspendingtransparency/usaspending-website/contents/{+path}","compare_url":"https://api.github.com/repos/fedspendingtransparency/usaspending-website/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fedspendingtransparency/usaspending-website/merges","archive_url":"https://api.github.com/repos/fedspendingtransparency/usaspending-website/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fedspendingtransparency/usaspending-website/downloads","issues_url":"https://api.github.com/repos/fedspendingtransparency/usaspending-website/issues{/number}","pulls_url":"https://api.github.com/repos/fedspendingtransparency/usaspending-website/pulls{/number}","milestones_url":"https://api.github.com/repos/fedspendingtransparency/usaspending-website/milestones{/number}","notifications_url":"https://api.github.com/repos/fedspendingtransparency/usaspending-website/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fedspendingtransparency/usaspending-website/labels{/name}","releases_url":"https://api.github.com/repos/fedspendingtransparency/usaspending-website/releases{/id}","deployments_url":"https://api.github.com/repos/fedspendingtransparency/usaspending-website/deployments","created_at":"2016-08-10T15:39:03Z","updated_at":"2017-02-14T15:36:39Z","pushed_at":"2017-03-10T22:15:48Z","git_url":"git://github.com/fedspendingtransparency/usaspending-website.git","ssh_url":"git@github.com:fedspendingtransparency/usaspending-website.git","clone_url":"https://github.com/fedspendingtransparency/usaspending-website.git","svn_url":"https://github.com/fedspendingtransparency/usaspending-website","homepage":"","size":3073,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":5,"forks":4,"open_issues":5,"watchers":2,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/fedspendingtransparency/usaspending-website/pulls/89"},"html":{"href":"https://github.com/fedspendingtransparency/usaspending-website/pull/89"},"issue":{"href":"https://api.github.com/repos/fedspendingtransparency/usaspending-website/issues/89"},"comments":{"href":"https://api.github.com/repos/fedspendingtransparency/usaspending-website/issues/89/comments"},"review_comments":{"href":"https://api.github.com/repos/fedspendingtransparency/usaspending-website/pulls/89/comments"},"review_comment":{"href":"https://api.github.com/repos/fedspendingtransparency/usaspending-website/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fedspendingtransparency/usaspending-website/pulls/89/commits"},"statuses":{"href":"https://api.github.com/repos/fedspendingtransparency/usaspending-website/statuses/844b4ab5cb865cf05d9ed5e07fb857ac02459dd1"}}}}
{"actor":{"display_login":"mab6bf"}}