{"action":"created","comment":{"url":"https://api.github.com/repos/nhsuk/sexual-health-service-finder/pulls/comments/174053912","pull_request_review_id":103340000,"id":174053912,"diff_hunk":"@@ -0,0 +1,28 @@\n+const constants = require('../lib/constants');\n+\n+function fromRequest(req, res, next) {\n+  res.locals.locationHeading = null;\n+  res.locals.locationLabel = 'Enter a postcode in England.';\n+  res.locals.type = req.query.type;\n+  res.locals.origin = req.query.origin;\n+  res.locals.location = req.query.location;\n+  if ((req.query.type === constants.SERVICE_TYPES.professional)","path":"app/middleware/setLocals.js","position":9,"original_position":9,"commit_id":"027f63f5bf4f5214d2a95653efbaf1d0c31af4de","original_commit_id":"027f63f5bf4f5214d2a95653efbaf1d0c31af4de","user":{"login":"beseven","id":1902266,"avatar_url":"https://avatars0.githubusercontent.com/u/1902266?v=4","gravatar_id":"","url":"https://api.github.com/users/beseven","html_url":"https://github.com/beseven","followers_url":"https://api.github.com/users/beseven/followers","following_url":"https://api.github.com/users/beseven/following{/other_user}","gists_url":"https://api.github.com/users/beseven/gists{/gist_id}","starred_url":"https://api.github.com/users/beseven/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beseven/subscriptions","organizations_url":"https://api.github.com/users/beseven/orgs","repos_url":"https://api.github.com/users/beseven/repos","events_url":"https://api.github.com/users/beseven/events{/privacy}","received_events_url":"https://api.github.com/users/beseven/received_events","type":"User","site_admin":false},"body":"If I do this, then I will have to link the correctParams flag to the setting of the locationHeading. You can take a look at re-review  ","created_at":"2018-03-13T08:58:53Z","updated_at":"2018-03-13T08:58:53Z","html_url":"https://github.com/nhsuk/sexual-health-service-finder/pull/11#discussion_r174053912","pull_request_url":"https://api.github.com/repos/nhsuk/sexual-health-service-finder/pulls/11","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/nhsuk/sexual-health-service-finder/pulls/comments/174053912"},"html":{"href":"https://github.com/nhsuk/sexual-health-service-finder/pull/11#discussion_r174053912"},"pull_request":{"href":"https://api.github.com/repos/nhsuk/sexual-health-service-finder/pulls/11"}},"in_reply_to_id":173471552},"pull_request":{"url":"https://api.github.com/repos/nhsuk/sexual-health-service-finder/pulls/11","id":173848536,"html_url":"https://github.com/nhsuk/sexual-health-service-finder/pull/11","diff_url":"https://github.com/nhsuk/sexual-health-service-finder/pull/11.diff","patch_url":"https://github.com/nhsuk/sexual-health-service-finder/pull/11.patch","issue_url":"https://api.github.com/repos/nhsuk/sexual-health-service-finder/issues/11","number":11,"state":"open","locked":false,"title":"Feature/find by postcode - Postcode.io integration and error messages","user":{"login":"beseven","id":1902266,"avatar_url":"https://avatars0.githubusercontent.com/u/1902266?v=4","gravatar_id":"","url":"https://api.github.com/users/beseven","html_url":"https://github.com/beseven","followers_url":"https://api.github.com/users/beseven/followers","following_url":"https://api.github.com/users/beseven/following{/other_user}","gists_url":"https://api.github.com/users/beseven/gists{/gist_id}","starred_url":"https://api.github.com/users/beseven/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beseven/subscriptions","organizations_url":"https://api.github.com/users/beseven/orgs","repos_url":"https://api.github.com/users/beseven/repos","events_url":"https://api.github.com/users/beseven/events{/privacy}","received_events_url":"https://api.github.com/users/beseven/received_events","type":"User","site_admin":false},"body":"<!--\r\nThanks for wanting to contribute to this repository.\r\n\r\nIn order for the changes to be integrated into the repo with as little friction\r\nas possible please follow the guidance here. This includes completing all\r\nsections as fully as possible.\r\nPrior to creating a Pull Request, please ensure there is an open issue for the\r\nchanges you wish to make. This will provide visibility to others early in the\r\nprocess. Potentially other people will wish to help out. It also allows us to\r\nvalidate the change is inline with our vision for the product.\r\n\r\nProvide a general summary of your changes in the Title\r\n-->\r\n\r\n## Description\r\nLocation page for sexual health experts (including query building)\r\n\r\n## Related Issue\r\n<!--- This project only accepts pull requests related to open issues -->\r\n<!--- If suggesting a new feature or change, please discuss it in an issue first -->\r\n<!--- If fixing a bug, there should be an issue describing it with steps to reproduce -->\r\n<!--- Please link to the issue here: -->\r\nhttps://jira.service.nhs.uk/browse/PCFC-171\r\n\r\n## Motivation and Context\r\n<!--- Why is this change required? What problem does it solve? -->\r\nPart of the Find a chlamydia test journey\r\n\r\n## Checklist\r\n<!-- Ensure each of the points below have been considered and completed where applicable -->\r\n- [ x ] New and/or updated tests\r\n","created_at":"2018-03-08T20:58:20Z","updated_at":"2018-03-13T08:58:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a96e940093ac0b5ea4cc00137ec785a7d1e8d03f","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":839285483,"url":"https://api.github.com/repos/nhsuk/sexual-health-service-finder/labels/WIP","name":"WIP","color":"1d76db","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/nhsuk/sexual-health-service-finder/pulls/11/commits","review_comments_url":"https://api.github.com/repos/nhsuk/sexual-health-service-finder/pulls/11/comments","review_comment_url":"https://api.github.com/repos/nhsuk/sexual-health-service-finder/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nhsuk/sexual-health-service-finder/issues/11/comments","statuses_url":"https://api.github.com/repos/nhsuk/sexual-health-service-finder/statuses/027f63f5bf4f5214d2a95653efbaf1d0c31af4de","head":{"label":"nhsuk:feature/find-by-postcode","ref":"feature/find-by-postcode","sha":"027f63f5bf4f5214d2a95653efbaf1d0c31af4de","user":{"login":"nhsuk","id":18658529,"avatar_url":"https://avatars2.githubusercontent.com/u/18658529?v=4","gravatar_id":"","url":"https://api.github.com/users/nhsuk","html_url":"https://github.com/nhsuk","followers_url":"https://api.github.com/users/nhsuk/followers","following_url":"https://api.github.com/users/nhsuk/following{/other_user}","gists_url":"https://api.github.com/users/nhsuk/gists{/gist_id}","starred_url":"https://api.github.com/users/nhsuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nhsuk/subscriptions","organizations_url":"https://api.github.com/users/nhsuk/orgs","repos_url":"https://api.github.com/users/nhsuk/repos","events_url":"https://api.github.com/users/nhsuk/events{/privacy}","received_events_url":"https://api.github.com/users/nhsuk/received_events","type":"Organization","site_admin":false},"repo":{"id":121743138,"name":"sexual-health-service-finder","full_name":"nhsuk/sexual-health-service-finder","owner":{"login":"nhsuk","id":18658529,"avatar_url":"https://avatars2.githubusercontent.com/u/18658529?v=4","gravatar_id":"","url":"https://api.github.com/users/nhsuk","html_url":"https://github.com/nhsuk","followers_url":"https://api.github.com/users/nhsuk/followers","following_url":"https://api.github.com/users/nhsuk/following{/other_user}","gists_url":"https://api.github.com/users/nhsuk/gists{/gist_id}","starred_url":"https://api.github.com/users/nhsuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nhsuk/subscriptions","organizations_url":"https://api.github.com/users/nhsuk/orgs","repos_url":"https://api.github.com/users/nhsuk/repos","events_url":"https://api.github.com/users/nhsuk/events{/privacy}","received_events_url":"https://api.github.com/users/nhsuk/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/nhsuk/sexual-health-service-finder","description":"Helping to connect people to sexual health services.","fork":false,"url":"https://api.github.com/repos/nhsuk/sexual-health-service-finder","forks_url":"https://api.github.com/repos/nhsuk/sexual-health-service-finder/forks","keys_url":"https://api.github.com/repos/nhsuk/sexual-health-service-finder/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nhsuk/sexual-health-service-finder/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nhsuk/sexual-health-service-finder/teams","hooks_url":"https://api.github.com/repos/nhsuk/sexual-health-service-finder/hooks","issue_events_url":"https://api.github.com/repos/nhsuk/sexual-health-service-finder/issues/events{/number}","events_url":"https://api.github.com/repos/nhsuk/sexual-health-service-finder/events","assignees_url":"https://api.github.com/repos/nhsuk/sexual-health-service-finder/assignees{/user}","branches_url":"https://api.github.com/repos/nhsuk/sexual-health-service-finder/branches{/branch}","tags_url":"https://api.github.com/repos/nhsuk/sexual-health-service-finder/tags","blobs_url":"https://api.github.com/repos/nhsuk/sexual-health-service-finder/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nhsuk/sexual-health-service-finder/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nhsuk/sexual-health-service-finder/git/refs{/sha}","trees_url":"https://api.github.com/repos/nhsuk/sexual-health-service-finder/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nhsuk/sexual-health-service-finder/statuses/{sha}","languages_url":"https://api.github.com/repos/nhsuk/sexual-health-service-finder/languages","stargazers_url":"https://api.github.com/repos/nhsuk/sexual-health-service-finder/stargazers","contributors_url":"https://api.github.com/repos/nhsuk/sexual-health-service-finder/contributors","subscribers_url":"https://api.github.com/repos/nhsuk/sexual-health-service-finder/subscribers","subscription_url":"https://api.github.com/repos/nhsuk/sexual-health-service-finder/subscription","commits_url":"https://api.github.com/repos/nhsuk/sexual-health-service-finder/commits{/sha}","git_commits_url":"https://api.github.com/repos/nhsuk/sexual-health-service-finder/git/commits{/sha}","comments_url":"https://api.github.com/repos/nhsuk/sexual-health-service-finder/comments{/number}","issue_comment_url":"https://api.github.com/repos/nhsuk/sexual-health-service-finder/issues/comments{/number}","contents_url":"https://api.github.com/repos/nhsuk/sexual-health-service-finder/contents/{+path}","compare_url":"https://api.github.com/repos/nhsuk/sexual-health-service-finder/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nhsuk/sexual-health-service-finder/merges","archive_url":"https://api.github.com/repos/nhsuk/sexual-health-service-finder/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nhsuk/sexual-health-service-finder/downloads","issues_url":"https://api.github.com/repos/nhsuk/sexual-health-service-finder/issues{/number}","pulls_url":"https://api.github.com/repos/nhsuk/sexual-health-service-finder/pulls{/number}","milestones_url":"https://api.github.com/repos/nhsuk/sexual-health-service-finder/milestones{/number}","notifications_url":"https://api.github.com/repos/nhsuk/sexual-health-service-finder/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nhsuk/sexual-health-service-finder/labels{/name}","releases_url":"https://api.github.com/repos/nhsuk/sexual-health-service-finder/releases{/id}","deployments_url":"https://api.github.com/repos/nhsuk/sexual-health-service-finder/deployments","created_at":"2018-02-16T11:23:57Z","updated_at":"2018-03-13T08:36:30Z","pushed_at":"2018-03-13T08:54:12Z","git_url":"git://github.com/nhsuk/sexual-health-service-finder.git","ssh_url":"git@github.com:nhsuk/sexual-health-service-finder.git","clone_url":"https://github.com/nhsuk/sexual-health-service-finder.git","svn_url":"https://github.com/nhsuk/sexual-health-service-finder","homepage":null,"size":327,"stargazers_count":1,"watchers_count":1,"language":"CSS","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":3,"watchers":1,"default_branch":"master"}},"base":{"label":"nhsuk:master","ref":"master","sha":"ad3004e3beb9dd70c358eebdba210597a4d748f6","user":{"login":"nhsuk","id":18658529,"avatar_url":"https://avatars2.githubusercontent.com/u/18658529?v=4","gravatar_id":"","url":"https://api.github.com/users/nhsuk","html_url":"https://github.com/nhsuk","followers_url":"https://api.github.com/users/nhsuk/followers","following_url":"https://api.github.com/users/nhsuk/following{/other_user}","gists_url":"https://api.github.com/users/nhsuk/gists{/gist_id}","starred_url":"https://api.github.com/users/nhsuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nhsuk/subscriptions","organizations_url":"https://api.github.com/users/nhsuk/orgs","repos_url":"https://api.github.com/users/nhsuk/repos","events_url":"https://api.github.com/users/nhsuk/events{/privacy}","received_events_url":"https://api.github.com/users/nhsuk/received_events","type":"Organization","site_admin":false},"repo":{"id":121743138,"name":"sexual-health-service-finder","full_name":"nhsuk/sexual-health-service-finder","owner":{"login":"nhsuk","id":18658529,"avatar_url":"https://avatars2.githubusercontent.com/u/18658529?v=4","gravatar_id":"","url":"https://api.github.com/users/nhsuk","html_url":"https://github.com/nhsuk","followers_url":"https://api.github.com/users/nhsuk/followers","following_url":"https://api.github.com/users/nhsuk/following{/other_user}","gists_url":"https://api.github.com/users/nhsuk/gists{/gist_id}","starred_url":"https://api.github.com/users/nhsuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nhsuk/subscriptions","organizations_url":"https://api.github.com/users/nhsuk/orgs","repos_url":"https://api.github.com/users/nhsuk/repos","events_url":"https://api.github.com/users/nhsuk/events{/privacy}","received_events_url":"https://api.github.com/users/nhsuk/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/nhsuk/sexual-health-service-finder","description":"Helping to connect people to sexual health services.","fork":false,"url":"https://api.github.com/repos/nhsuk/sexual-health-service-finder","forks_url":"https://api.github.com/repos/nhsuk/sexual-health-service-finder/forks","keys_url":"https://api.github.com/repos/nhsuk/sexual-health-service-finder/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nhsuk/sexual-health-service-finder/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nhsuk/sexual-health-service-finder/teams","hooks_url":"https://api.github.com/repos/nhsuk/sexual-health-service-finder/hooks","issue_events_url":"https://api.github.com/repos/nhsuk/sexual-health-service-finder/issues/events{/number}","events_url":"https://api.github.com/repos/nhsuk/sexual-health-service-finder/events","assignees_url":"https://api.github.com/repos/nhsuk/sexual-health-service-finder/assignees{/user}","branches_url":"https://api.github.com/repos/nhsuk/sexual-health-service-finder/branches{/branch}","tags_url":"https://api.github.com/repos/nhsuk/sexual-health-service-finder/tags","blobs_url":"https://api.github.com/repos/nhsuk/sexual-health-service-finder/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nhsuk/sexual-health-service-finder/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nhsuk/sexual-health-service-finder/git/refs{/sha}","trees_url":"https://api.github.com/repos/nhsuk/sexual-health-service-finder/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nhsuk/sexual-health-service-finder/statuses/{sha}","languages_url":"https://api.github.com/repos/nhsuk/sexual-health-service-finder/languages","stargazers_url":"https://api.github.com/repos/nhsuk/sexual-health-service-finder/stargazers","contributors_url":"https://api.github.com/repos/nhsuk/sexual-health-service-finder/contributors","subscribers_url":"https://api.github.com/repos/nhsuk/sexual-health-service-finder/subscribers","subscription_url":"https://api.github.com/repos/nhsuk/sexual-health-service-finder/subscription","commits_url":"https://api.github.com/repos/nhsuk/sexual-health-service-finder/commits{/sha}","git_commits_url":"https://api.github.com/repos/nhsuk/sexual-health-service-finder/git/commits{/sha}","comments_url":"https://api.github.com/repos/nhsuk/sexual-health-service-finder/comments{/number}","issue_comment_url":"https://api.github.com/repos/nhsuk/sexual-health-service-finder/issues/comments{/number}","contents_url":"https://api.github.com/repos/nhsuk/sexual-health-service-finder/contents/{+path}","compare_url":"https://api.github.com/repos/nhsuk/sexual-health-service-finder/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nhsuk/sexual-health-service-finder/merges","archive_url":"https://api.github.com/repos/nhsuk/sexual-health-service-finder/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nhsuk/sexual-health-service-finder/downloads","issues_url":"https://api.github.com/repos/nhsuk/sexual-health-service-finder/issues{/number}","pulls_url":"https://api.github.com/repos/nhsuk/sexual-health-service-finder/pulls{/number}","milestones_url":"https://api.github.com/repos/nhsuk/sexual-health-service-finder/milestones{/number}","notifications_url":"https://api.github.com/repos/nhsuk/sexual-health-service-finder/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nhsuk/sexual-health-service-finder/labels{/name}","releases_url":"https://api.github.com/repos/nhsuk/sexual-health-service-finder/releases{/id}","deployments_url":"https://api.github.com/repos/nhsuk/sexual-health-service-finder/deployments","created_at":"2018-02-16T11:23:57Z","updated_at":"2018-03-13T08:36:30Z","pushed_at":"2018-03-13T08:54:12Z","git_url":"git://github.com/nhsuk/sexual-health-service-finder.git","ssh_url":"git@github.com:nhsuk/sexual-health-service-finder.git","clone_url":"https://github.com/nhsuk/sexual-health-service-finder.git","svn_url":"https://github.com/nhsuk/sexual-health-service-finder","homepage":null,"size":327,"stargazers_count":1,"watchers_count":1,"language":"CSS","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":3,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nhsuk/sexual-health-service-finder/pulls/11"},"html":{"href":"https://github.com/nhsuk/sexual-health-service-finder/pull/11"},"issue":{"href":"https://api.github.com/repos/nhsuk/sexual-health-service-finder/issues/11"},"comments":{"href":"https://api.github.com/repos/nhsuk/sexual-health-service-finder/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/nhsuk/sexual-health-service-finder/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/nhsuk/sexual-health-service-finder/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nhsuk/sexual-health-service-finder/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/nhsuk/sexual-health-service-finder/statuses/027f63f5bf4f5214d2a95653efbaf1d0c31af4de"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"beseven"}}