{"action":"created","comment":{"url":"https://api.github.com/repos/HSLdevcom/transitlog-ui/pulls/comments/211842037","pull_request_review_id":148347406,"id":211842037,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxMTg0MjAzNw==","diff_hunk":"@@ -141,7 +168,9 @@ class RouteLayer extends Component {\n           // ...and the last stop is first.\n           const isLast = index === 0;\n \n-          const hfp = this.getStopTimes(stop);\n+          const hfp = selectedJourney\n+            ? this.getStopTimesForJourney(stop)\n+            : this.getAllStopTimes(stop);","path":"src/components/map/RouteLayer.js","position":105,"original_position":105,"commit_id":"1c556de93d90f8965af4f45700170ca9840c8c77","original_commit_id":"1c556de93d90f8965af4f45700170ca9840c8c77","user":{"login":"danieldunderfelt","id":3145668,"node_id":"MDQ6VXNlcjMxNDU2Njg=","avatar_url":"https://avatars2.githubusercontent.com/u/3145668?v=4","gravatar_id":"","url":"https://api.github.com/users/danieldunderfelt","html_url":"https://github.com/danieldunderfelt","followers_url":"https://api.github.com/users/danieldunderfelt/followers","following_url":"https://api.github.com/users/danieldunderfelt/following{/other_user}","gists_url":"https://api.github.com/users/danieldunderfelt/gists{/gist_id}","starred_url":"https://api.github.com/users/danieldunderfelt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danieldunderfelt/subscriptions","organizations_url":"https://api.github.com/users/danieldunderfelt/orgs","repos_url":"https://api.github.com/users/danieldunderfelt/repos","events_url":"https://api.github.com/users/danieldunderfelt/events{/privacy}","received_events_url":"https://api.github.com/users/danieldunderfelt/received_events","type":"User","site_admin":false},"body":"Uses separate methods depending on if a journey is selected. The stop should only get the hfp times of the selected journey. The shape of the result is the same, but if no journey is selected the result is cached.","created_at":"2018-08-22T06:34:36Z","updated_at":"2018-08-22T06:34:36Z","html_url":"https://github.com/HSLdevcom/transitlog-ui/pull/47#discussion_r211842037","pull_request_url":"https://api.github.com/repos/HSLdevcom/transitlog-ui/pulls/47","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/HSLdevcom/transitlog-ui/pulls/comments/211842037"},"html":{"href":"https://github.com/HSLdevcom/transitlog-ui/pull/47#discussion_r211842037"},"pull_request":{"href":"https://api.github.com/repos/HSLdevcom/transitlog-ui/pulls/47"}}},"pull_request":{"url":"https://api.github.com/repos/HSLdevcom/transitlog-ui/pulls/47","id":210012096,"node_id":"MDExOlB1bGxSZXF1ZXN0MjEwMDEyMDk2","html_url":"https://github.com/HSLdevcom/transitlog-ui/pull/47","diff_url":"https://github.com/HSLdevcom/transitlog-ui/pull/47.diff","patch_url":"https://github.com/HSLdevcom/transitlog-ui/pull/47.patch","issue_url":"https://api.github.com/repos/HSLdevcom/transitlog-ui/issues/47","number":47,"state":"open","locked":false,"title":"Fixes and refactorings","user":{"login":"danieldunderfelt","id":3145668,"node_id":"MDQ6VXNlcjMxNDU2Njg=","avatar_url":"https://avatars2.githubusercontent.com/u/3145668?v=4","gravatar_id":"","url":"https://api.github.com/users/danieldunderfelt","html_url":"https://github.com/danieldunderfelt","followers_url":"https://api.github.com/users/danieldunderfelt/followers","following_url":"https://api.github.com/users/danieldunderfelt/following{/other_user}","gists_url":"https://api.github.com/users/danieldunderfelt/gists{/gist_id}","starred_url":"https://api.github.com/users/danieldunderfelt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danieldunderfelt/subscriptions","organizations_url":"https://api.github.com/users/danieldunderfelt/orgs","repos_url":"https://api.github.com/users/danieldunderfelt/repos","events_url":"https://api.github.com/users/danieldunderfelt/events{/privacy}","received_events_url":"https://api.github.com/users/danieldunderfelt/received_events","type":"User","site_admin":false},"body":"Small tasks from the backlog, fixes and refactorings.","created_at":"2018-08-22T03:37:38Z","updated_at":"2018-08-22T06:34:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d0278d5de7d38419b5427f222f4d609d61b3378a","assignee":null,"assignees":[],"requested_reviewers":[{"login":"varpushaukka","id":5735068,"node_id":"MDQ6VXNlcjU3MzUwNjg=","avatar_url":"https://avatars1.githubusercontent.com/u/5735068?v=4","gravatar_id":"","url":"https://api.github.com/users/varpushaukka","html_url":"https://github.com/varpushaukka","followers_url":"https://api.github.com/users/varpushaukka/followers","following_url":"https://api.github.com/users/varpushaukka/following{/other_user}","gists_url":"https://api.github.com/users/varpushaukka/gists{/gist_id}","starred_url":"https://api.github.com/users/varpushaukka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/varpushaukka/subscriptions","organizations_url":"https://api.github.com/users/varpushaukka/orgs","repos_url":"https://api.github.com/users/varpushaukka/repos","events_url":"https://api.github.com/users/varpushaukka/events{/privacy}","received_events_url":"https://api.github.com/users/varpushaukka/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/HSLdevcom/transitlog-ui/pulls/47/commits","review_comments_url":"https://api.github.com/repos/HSLdevcom/transitlog-ui/pulls/47/comments","review_comment_url":"https://api.github.com/repos/HSLdevcom/transitlog-ui/pulls/comments{/number}","comments_url":"https://api.github.com/repos/HSLdevcom/transitlog-ui/issues/47/comments","statuses_url":"https://api.github.com/repos/HSLdevcom/transitlog-ui/statuses/1c556de93d90f8965af4f45700170ca9840c8c77","head":{"label":"HSLdevcom:fixes-refactorings","ref":"fixes-refactorings","sha":"1c556de93d90f8965af4f45700170ca9840c8c77","user":{"login":"HSLdevcom","id":2813507,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI4MTM1MDc=","avatar_url":"https://avatars1.githubusercontent.com/u/2813507?v=4","gravatar_id":"","url":"https://api.github.com/users/HSLdevcom","html_url":"https://github.com/HSLdevcom","followers_url":"https://api.github.com/users/HSLdevcom/followers","following_url":"https://api.github.com/users/HSLdevcom/following{/other_user}","gists_url":"https://api.github.com/users/HSLdevcom/gists{/gist_id}","starred_url":"https://api.github.com/users/HSLdevcom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HSLdevcom/subscriptions","organizations_url":"https://api.github.com/users/HSLdevcom/orgs","repos_url":"https://api.github.com/users/HSLdevcom/repos","events_url":"https://api.github.com/users/HSLdevcom/events{/privacy}","received_events_url":"https://api.github.com/users/HSLdevcom/received_events","type":"Organization","site_admin":false},"repo":{"id":133322389,"node_id":"MDEwOlJlcG9zaXRvcnkxMzMzMjIzODk=","name":"transitlog-ui","full_name":"HSLdevcom/transitlog-ui","owner":{"login":"HSLdevcom","id":2813507,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI4MTM1MDc=","avatar_url":"https://avatars1.githubusercontent.com/u/2813507?v=4","gravatar_id":"","url":"https://api.github.com/users/HSLdevcom","html_url":"https://github.com/HSLdevcom","followers_url":"https://api.github.com/users/HSLdevcom/followers","following_url":"https://api.github.com/users/HSLdevcom/following{/other_user}","gists_url":"https://api.github.com/users/HSLdevcom/gists{/gist_id}","starred_url":"https://api.github.com/users/HSLdevcom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HSLdevcom/subscriptions","organizations_url":"https://api.github.com/users/HSLdevcom/orgs","repos_url":"https://api.github.com/users/HSLdevcom/repos","events_url":"https://api.github.com/users/HSLdevcom/events{/privacy}","received_events_url":"https://api.github.com/users/HSLdevcom/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/HSLdevcom/transitlog-ui","description":null,"fork":false,"url":"https://api.github.com/repos/HSLdevcom/transitlog-ui","forks_url":"https://api.github.com/repos/HSLdevcom/transitlog-ui/forks","keys_url":"https://api.github.com/repos/HSLdevcom/transitlog-ui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/HSLdevcom/transitlog-ui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/HSLdevcom/transitlog-ui/teams","hooks_url":"https://api.github.com/repos/HSLdevcom/transitlog-ui/hooks","issue_events_url":"https://api.github.com/repos/HSLdevcom/transitlog-ui/issues/events{/number}","events_url":"https://api.github.com/repos/HSLdevcom/transitlog-ui/events","assignees_url":"https://api.github.com/repos/HSLdevcom/transitlog-ui/assignees{/user}","branches_url":"https://api.github.com/repos/HSLdevcom/transitlog-ui/branches{/branch}","tags_url":"https://api.github.com/repos/HSLdevcom/transitlog-ui/tags","blobs_url":"https://api.github.com/repos/HSLdevcom/transitlog-ui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/HSLdevcom/transitlog-ui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/HSLdevcom/transitlog-ui/git/refs{/sha}","trees_url":"https://api.github.com/repos/HSLdevcom/transitlog-ui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/HSLdevcom/transitlog-ui/statuses/{sha}","languages_url":"https://api.github.com/repos/HSLdevcom/transitlog-ui/languages","stargazers_url":"https://api.github.com/repos/HSLdevcom/transitlog-ui/stargazers","contributors_url":"https://api.github.com/repos/HSLdevcom/transitlog-ui/contributors","subscribers_url":"https://api.github.com/repos/HSLdevcom/transitlog-ui/subscribers","subscription_url":"https://api.github.com/repos/HSLdevcom/transitlog-ui/subscription","commits_url":"https://api.github.com/repos/HSLdevcom/transitlog-ui/commits{/sha}","git_commits_url":"https://api.github.com/repos/HSLdevcom/transitlog-ui/git/commits{/sha}","comments_url":"https://api.github.com/repos/HSLdevcom/transitlog-ui/comments{/number}","issue_comment_url":"https://api.github.com/repos/HSLdevcom/transitlog-ui/issues/comments{/number}","contents_url":"https://api.github.com/repos/HSLdevcom/transitlog-ui/contents/{+path}","compare_url":"https://api.github.com/repos/HSLdevcom/transitlog-ui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/HSLdevcom/transitlog-ui/merges","archive_url":"https://api.github.com/repos/HSLdevcom/transitlog-ui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/HSLdevcom/transitlog-ui/downloads","issues_url":"https://api.github.com/repos/HSLdevcom/transitlog-ui/issues{/number}","pulls_url":"https://api.github.com/repos/HSLdevcom/transitlog-ui/pulls{/number}","milestones_url":"https://api.github.com/repos/HSLdevcom/transitlog-ui/milestones{/number}","notifications_url":"https://api.github.com/repos/HSLdevcom/transitlog-ui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/HSLdevcom/transitlog-ui/labels{/name}","releases_url":"https://api.github.com/repos/HSLdevcom/transitlog-ui/releases{/id}","deployments_url":"https://api.github.com/repos/HSLdevcom/transitlog-ui/deployments","created_at":"2018-05-14T07:33:32Z","updated_at":"2018-08-21T12:00:47Z","pushed_at":"2018-08-22T06:20:00Z","git_url":"git://github.com/HSLdevcom/transitlog-ui.git","ssh_url":"git@github.com:HSLdevcom/transitlog-ui.git","clone_url":"https://github.com/HSLdevcom/transitlog-ui.git","svn_url":"https://github.com/HSLdevcom/transitlog-ui","homepage":null,"size":383,"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":1,"mirror_url":null,"archived":false,"open_issues_count":18,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0","node_id":"MDc6TGljZW5zZTE="},"forks":1,"open_issues":18,"watchers":0,"default_branch":"master"}},"base":{"label":"HSLdevcom:master","ref":"master","sha":"3dc264d4acd3767226e6b207d789084f36d69228","user":{"login":"HSLdevcom","id":2813507,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI4MTM1MDc=","avatar_url":"https://avatars1.githubusercontent.com/u/2813507?v=4","gravatar_id":"","url":"https://api.github.com/users/HSLdevcom","html_url":"https://github.com/HSLdevcom","followers_url":"https://api.github.com/users/HSLdevcom/followers","following_url":"https://api.github.com/users/HSLdevcom/following{/other_user}","gists_url":"https://api.github.com/users/HSLdevcom/gists{/gist_id}","starred_url":"https://api.github.com/users/HSLdevcom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HSLdevcom/subscriptions","organizations_url":"https://api.github.com/users/HSLdevcom/orgs","repos_url":"https://api.github.com/users/HSLdevcom/repos","events_url":"https://api.github.com/users/HSLdevcom/events{/privacy}","received_events_url":"https://api.github.com/users/HSLdevcom/received_events","type":"Organization","site_admin":false},"repo":{"id":133322389,"node_id":"MDEwOlJlcG9zaXRvcnkxMzMzMjIzODk=","name":"transitlog-ui","full_name":"HSLdevcom/transitlog-ui","owner":{"login":"HSLdevcom","id":2813507,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI4MTM1MDc=","avatar_url":"https://avatars1.githubusercontent.com/u/2813507?v=4","gravatar_id":"","url":"https://api.github.com/users/HSLdevcom","html_url":"https://github.com/HSLdevcom","followers_url":"https://api.github.com/users/HSLdevcom/followers","following_url":"https://api.github.com/users/HSLdevcom/following{/other_user}","gists_url":"https://api.github.com/users/HSLdevcom/gists{/gist_id}","starred_url":"https://api.github.com/users/HSLdevcom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HSLdevcom/subscriptions","organizations_url":"https://api.github.com/users/HSLdevcom/orgs","repos_url":"https://api.github.com/users/HSLdevcom/repos","events_url":"https://api.github.com/users/HSLdevcom/events{/privacy}","received_events_url":"https://api.github.com/users/HSLdevcom/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/HSLdevcom/transitlog-ui","description":null,"fork":false,"url":"https://api.github.com/repos/HSLdevcom/transitlog-ui","forks_url":"https://api.github.com/repos/HSLdevcom/transitlog-ui/forks","keys_url":"https://api.github.com/repos/HSLdevcom/transitlog-ui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/HSLdevcom/transitlog-ui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/HSLdevcom/transitlog-ui/teams","hooks_url":"https://api.github.com/repos/HSLdevcom/transitlog-ui/hooks","issue_events_url":"https://api.github.com/repos/HSLdevcom/transitlog-ui/issues/events{/number}","events_url":"https://api.github.com/repos/HSLdevcom/transitlog-ui/events","assignees_url":"https://api.github.com/repos/HSLdevcom/transitlog-ui/assignees{/user}","branches_url":"https://api.github.com/repos/HSLdevcom/transitlog-ui/branches{/branch}","tags_url":"https://api.github.com/repos/HSLdevcom/transitlog-ui/tags","blobs_url":"https://api.github.com/repos/HSLdevcom/transitlog-ui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/HSLdevcom/transitlog-ui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/HSLdevcom/transitlog-ui/git/refs{/sha}","trees_url":"https://api.github.com/repos/HSLdevcom/transitlog-ui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/HSLdevcom/transitlog-ui/statuses/{sha}","languages_url":"https://api.github.com/repos/HSLdevcom/transitlog-ui/languages","stargazers_url":"https://api.github.com/repos/HSLdevcom/transitlog-ui/stargazers","contributors_url":"https://api.github.com/repos/HSLdevcom/transitlog-ui/contributors","subscribers_url":"https://api.github.com/repos/HSLdevcom/transitlog-ui/subscribers","subscription_url":"https://api.github.com/repos/HSLdevcom/transitlog-ui/subscription","commits_url":"https://api.github.com/repos/HSLdevcom/transitlog-ui/commits{/sha}","git_commits_url":"https://api.github.com/repos/HSLdevcom/transitlog-ui/git/commits{/sha}","comments_url":"https://api.github.com/repos/HSLdevcom/transitlog-ui/comments{/number}","issue_comment_url":"https://api.github.com/repos/HSLdevcom/transitlog-ui/issues/comments{/number}","contents_url":"https://api.github.com/repos/HSLdevcom/transitlog-ui/contents/{+path}","compare_url":"https://api.github.com/repos/HSLdevcom/transitlog-ui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/HSLdevcom/transitlog-ui/merges","archive_url":"https://api.github.com/repos/HSLdevcom/transitlog-ui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/HSLdevcom/transitlog-ui/downloads","issues_url":"https://api.github.com/repos/HSLdevcom/transitlog-ui/issues{/number}","pulls_url":"https://api.github.com/repos/HSLdevcom/transitlog-ui/pulls{/number}","milestones_url":"https://api.github.com/repos/HSLdevcom/transitlog-ui/milestones{/number}","notifications_url":"https://api.github.com/repos/HSLdevcom/transitlog-ui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/HSLdevcom/transitlog-ui/labels{/name}","releases_url":"https://api.github.com/repos/HSLdevcom/transitlog-ui/releases{/id}","deployments_url":"https://api.github.com/repos/HSLdevcom/transitlog-ui/deployments","created_at":"2018-05-14T07:33:32Z","updated_at":"2018-08-21T12:00:47Z","pushed_at":"2018-08-22T06:20:00Z","git_url":"git://github.com/HSLdevcom/transitlog-ui.git","ssh_url":"git@github.com:HSLdevcom/transitlog-ui.git","clone_url":"https://github.com/HSLdevcom/transitlog-ui.git","svn_url":"https://github.com/HSLdevcom/transitlog-ui","homepage":null,"size":383,"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":1,"mirror_url":null,"archived":false,"open_issues_count":18,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0","node_id":"MDc6TGljZW5zZTE="},"forks":1,"open_issues":18,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/HSLdevcom/transitlog-ui/pulls/47"},"html":{"href":"https://github.com/HSLdevcom/transitlog-ui/pull/47"},"issue":{"href":"https://api.github.com/repos/HSLdevcom/transitlog-ui/issues/47"},"comments":{"href":"https://api.github.com/repos/HSLdevcom/transitlog-ui/issues/47/comments"},"review_comments":{"href":"https://api.github.com/repos/HSLdevcom/transitlog-ui/pulls/47/comments"},"review_comment":{"href":"https://api.github.com/repos/HSLdevcom/transitlog-ui/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/HSLdevcom/transitlog-ui/pulls/47/commits"},"statuses":{"href":"https://api.github.com/repos/HSLdevcom/transitlog-ui/statuses/1c556de93d90f8965af4f45700170ca9840c8c77"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"danieldunderfelt"}}