{"action":"created","comment":{"url":"https://api.github.com/repos/Vizzuality/disarm/pulls/comments/62655374","id":62655374,"diff_hunk":"@@ -120,12 +124,14 @@ class App extends React.Component {\n     };\n \n     // /* We retrieve the position of the cursor from the URL if exists */\n-    // if(this.router.params.toJSON().timelineDate) {\n-    //   const date = moment.utc(this.router.params.toJSON().timelineDate, 'YYYY-MM-DD');\n-    //   if(date.isValid()) {\n-    //     timelineParams.cursorPosition = date.toDate();\n-    //   }\n-    // }\n+    if(router.params.toJSON().timelineDate) {\n+      const date = moment.utc(router.params.toJSON().timelineDate, 'YYYY-MM-DD');\n+      if(date.isValid()) {\n+        timelineParams.cursorPosition = date.toDate();\n+      }\n+    } else {\n+      timelineParams.cursorPosition = this.state.timelineDate;\n+    }\n ","path":"src/app.jsx","position":49,"original_position":49,"commit_id":"426db4796c7d37a6aa0f09b3df0003f516622665","original_commit_id":"426db4796c7d37a6aa0f09b3df0003f516622665","user":{"login":"dhakelila","id":6608294,"avatar_url":"https://avatars.githubusercontent.com/u/6608294?v=3","gravatar_id":"","url":"https://api.github.com/users/dhakelila","html_url":"https://github.com/dhakelila","followers_url":"https://api.github.com/users/dhakelila/followers","following_url":"https://api.github.com/users/dhakelila/following{/other_user}","gists_url":"https://api.github.com/users/dhakelila/gists{/gist_id}","starred_url":"https://api.github.com/users/dhakelila/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhakelila/subscriptions","organizations_url":"https://api.github.com/users/dhakelila/orgs","repos_url":"https://api.github.com/users/dhakelila/repos","events_url":"https://api.github.com/users/dhakelila/events{/privacy}","received_events_url":"https://api.github.com/users/dhakelila/received_events","type":"User","site_admin":false},"body":"We already have a function where we retrieve all router params and set them as app state. You'd only need to take that param from app state. ","created_at":"2016-05-10T11:34:05Z","updated_at":"2016-05-10T11:34:05Z","html_url":"https://github.com/Vizzuality/disarm/pull/7#discussion_r62655374","pull_request_url":"https://api.github.com/repos/Vizzuality/disarm/pulls/7","_links":{"self":{"href":"https://api.github.com/repos/Vizzuality/disarm/pulls/comments/62655374"},"html":{"href":"https://github.com/Vizzuality/disarm/pull/7#discussion_r62655374"},"pull_request":{"href":"https://api.github.com/repos/Vizzuality/disarm/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/Vizzuality/disarm/pulls/7","id":69489560,"html_url":"https://github.com/Vizzuality/disarm/pull/7","diff_url":"https://github.com/Vizzuality/disarm/pull/7.diff","patch_url":"https://github.com/Vizzuality/disarm/pull/7.patch","issue_url":"https://api.github.com/repos/Vizzuality/disarm/issues/7","number":7,"state":"open","locked":false,"title":"Feature/timeline param","user":{"login":"andresgnlez","id":999124,"avatar_url":"https://avatars.githubusercontent.com/u/999124?v=3","gravatar_id":"","url":"https://api.github.com/users/andresgnlez","html_url":"https://github.com/andresgnlez","followers_url":"https://api.github.com/users/andresgnlez/followers","following_url":"https://api.github.com/users/andresgnlez/following{/other_user}","gists_url":"https://api.github.com/users/andresgnlez/gists{/gist_id}","starred_url":"https://api.github.com/users/andresgnlez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andresgnlez/subscriptions","organizations_url":"https://api.github.com/users/andresgnlez/orgs","repos_url":"https://api.github.com/users/andresgnlez/repos","events_url":"https://api.github.com/users/andresgnlez/events{/privacy}","received_events_url":"https://api.github.com/users/andresgnlez/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-05-10T11:24:49Z","updated_at":"2016-05-10T11:34:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"12cadd34bf302edac7761513a977b7afdbede60e","assignee":{"login":"dhakelila","id":6608294,"avatar_url":"https://avatars.githubusercontent.com/u/6608294?v=3","gravatar_id":"","url":"https://api.github.com/users/dhakelila","html_url":"https://github.com/dhakelila","followers_url":"https://api.github.com/users/dhakelila/followers","following_url":"https://api.github.com/users/dhakelila/following{/other_user}","gists_url":"https://api.github.com/users/dhakelila/gists{/gist_id}","starred_url":"https://api.github.com/users/dhakelila/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhakelila/subscriptions","organizations_url":"https://api.github.com/users/dhakelila/orgs","repos_url":"https://api.github.com/users/dhakelila/repos","events_url":"https://api.github.com/users/dhakelila/events{/privacy}","received_events_url":"https://api.github.com/users/dhakelila/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/Vizzuality/disarm/pulls/7/commits","review_comments_url":"https://api.github.com/repos/Vizzuality/disarm/pulls/7/comments","review_comment_url":"https://api.github.com/repos/Vizzuality/disarm/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Vizzuality/disarm/issues/7/comments","statuses_url":"https://api.github.com/repos/Vizzuality/disarm/statuses/426db4796c7d37a6aa0f09b3df0003f516622665","head":{"label":"Vizzuality:feature/timeline-param","ref":"feature/timeline-param","sha":"426db4796c7d37a6aa0f09b3df0003f516622665","user":{"login":"Vizzuality","id":305994,"avatar_url":"https://avatars.githubusercontent.com/u/305994?v=3","gravatar_id":"","url":"https://api.github.com/users/Vizzuality","html_url":"https://github.com/Vizzuality","followers_url":"https://api.github.com/users/Vizzuality/followers","following_url":"https://api.github.com/users/Vizzuality/following{/other_user}","gists_url":"https://api.github.com/users/Vizzuality/gists{/gist_id}","starred_url":"https://api.github.com/users/Vizzuality/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vizzuality/subscriptions","organizations_url":"https://api.github.com/users/Vizzuality/orgs","repos_url":"https://api.github.com/users/Vizzuality/repos","events_url":"https://api.github.com/users/Vizzuality/events{/privacy}","received_events_url":"https://api.github.com/users/Vizzuality/received_events","type":"Organization","site_admin":false},"repo":{"id":57962464,"name":"disarm","full_name":"Vizzuality/disarm","owner":{"login":"Vizzuality","id":305994,"avatar_url":"https://avatars.githubusercontent.com/u/305994?v=3","gravatar_id":"","url":"https://api.github.com/users/Vizzuality","html_url":"https://github.com/Vizzuality","followers_url":"https://api.github.com/users/Vizzuality/followers","following_url":"https://api.github.com/users/Vizzuality/following{/other_user}","gists_url":"https://api.github.com/users/Vizzuality/gists{/gist_id}","starred_url":"https://api.github.com/users/Vizzuality/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vizzuality/subscriptions","organizations_url":"https://api.github.com/users/Vizzuality/orgs","repos_url":"https://api.github.com/users/Vizzuality/repos","events_url":"https://api.github.com/users/Vizzuality/events{/privacy}","received_events_url":"https://api.github.com/users/Vizzuality/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Vizzuality/disarm","description":"Disaster Situation Analysis and Resource Management","fork":false,"url":"https://api.github.com/repos/Vizzuality/disarm","forks_url":"https://api.github.com/repos/Vizzuality/disarm/forks","keys_url":"https://api.github.com/repos/Vizzuality/disarm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Vizzuality/disarm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Vizzuality/disarm/teams","hooks_url":"https://api.github.com/repos/Vizzuality/disarm/hooks","issue_events_url":"https://api.github.com/repos/Vizzuality/disarm/issues/events{/number}","events_url":"https://api.github.com/repos/Vizzuality/disarm/events","assignees_url":"https://api.github.com/repos/Vizzuality/disarm/assignees{/user}","branches_url":"https://api.github.com/repos/Vizzuality/disarm/branches{/branch}","tags_url":"https://api.github.com/repos/Vizzuality/disarm/tags","blobs_url":"https://api.github.com/repos/Vizzuality/disarm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Vizzuality/disarm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Vizzuality/disarm/git/refs{/sha}","trees_url":"https://api.github.com/repos/Vizzuality/disarm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Vizzuality/disarm/statuses/{sha}","languages_url":"https://api.github.com/repos/Vizzuality/disarm/languages","stargazers_url":"https://api.github.com/repos/Vizzuality/disarm/stargazers","contributors_url":"https://api.github.com/repos/Vizzuality/disarm/contributors","subscribers_url":"https://api.github.com/repos/Vizzuality/disarm/subscribers","subscription_url":"https://api.github.com/repos/Vizzuality/disarm/subscription","commits_url":"https://api.github.com/repos/Vizzuality/disarm/commits{/sha}","git_commits_url":"https://api.github.com/repos/Vizzuality/disarm/git/commits{/sha}","comments_url":"https://api.github.com/repos/Vizzuality/disarm/comments{/number}","issue_comment_url":"https://api.github.com/repos/Vizzuality/disarm/issues/comments{/number}","contents_url":"https://api.github.com/repos/Vizzuality/disarm/contents/{+path}","compare_url":"https://api.github.com/repos/Vizzuality/disarm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Vizzuality/disarm/merges","archive_url":"https://api.github.com/repos/Vizzuality/disarm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Vizzuality/disarm/downloads","issues_url":"https://api.github.com/repos/Vizzuality/disarm/issues{/number}","pulls_url":"https://api.github.com/repos/Vizzuality/disarm/pulls{/number}","milestones_url":"https://api.github.com/repos/Vizzuality/disarm/milestones{/number}","notifications_url":"https://api.github.com/repos/Vizzuality/disarm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Vizzuality/disarm/labels{/name}","releases_url":"https://api.github.com/repos/Vizzuality/disarm/releases{/id}","deployments_url":"https://api.github.com/repos/Vizzuality/disarm/deployments","created_at":"2016-05-03T10:55:58Z","updated_at":"2016-05-03T10:58:32Z","pushed_at":"2016-05-10T11:24:49Z","git_url":"git://github.com/Vizzuality/disarm.git","ssh_url":"git@github.com:Vizzuality/disarm.git","clone_url":"https://github.com/Vizzuality/disarm.git","svn_url":"https://github.com/Vizzuality/disarm","homepage":"","size":74,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"Vizzuality:develop","ref":"develop","sha":"cecc3280e18b7d10bb07998e8f2d545645c4df2b","user":{"login":"Vizzuality","id":305994,"avatar_url":"https://avatars.githubusercontent.com/u/305994?v=3","gravatar_id":"","url":"https://api.github.com/users/Vizzuality","html_url":"https://github.com/Vizzuality","followers_url":"https://api.github.com/users/Vizzuality/followers","following_url":"https://api.github.com/users/Vizzuality/following{/other_user}","gists_url":"https://api.github.com/users/Vizzuality/gists{/gist_id}","starred_url":"https://api.github.com/users/Vizzuality/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vizzuality/subscriptions","organizations_url":"https://api.github.com/users/Vizzuality/orgs","repos_url":"https://api.github.com/users/Vizzuality/repos","events_url":"https://api.github.com/users/Vizzuality/events{/privacy}","received_events_url":"https://api.github.com/users/Vizzuality/received_events","type":"Organization","site_admin":false},"repo":{"id":57962464,"name":"disarm","full_name":"Vizzuality/disarm","owner":{"login":"Vizzuality","id":305994,"avatar_url":"https://avatars.githubusercontent.com/u/305994?v=3","gravatar_id":"","url":"https://api.github.com/users/Vizzuality","html_url":"https://github.com/Vizzuality","followers_url":"https://api.github.com/users/Vizzuality/followers","following_url":"https://api.github.com/users/Vizzuality/following{/other_user}","gists_url":"https://api.github.com/users/Vizzuality/gists{/gist_id}","starred_url":"https://api.github.com/users/Vizzuality/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vizzuality/subscriptions","organizations_url":"https://api.github.com/users/Vizzuality/orgs","repos_url":"https://api.github.com/users/Vizzuality/repos","events_url":"https://api.github.com/users/Vizzuality/events{/privacy}","received_events_url":"https://api.github.com/users/Vizzuality/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Vizzuality/disarm","description":"Disaster Situation Analysis and Resource Management","fork":false,"url":"https://api.github.com/repos/Vizzuality/disarm","forks_url":"https://api.github.com/repos/Vizzuality/disarm/forks","keys_url":"https://api.github.com/repos/Vizzuality/disarm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Vizzuality/disarm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Vizzuality/disarm/teams","hooks_url":"https://api.github.com/repos/Vizzuality/disarm/hooks","issue_events_url":"https://api.github.com/repos/Vizzuality/disarm/issues/events{/number}","events_url":"https://api.github.com/repos/Vizzuality/disarm/events","assignees_url":"https://api.github.com/repos/Vizzuality/disarm/assignees{/user}","branches_url":"https://api.github.com/repos/Vizzuality/disarm/branches{/branch}","tags_url":"https://api.github.com/repos/Vizzuality/disarm/tags","blobs_url":"https://api.github.com/repos/Vizzuality/disarm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Vizzuality/disarm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Vizzuality/disarm/git/refs{/sha}","trees_url":"https://api.github.com/repos/Vizzuality/disarm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Vizzuality/disarm/statuses/{sha}","languages_url":"https://api.github.com/repos/Vizzuality/disarm/languages","stargazers_url":"https://api.github.com/repos/Vizzuality/disarm/stargazers","contributors_url":"https://api.github.com/repos/Vizzuality/disarm/contributors","subscribers_url":"https://api.github.com/repos/Vizzuality/disarm/subscribers","subscription_url":"https://api.github.com/repos/Vizzuality/disarm/subscription","commits_url":"https://api.github.com/repos/Vizzuality/disarm/commits{/sha}","git_commits_url":"https://api.github.com/repos/Vizzuality/disarm/git/commits{/sha}","comments_url":"https://api.github.com/repos/Vizzuality/disarm/comments{/number}","issue_comment_url":"https://api.github.com/repos/Vizzuality/disarm/issues/comments{/number}","contents_url":"https://api.github.com/repos/Vizzuality/disarm/contents/{+path}","compare_url":"https://api.github.com/repos/Vizzuality/disarm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Vizzuality/disarm/merges","archive_url":"https://api.github.com/repos/Vizzuality/disarm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Vizzuality/disarm/downloads","issues_url":"https://api.github.com/repos/Vizzuality/disarm/issues{/number}","pulls_url":"https://api.github.com/repos/Vizzuality/disarm/pulls{/number}","milestones_url":"https://api.github.com/repos/Vizzuality/disarm/milestones{/number}","notifications_url":"https://api.github.com/repos/Vizzuality/disarm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Vizzuality/disarm/labels{/name}","releases_url":"https://api.github.com/repos/Vizzuality/disarm/releases{/id}","deployments_url":"https://api.github.com/repos/Vizzuality/disarm/deployments","created_at":"2016-05-03T10:55:58Z","updated_at":"2016-05-03T10:58:32Z","pushed_at":"2016-05-10T11:24:49Z","git_url":"git://github.com/Vizzuality/disarm.git","ssh_url":"git@github.com:Vizzuality/disarm.git","clone_url":"https://github.com/Vizzuality/disarm.git","svn_url":"https://github.com/Vizzuality/disarm","homepage":"","size":74,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Vizzuality/disarm/pulls/7"},"html":{"href":"https://github.com/Vizzuality/disarm/pull/7"},"issue":{"href":"https://api.github.com/repos/Vizzuality/disarm/issues/7"},"comments":{"href":"https://api.github.com/repos/Vizzuality/disarm/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/Vizzuality/disarm/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/Vizzuality/disarm/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Vizzuality/disarm/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/Vizzuality/disarm/statuses/426db4796c7d37a6aa0f09b3df0003f516622665"}}}}