{"action":"created","comment":{"url":"https://api.github.com/repos/topbox-rci/rci-components/pulls/comments/243439111","pull_request_review_id":187212157,"id":243439111,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0MzQzOTExMQ==","diff_hunk":"@@ -8,7 +8,32 @@ import { NewSelect, Button, Statistic } from '../';\n import { IconFilter } from '../icons';\n \n class FilterBar extends PureComponent {\n-    state = { };\n+    state = {\n+        campaign: null\n+    };\n+\n+    componentDidMount() {\n+        const { campaign } = this.state;\n+        const initialCampaign = this.getInitialCampaign();\n+\n+        if (!campaign && initialCampaign) {\n+            this.onCampaignChange(initialCampaign);\n+        }\n+    }\n+\n+    componentDidUpdate(prevProps) {\n+        const { campaigns } = this.props;\n+        const { campaign } = this.state;\n+        const initialCampaign = this.getInitialCampaign();","path":"components/workFlow/filterBar.js","position":null,"original_position":28,"commit_id":"796efd1bdcf5e622a82c734d04489a57687c35c1","original_commit_id":"782fbf7c50139ecbf2853697af425b6134f222ec","user":{"login":"jasonhale","id":3496073,"node_id":"MDQ6VXNlcjM0OTYwNzM=","avatar_url":"https://avatars0.githubusercontent.com/u/3496073?v=4","gravatar_id":"","url":"https://api.github.com/users/jasonhale","html_url":"https://github.com/jasonhale","followers_url":"https://api.github.com/users/jasonhale/followers","following_url":"https://api.github.com/users/jasonhale/following{/other_user}","gists_url":"https://api.github.com/users/jasonhale/gists{/gist_id}","starred_url":"https://api.github.com/users/jasonhale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasonhale/subscriptions","organizations_url":"https://api.github.com/users/jasonhale/orgs","repos_url":"https://api.github.com/users/jasonhale/repos","events_url":"https://api.github.com/users/jasonhale/events{/privacy}","received_events_url":"https://api.github.com/users/jasonhale/received_events","type":"User","site_admin":false},"body":"@tVeratti - updated","created_at":"2018-12-20T22:34:26Z","updated_at":"2018-12-20T22:34:26Z","html_url":"https://github.com/topbox-rci/rci-components/pull/887#discussion_r243439111","pull_request_url":"https://api.github.com/repos/topbox-rci/rci-components/pulls/887","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/topbox-rci/rci-components/pulls/comments/243439111"},"html":{"href":"https://github.com/topbox-rci/rci-components/pull/887#discussion_r243439111"},"pull_request":{"href":"https://api.github.com/repos/topbox-rci/rci-components/pulls/887"}},"in_reply_to_id":243417410},"pull_request":{"url":"https://api.github.com/repos/topbox-rci/rci-components/pulls/887","id":240299036,"node_id":"MDExOlB1bGxSZXF1ZXN0MjQwMjk5MDM2","html_url":"https://github.com/topbox-rci/rci-components/pull/887","diff_url":"https://github.com/topbox-rci/rci-components/pull/887.diff","patch_url":"https://github.com/topbox-rci/rci-components/pull/887.patch","issue_url":"https://api.github.com/repos/topbox-rci/rci-components/issues/887","number":887,"state":"open","locked":false,"title":"TFW-2483 - Workflow, load highest priority campaign","user":{"login":"jasonhale","id":3496073,"node_id":"MDQ6VXNlcjM0OTYwNzM=","avatar_url":"https://avatars0.githubusercontent.com/u/3496073?v=4","gravatar_id":"","url":"https://api.github.com/users/jasonhale","html_url":"https://github.com/jasonhale","followers_url":"https://api.github.com/users/jasonhale/followers","following_url":"https://api.github.com/users/jasonhale/following{/other_user}","gists_url":"https://api.github.com/users/jasonhale/gists{/gist_id}","starred_url":"https://api.github.com/users/jasonhale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasonhale/subscriptions","organizations_url":"https://api.github.com/users/jasonhale/orgs","repos_url":"https://api.github.com/users/jasonhale/repos","events_url":"https://api.github.com/users/jasonhale/events{/privacy}","received_events_url":"https://api.github.com/users/jasonhale/received_events","type":"User","site_admin":false},"body":"Now, when Workflow initially loads or if campaigns change, it's gets the interactions for the highest priority campaign.","created_at":"2018-12-20T20:55:39Z","updated_at":"2018-12-20T22:34:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"34b816c49881e8461c98fab96819ffce7f64278b","assignee":null,"assignees":[],"requested_reviewers":[{"login":"troyblank","id":996725,"node_id":"MDQ6VXNlcjk5NjcyNQ==","avatar_url":"https://avatars0.githubusercontent.com/u/996725?v=4","gravatar_id":"","url":"https://api.github.com/users/troyblank","html_url":"https://github.com/troyblank","followers_url":"https://api.github.com/users/troyblank/followers","following_url":"https://api.github.com/users/troyblank/following{/other_user}","gists_url":"https://api.github.com/users/troyblank/gists{/gist_id}","starred_url":"https://api.github.com/users/troyblank/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/troyblank/subscriptions","organizations_url":"https://api.github.com/users/troyblank/orgs","repos_url":"https://api.github.com/users/troyblank/repos","events_url":"https://api.github.com/users/troyblank/events{/privacy}","received_events_url":"https://api.github.com/users/troyblank/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/topbox-rci/rci-components/pulls/887/commits","review_comments_url":"https://api.github.com/repos/topbox-rci/rci-components/pulls/887/comments","review_comment_url":"https://api.github.com/repos/topbox-rci/rci-components/pulls/comments{/number}","comments_url":"https://api.github.com/repos/topbox-rci/rci-components/issues/887/comments","statuses_url":"https://api.github.com/repos/topbox-rci/rci-components/statuses/796efd1bdcf5e622a82c734d04489a57687c35c1","head":{"label":"topbox-rci:TFW-2483","ref":"TFW-2483","sha":"796efd1bdcf5e622a82c734d04489a57687c35c1","user":{"login":"topbox-rci","id":12717371,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEyNzE3Mzcx","avatar_url":"https://avatars0.githubusercontent.com/u/12717371?v=4","gravatar_id":"","url":"https://api.github.com/users/topbox-rci","html_url":"https://github.com/topbox-rci","followers_url":"https://api.github.com/users/topbox-rci/followers","following_url":"https://api.github.com/users/topbox-rci/following{/other_user}","gists_url":"https://api.github.com/users/topbox-rci/gists{/gist_id}","starred_url":"https://api.github.com/users/topbox-rci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/topbox-rci/subscriptions","organizations_url":"https://api.github.com/users/topbox-rci/orgs","repos_url":"https://api.github.com/users/topbox-rci/repos","events_url":"https://api.github.com/users/topbox-rci/events{/privacy}","received_events_url":"https://api.github.com/users/topbox-rci/received_events","type":"Organization","site_admin":false},"repo":{"id":76394133,"node_id":"MDEwOlJlcG9zaXRvcnk3NjM5NDEzMw==","name":"rci-components","full_name":"topbox-rci/rci-components","private":false,"owner":{"login":"topbox-rci","id":12717371,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEyNzE3Mzcx","avatar_url":"https://avatars0.githubusercontent.com/u/12717371?v=4","gravatar_id":"","url":"https://api.github.com/users/topbox-rci","html_url":"https://github.com/topbox-rci","followers_url":"https://api.github.com/users/topbox-rci/followers","following_url":"https://api.github.com/users/topbox-rci/following{/other_user}","gists_url":"https://api.github.com/users/topbox-rci/gists{/gist_id}","starred_url":"https://api.github.com/users/topbox-rci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/topbox-rci/subscriptions","organizations_url":"https://api.github.com/users/topbox-rci/orgs","repos_url":"https://api.github.com/users/topbox-rci/repos","events_url":"https://api.github.com/users/topbox-rci/events{/privacy}","received_events_url":"https://api.github.com/users/topbox-rci/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/topbox-rci/rci-components","description":"React components for the RCI project","fork":false,"url":"https://api.github.com/repos/topbox-rci/rci-components","forks_url":"https://api.github.com/repos/topbox-rci/rci-components/forks","keys_url":"https://api.github.com/repos/topbox-rci/rci-components/keys{/key_id}","collaborators_url":"https://api.github.com/repos/topbox-rci/rci-components/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/topbox-rci/rci-components/teams","hooks_url":"https://api.github.com/repos/topbox-rci/rci-components/hooks","issue_events_url":"https://api.github.com/repos/topbox-rci/rci-components/issues/events{/number}","events_url":"https://api.github.com/repos/topbox-rci/rci-components/events","assignees_url":"https://api.github.com/repos/topbox-rci/rci-components/assignees{/user}","branches_url":"https://api.github.com/repos/topbox-rci/rci-components/branches{/branch}","tags_url":"https://api.github.com/repos/topbox-rci/rci-components/tags","blobs_url":"https://api.github.com/repos/topbox-rci/rci-components/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/topbox-rci/rci-components/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/topbox-rci/rci-components/git/refs{/sha}","trees_url":"https://api.github.com/repos/topbox-rci/rci-components/git/trees{/sha}","statuses_url":"https://api.github.com/repos/topbox-rci/rci-components/statuses/{sha}","languages_url":"https://api.github.com/repos/topbox-rci/rci-components/languages","stargazers_url":"https://api.github.com/repos/topbox-rci/rci-components/stargazers","contributors_url":"https://api.github.com/repos/topbox-rci/rci-components/contributors","subscribers_url":"https://api.github.com/repos/topbox-rci/rci-components/subscribers","subscription_url":"https://api.github.com/repos/topbox-rci/rci-components/subscription","commits_url":"https://api.github.com/repos/topbox-rci/rci-components/commits{/sha}","git_commits_url":"https://api.github.com/repos/topbox-rci/rci-components/git/commits{/sha}","comments_url":"https://api.github.com/repos/topbox-rci/rci-components/comments{/number}","issue_comment_url":"https://api.github.com/repos/topbox-rci/rci-components/issues/comments{/number}","contents_url":"https://api.github.com/repos/topbox-rci/rci-components/contents/{+path}","compare_url":"https://api.github.com/repos/topbox-rci/rci-components/compare/{base}...{head}","merges_url":"https://api.github.com/repos/topbox-rci/rci-components/merges","archive_url":"https://api.github.com/repos/topbox-rci/rci-components/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/topbox-rci/rci-components/downloads","issues_url":"https://api.github.com/repos/topbox-rci/rci-components/issues{/number}","pulls_url":"https://api.github.com/repos/topbox-rci/rci-components/pulls{/number}","milestones_url":"https://api.github.com/repos/topbox-rci/rci-components/milestones{/number}","notifications_url":"https://api.github.com/repos/topbox-rci/rci-components/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/topbox-rci/rci-components/labels{/name}","releases_url":"https://api.github.com/repos/topbox-rci/rci-components/releases{/id}","deployments_url":"https://api.github.com/repos/topbox-rci/rci-components/deployments","created_at":"2016-12-13T20:05:28Z","updated_at":"2018-12-19T23:35:37Z","pushed_at":"2018-12-20T22:34:10Z","git_url":"git://github.com/topbox-rci/rci-components.git","ssh_url":"git@github.com:topbox-rci/rci-components.git","clone_url":"https://github.com/topbox-rci/rci-components.git","svn_url":"https://github.com/topbox-rci/rci-components","homepage":null,"size":3306,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"base":{"label":"topbox-rci:develop","ref":"develop","sha":"f9b3f5d6d0b5a3fe27c73c0d93fb267b089a87a1","user":{"login":"topbox-rci","id":12717371,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEyNzE3Mzcx","avatar_url":"https://avatars0.githubusercontent.com/u/12717371?v=4","gravatar_id":"","url":"https://api.github.com/users/topbox-rci","html_url":"https://github.com/topbox-rci","followers_url":"https://api.github.com/users/topbox-rci/followers","following_url":"https://api.github.com/users/topbox-rci/following{/other_user}","gists_url":"https://api.github.com/users/topbox-rci/gists{/gist_id}","starred_url":"https://api.github.com/users/topbox-rci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/topbox-rci/subscriptions","organizations_url":"https://api.github.com/users/topbox-rci/orgs","repos_url":"https://api.github.com/users/topbox-rci/repos","events_url":"https://api.github.com/users/topbox-rci/events{/privacy}","received_events_url":"https://api.github.com/users/topbox-rci/received_events","type":"Organization","site_admin":false},"repo":{"id":76394133,"node_id":"MDEwOlJlcG9zaXRvcnk3NjM5NDEzMw==","name":"rci-components","full_name":"topbox-rci/rci-components","private":false,"owner":{"login":"topbox-rci","id":12717371,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEyNzE3Mzcx","avatar_url":"https://avatars0.githubusercontent.com/u/12717371?v=4","gravatar_id":"","url":"https://api.github.com/users/topbox-rci","html_url":"https://github.com/topbox-rci","followers_url":"https://api.github.com/users/topbox-rci/followers","following_url":"https://api.github.com/users/topbox-rci/following{/other_user}","gists_url":"https://api.github.com/users/topbox-rci/gists{/gist_id}","starred_url":"https://api.github.com/users/topbox-rci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/topbox-rci/subscriptions","organizations_url":"https://api.github.com/users/topbox-rci/orgs","repos_url":"https://api.github.com/users/topbox-rci/repos","events_url":"https://api.github.com/users/topbox-rci/events{/privacy}","received_events_url":"https://api.github.com/users/topbox-rci/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/topbox-rci/rci-components","description":"React components for the RCI project","fork":false,"url":"https://api.github.com/repos/topbox-rci/rci-components","forks_url":"https://api.github.com/repos/topbox-rci/rci-components/forks","keys_url":"https://api.github.com/repos/topbox-rci/rci-components/keys{/key_id}","collaborators_url":"https://api.github.com/repos/topbox-rci/rci-components/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/topbox-rci/rci-components/teams","hooks_url":"https://api.github.com/repos/topbox-rci/rci-components/hooks","issue_events_url":"https://api.github.com/repos/topbox-rci/rci-components/issues/events{/number}","events_url":"https://api.github.com/repos/topbox-rci/rci-components/events","assignees_url":"https://api.github.com/repos/topbox-rci/rci-components/assignees{/user}","branches_url":"https://api.github.com/repos/topbox-rci/rci-components/branches{/branch}","tags_url":"https://api.github.com/repos/topbox-rci/rci-components/tags","blobs_url":"https://api.github.com/repos/topbox-rci/rci-components/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/topbox-rci/rci-components/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/topbox-rci/rci-components/git/refs{/sha}","trees_url":"https://api.github.com/repos/topbox-rci/rci-components/git/trees{/sha}","statuses_url":"https://api.github.com/repos/topbox-rci/rci-components/statuses/{sha}","languages_url":"https://api.github.com/repos/topbox-rci/rci-components/languages","stargazers_url":"https://api.github.com/repos/topbox-rci/rci-components/stargazers","contributors_url":"https://api.github.com/repos/topbox-rci/rci-components/contributors","subscribers_url":"https://api.github.com/repos/topbox-rci/rci-components/subscribers","subscription_url":"https://api.github.com/repos/topbox-rci/rci-components/subscription","commits_url":"https://api.github.com/repos/topbox-rci/rci-components/commits{/sha}","git_commits_url":"https://api.github.com/repos/topbox-rci/rci-components/git/commits{/sha}","comments_url":"https://api.github.com/repos/topbox-rci/rci-components/comments{/number}","issue_comment_url":"https://api.github.com/repos/topbox-rci/rci-components/issues/comments{/number}","contents_url":"https://api.github.com/repos/topbox-rci/rci-components/contents/{+path}","compare_url":"https://api.github.com/repos/topbox-rci/rci-components/compare/{base}...{head}","merges_url":"https://api.github.com/repos/topbox-rci/rci-components/merges","archive_url":"https://api.github.com/repos/topbox-rci/rci-components/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/topbox-rci/rci-components/downloads","issues_url":"https://api.github.com/repos/topbox-rci/rci-components/issues{/number}","pulls_url":"https://api.github.com/repos/topbox-rci/rci-components/pulls{/number}","milestones_url":"https://api.github.com/repos/topbox-rci/rci-components/milestones{/number}","notifications_url":"https://api.github.com/repos/topbox-rci/rci-components/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/topbox-rci/rci-components/labels{/name}","releases_url":"https://api.github.com/repos/topbox-rci/rci-components/releases{/id}","deployments_url":"https://api.github.com/repos/topbox-rci/rci-components/deployments","created_at":"2016-12-13T20:05:28Z","updated_at":"2018-12-19T23:35:37Z","pushed_at":"2018-12-20T22:34:10Z","git_url":"git://github.com/topbox-rci/rci-components.git","ssh_url":"git@github.com:topbox-rci/rci-components.git","clone_url":"https://github.com/topbox-rci/rci-components.git","svn_url":"https://github.com/topbox-rci/rci-components","homepage":null,"size":3306,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/topbox-rci/rci-components/pulls/887"},"html":{"href":"https://github.com/topbox-rci/rci-components/pull/887"},"issue":{"href":"https://api.github.com/repos/topbox-rci/rci-components/issues/887"},"comments":{"href":"https://api.github.com/repos/topbox-rci/rci-components/issues/887/comments"},"review_comments":{"href":"https://api.github.com/repos/topbox-rci/rci-components/pulls/887/comments"},"review_comment":{"href":"https://api.github.com/repos/topbox-rci/rci-components/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/topbox-rci/rci-components/pulls/887/commits"},"statuses":{"href":"https://api.github.com/repos/topbox-rci/rci-components/statuses/796efd1bdcf5e622a82c734d04489a57687c35c1"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"jasonhale"}}