{"action":"created","comment":{"url":"https://api.github.com/repos/techmagic-team/sls-monitoring-frontend/pulls/comments/171661551","pull_request_review_id":100554904,"id":171661551,"diff_hunk":"@@ -15,26 +15,59 @@ class Dashboard extends Component {\n     constructor(props) {\n         super(props);\n         this.loadMoreHandler = this.loadMoreHandler.bind(this);\n+        this.setFilterTime = this.setFilterTime.bind(this);\n+        this.fetchInvocationsData = this.fetchInvocationsData.bind(this);\n     }\n \n     componentWillMount() {\n+        this.fetchInvocationsData(this.props.match.params.dashboardType);\n+    }\n+\n+    componentWillReceiveProps(nextProps) {\n+        if (this.props.match.params.dashboardType !== nextProps.match.params.dashboardType) {","path":"src/containers/Dashboard/Dashboard.js","position":13,"original_position":13,"commit_id":"9cfb60645921ce8d85bb7a73076835994235dcda","original_commit_id":"9cfb60645921ce8d85bb7a73076835994235dcda","user":{"login":"mrmckeb","id":5043083,"avatar_url":"https://avatars3.githubusercontent.com/u/5043083?v=4","gravatar_id":"","url":"https://api.github.com/users/mrmckeb","html_url":"https://github.com/mrmckeb","followers_url":"https://api.github.com/users/mrmckeb/followers","following_url":"https://api.github.com/users/mrmckeb/following{/other_user}","gists_url":"https://api.github.com/users/mrmckeb/gists{/gist_id}","starred_url":"https://api.github.com/users/mrmckeb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrmckeb/subscriptions","organizations_url":"https://api.github.com/users/mrmckeb/orgs","repos_url":"https://api.github.com/users/mrmckeb/repos","events_url":"https://api.github.com/users/mrmckeb/events{/privacy}","received_events_url":"https://api.github.com/users/mrmckeb/received_events","type":"User","site_admin":false},"body":"You may want to set these as variables for readability.\r\n\r\n```\r\nconst currentDashboardType = ...;\r\nconst nextDashboardType = ...;\r\nif (currentDashboardType !== nextDashboardType)\r\nthis.fetchInvocationsData(nextDashboardType);\r\n```","created_at":"2018-03-01T19:07:57Z","updated_at":"2018-03-01T19:09:38Z","html_url":"https://github.com/techmagic-team/sls-monitoring-frontend/pull/61#discussion_r171661551","pull_request_url":"https://api.github.com/repos/techmagic-team/sls-monitoring-frontend/pulls/61","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/techmagic-team/sls-monitoring-frontend/pulls/comments/171661551"},"html":{"href":"https://github.com/techmagic-team/sls-monitoring-frontend/pull/61#discussion_r171661551"},"pull_request":{"href":"https://api.github.com/repos/techmagic-team/sls-monitoring-frontend/pulls/61"}}},"pull_request":{"url":"https://api.github.com/repos/techmagic-team/sls-monitoring-frontend/pulls/61","id":172270561,"html_url":"https://github.com/techmagic-team/sls-monitoring-frontend/pull/61","diff_url":"https://github.com/techmagic-team/sls-monitoring-frontend/pull/61.diff","patch_url":"https://github.com/techmagic-team/sls-monitoring-frontend/pull/61.patch","issue_url":"https://api.github.com/repos/techmagic-team/sls-monitoring-frontend/issues/61","number":61,"state":"open","locked":false,"title":"Routes and filters","user":{"login":"khrystuk","id":22624868,"avatar_url":"https://avatars2.githubusercontent.com/u/22624868?v=4","gravatar_id":"","url":"https://api.github.com/users/khrystuk","html_url":"https://github.com/khrystuk","followers_url":"https://api.github.com/users/khrystuk/followers","following_url":"https://api.github.com/users/khrystuk/following{/other_user}","gists_url":"https://api.github.com/users/khrystuk/gists{/gist_id}","starred_url":"https://api.github.com/users/khrystuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/khrystuk/subscriptions","organizations_url":"https://api.github.com/users/khrystuk/orgs","repos_url":"https://api.github.com/users/khrystuk/repos","events_url":"https://api.github.com/users/khrystuk/events{/privacy}","received_events_url":"https://api.github.com/users/khrystuk/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-03-01T15:34:43Z","updated_at":"2018-03-01T19:09:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bfe305abb531230c6d97c475bd41b881bac68ffd","assignee":null,"assignees":[],"requested_reviewers":[{"login":"vdanyliv","id":7668527,"avatar_url":"https://avatars0.githubusercontent.com/u/7668527?v=4","gravatar_id":"","url":"https://api.github.com/users/vdanyliv","html_url":"https://github.com/vdanyliv","followers_url":"https://api.github.com/users/vdanyliv/followers","following_url":"https://api.github.com/users/vdanyliv/following{/other_user}","gists_url":"https://api.github.com/users/vdanyliv/gists{/gist_id}","starred_url":"https://api.github.com/users/vdanyliv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vdanyliv/subscriptions","organizations_url":"https://api.github.com/users/vdanyliv/orgs","repos_url":"https://api.github.com/users/vdanyliv/repos","events_url":"https://api.github.com/users/vdanyliv/events{/privacy}","received_events_url":"https://api.github.com/users/vdanyliv/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/techmagic-team/sls-monitoring-frontend/pulls/61/commits","review_comments_url":"https://api.github.com/repos/techmagic-team/sls-monitoring-frontend/pulls/61/comments","review_comment_url":"https://api.github.com/repos/techmagic-team/sls-monitoring-frontend/pulls/comments{/number}","comments_url":"https://api.github.com/repos/techmagic-team/sls-monitoring-frontend/issues/61/comments","statuses_url":"https://api.github.com/repos/techmagic-team/sls-monitoring-frontend/statuses/9cfb60645921ce8d85bb7a73076835994235dcda","head":{"label":"techmagic-team:routes-and-filters","ref":"routes-and-filters","sha":"9cfb60645921ce8d85bb7a73076835994235dcda","user":{"login":"techmagic-team","id":9109175,"avatar_url":"https://avatars3.githubusercontent.com/u/9109175?v=4","gravatar_id":"","url":"https://api.github.com/users/techmagic-team","html_url":"https://github.com/techmagic-team","followers_url":"https://api.github.com/users/techmagic-team/followers","following_url":"https://api.github.com/users/techmagic-team/following{/other_user}","gists_url":"https://api.github.com/users/techmagic-team/gists{/gist_id}","starred_url":"https://api.github.com/users/techmagic-team/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/techmagic-team/subscriptions","organizations_url":"https://api.github.com/users/techmagic-team/orgs","repos_url":"https://api.github.com/users/techmagic-team/repos","events_url":"https://api.github.com/users/techmagic-team/events{/privacy}","received_events_url":"https://api.github.com/users/techmagic-team/received_events","type":"Organization","site_admin":false},"repo":{"id":117229315,"name":"sls-monitoring-frontend","full_name":"techmagic-team/sls-monitoring-frontend","owner":{"login":"techmagic-team","id":9109175,"avatar_url":"https://avatars3.githubusercontent.com/u/9109175?v=4","gravatar_id":"","url":"https://api.github.com/users/techmagic-team","html_url":"https://github.com/techmagic-team","followers_url":"https://api.github.com/users/techmagic-team/followers","following_url":"https://api.github.com/users/techmagic-team/following{/other_user}","gists_url":"https://api.github.com/users/techmagic-team/gists{/gist_id}","starred_url":"https://api.github.com/users/techmagic-team/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/techmagic-team/subscriptions","organizations_url":"https://api.github.com/users/techmagic-team/orgs","repos_url":"https://api.github.com/users/techmagic-team/repos","events_url":"https://api.github.com/users/techmagic-team/events{/privacy}","received_events_url":"https://api.github.com/users/techmagic-team/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/techmagic-team/sls-monitoring-frontend","description":null,"fork":false,"url":"https://api.github.com/repos/techmagic-team/sls-monitoring-frontend","forks_url":"https://api.github.com/repos/techmagic-team/sls-monitoring-frontend/forks","keys_url":"https://api.github.com/repos/techmagic-team/sls-monitoring-frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/techmagic-team/sls-monitoring-frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/techmagic-team/sls-monitoring-frontend/teams","hooks_url":"https://api.github.com/repos/techmagic-team/sls-monitoring-frontend/hooks","issue_events_url":"https://api.github.com/repos/techmagic-team/sls-monitoring-frontend/issues/events{/number}","events_url":"https://api.github.com/repos/techmagic-team/sls-monitoring-frontend/events","assignees_url":"https://api.github.com/repos/techmagic-team/sls-monitoring-frontend/assignees{/user}","branches_url":"https://api.github.com/repos/techmagic-team/sls-monitoring-frontend/branches{/branch}","tags_url":"https://api.github.com/repos/techmagic-team/sls-monitoring-frontend/tags","blobs_url":"https://api.github.com/repos/techmagic-team/sls-monitoring-frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/techmagic-team/sls-monitoring-frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/techmagic-team/sls-monitoring-frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/techmagic-team/sls-monitoring-frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/techmagic-team/sls-monitoring-frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/techmagic-team/sls-monitoring-frontend/languages","stargazers_url":"https://api.github.com/repos/techmagic-team/sls-monitoring-frontend/stargazers","contributors_url":"https://api.github.com/repos/techmagic-team/sls-monitoring-frontend/contributors","subscribers_url":"https://api.github.com/repos/techmagic-team/sls-monitoring-frontend/subscribers","subscription_url":"https://api.github.com/repos/techmagic-team/sls-monitoring-frontend/subscription","commits_url":"https://api.github.com/repos/techmagic-team/sls-monitoring-frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/techmagic-team/sls-monitoring-frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/techmagic-team/sls-monitoring-frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/techmagic-team/sls-monitoring-frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/techmagic-team/sls-monitoring-frontend/contents/{+path}","compare_url":"https://api.github.com/repos/techmagic-team/sls-monitoring-frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/techmagic-team/sls-monitoring-frontend/merges","archive_url":"https://api.github.com/repos/techmagic-team/sls-monitoring-frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/techmagic-team/sls-monitoring-frontend/downloads","issues_url":"https://api.github.com/repos/techmagic-team/sls-monitoring-frontend/issues{/number}","pulls_url":"https://api.github.com/repos/techmagic-team/sls-monitoring-frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/techmagic-team/sls-monitoring-frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/techmagic-team/sls-monitoring-frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/techmagic-team/sls-monitoring-frontend/labels{/name}","releases_url":"https://api.github.com/repos/techmagic-team/sls-monitoring-frontend/releases{/id}","deployments_url":"https://api.github.com/repos/techmagic-team/sls-monitoring-frontend/deployments","created_at":"2018-01-12T10:43:58Z","updated_at":"2018-01-16T15:53:35Z","pushed_at":"2018-03-01T16:08:46Z","git_url":"git://github.com/techmagic-team/sls-monitoring-frontend.git","ssh_url":"git@github.com:techmagic-team/sls-monitoring-frontend.git","clone_url":"https://github.com/techmagic-team/sls-monitoring-frontend.git","svn_url":"https://github.com/techmagic-team/sls-monitoring-frontend","homepage":null,"size":620,"stargazers_count":0,"watchers_count":0,"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":3,"license":null,"forks":0,"open_issues":3,"watchers":0,"default_branch":"dev"}},"base":{"label":"techmagic-team:dev","ref":"dev","sha":"280ef131324ca7836ad13f4bfa3bbcc481070e75","user":{"login":"techmagic-team","id":9109175,"avatar_url":"https://avatars3.githubusercontent.com/u/9109175?v=4","gravatar_id":"","url":"https://api.github.com/users/techmagic-team","html_url":"https://github.com/techmagic-team","followers_url":"https://api.github.com/users/techmagic-team/followers","following_url":"https://api.github.com/users/techmagic-team/following{/other_user}","gists_url":"https://api.github.com/users/techmagic-team/gists{/gist_id}","starred_url":"https://api.github.com/users/techmagic-team/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/techmagic-team/subscriptions","organizations_url":"https://api.github.com/users/techmagic-team/orgs","repos_url":"https://api.github.com/users/techmagic-team/repos","events_url":"https://api.github.com/users/techmagic-team/events{/privacy}","received_events_url":"https://api.github.com/users/techmagic-team/received_events","type":"Organization","site_admin":false},"repo":{"id":117229315,"name":"sls-monitoring-frontend","full_name":"techmagic-team/sls-monitoring-frontend","owner":{"login":"techmagic-team","id":9109175,"avatar_url":"https://avatars3.githubusercontent.com/u/9109175?v=4","gravatar_id":"","url":"https://api.github.com/users/techmagic-team","html_url":"https://github.com/techmagic-team","followers_url":"https://api.github.com/users/techmagic-team/followers","following_url":"https://api.github.com/users/techmagic-team/following{/other_user}","gists_url":"https://api.github.com/users/techmagic-team/gists{/gist_id}","starred_url":"https://api.github.com/users/techmagic-team/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/techmagic-team/subscriptions","organizations_url":"https://api.github.com/users/techmagic-team/orgs","repos_url":"https://api.github.com/users/techmagic-team/repos","events_url":"https://api.github.com/users/techmagic-team/events{/privacy}","received_events_url":"https://api.github.com/users/techmagic-team/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/techmagic-team/sls-monitoring-frontend","description":null,"fork":false,"url":"https://api.github.com/repos/techmagic-team/sls-monitoring-frontend","forks_url":"https://api.github.com/repos/techmagic-team/sls-monitoring-frontend/forks","keys_url":"https://api.github.com/repos/techmagic-team/sls-monitoring-frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/techmagic-team/sls-monitoring-frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/techmagic-team/sls-monitoring-frontend/teams","hooks_url":"https://api.github.com/repos/techmagic-team/sls-monitoring-frontend/hooks","issue_events_url":"https://api.github.com/repos/techmagic-team/sls-monitoring-frontend/issues/events{/number}","events_url":"https://api.github.com/repos/techmagic-team/sls-monitoring-frontend/events","assignees_url":"https://api.github.com/repos/techmagic-team/sls-monitoring-frontend/assignees{/user}","branches_url":"https://api.github.com/repos/techmagic-team/sls-monitoring-frontend/branches{/branch}","tags_url":"https://api.github.com/repos/techmagic-team/sls-monitoring-frontend/tags","blobs_url":"https://api.github.com/repos/techmagic-team/sls-monitoring-frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/techmagic-team/sls-monitoring-frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/techmagic-team/sls-monitoring-frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/techmagic-team/sls-monitoring-frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/techmagic-team/sls-monitoring-frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/techmagic-team/sls-monitoring-frontend/languages","stargazers_url":"https://api.github.com/repos/techmagic-team/sls-monitoring-frontend/stargazers","contributors_url":"https://api.github.com/repos/techmagic-team/sls-monitoring-frontend/contributors","subscribers_url":"https://api.github.com/repos/techmagic-team/sls-monitoring-frontend/subscribers","subscription_url":"https://api.github.com/repos/techmagic-team/sls-monitoring-frontend/subscription","commits_url":"https://api.github.com/repos/techmagic-team/sls-monitoring-frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/techmagic-team/sls-monitoring-frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/techmagic-team/sls-monitoring-frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/techmagic-team/sls-monitoring-frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/techmagic-team/sls-monitoring-frontend/contents/{+path}","compare_url":"https://api.github.com/repos/techmagic-team/sls-monitoring-frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/techmagic-team/sls-monitoring-frontend/merges","archive_url":"https://api.github.com/repos/techmagic-team/sls-monitoring-frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/techmagic-team/sls-monitoring-frontend/downloads","issues_url":"https://api.github.com/repos/techmagic-team/sls-monitoring-frontend/issues{/number}","pulls_url":"https://api.github.com/repos/techmagic-team/sls-monitoring-frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/techmagic-team/sls-monitoring-frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/techmagic-team/sls-monitoring-frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/techmagic-team/sls-monitoring-frontend/labels{/name}","releases_url":"https://api.github.com/repos/techmagic-team/sls-monitoring-frontend/releases{/id}","deployments_url":"https://api.github.com/repos/techmagic-team/sls-monitoring-frontend/deployments","created_at":"2018-01-12T10:43:58Z","updated_at":"2018-01-16T15:53:35Z","pushed_at":"2018-03-01T16:08:46Z","git_url":"git://github.com/techmagic-team/sls-monitoring-frontend.git","ssh_url":"git@github.com:techmagic-team/sls-monitoring-frontend.git","clone_url":"https://github.com/techmagic-team/sls-monitoring-frontend.git","svn_url":"https://github.com/techmagic-team/sls-monitoring-frontend","homepage":null,"size":620,"stargazers_count":0,"watchers_count":0,"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":3,"license":null,"forks":0,"open_issues":3,"watchers":0,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/techmagic-team/sls-monitoring-frontend/pulls/61"},"html":{"href":"https://github.com/techmagic-team/sls-monitoring-frontend/pull/61"},"issue":{"href":"https://api.github.com/repos/techmagic-team/sls-monitoring-frontend/issues/61"},"comments":{"href":"https://api.github.com/repos/techmagic-team/sls-monitoring-frontend/issues/61/comments"},"review_comments":{"href":"https://api.github.com/repos/techmagic-team/sls-monitoring-frontend/pulls/61/comments"},"review_comment":{"href":"https://api.github.com/repos/techmagic-team/sls-monitoring-frontend/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/techmagic-team/sls-monitoring-frontend/pulls/61/commits"},"statuses":{"href":"https://api.github.com/repos/techmagic-team/sls-monitoring-frontend/statuses/9cfb60645921ce8d85bb7a73076835994235dcda"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"mrmckeb"}}