{"action":"created","comment":{"url":"https://api.github.com/repos/assertis/odyssey-service/pulls/comments/173406031","pull_request_review_id":102592485,"id":173406031,"diff_hunk":"@@ -53,6 +54,30 @@ export class MemcacheCache implements Cache {\n     }\n }\n \n+export class FareTokenCache {\n+    constructor(private readonly cache: Cache) {\n+    }\n+\n+    public async persistFareToken(data: object) {\n+        const fareRegEx = new RegExp(/^\\/fare\\/.*/);\n+        for (let link in data) {\n+            if (!fareRegEx.test(link)) {","path":"src/service/PersistanceService.ts","position":26,"original_position":26,"commit_id":"b1da370c498937ac67bef4fd23a9077ea4baa26a","original_commit_id":"b1da370c498937ac67bef4fd23a9077ea4baa26a","user":{"login":"orzeuek","id":9573323,"avatar_url":"https://avatars2.githubusercontent.com/u/9573323?v=4","gravatar_id":"","url":"https://api.github.com/users/orzeuek","html_url":"https://github.com/orzeuek","followers_url":"https://api.github.com/users/orzeuek/followers","following_url":"https://api.github.com/users/orzeuek/following{/other_user}","gists_url":"https://api.github.com/users/orzeuek/gists{/gist_id}","starred_url":"https://api.github.com/users/orzeuek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orzeuek/subscriptions","organizations_url":"https://api.github.com/users/orzeuek/orgs","repos_url":"https://api.github.com/users/orzeuek/repos","events_url":"https://api.github.com/users/orzeuek/events{/privacy}","received_events_url":"https://api.github.com/users/orzeuek/received_events","type":"User","site_admin":false},"body":"more: please write at least one unit test for that, using this: \r\n{\r\n\"/fare-option/4c9da840a1a8415facf5d7a889f5f822c0670560\": {\r\n\"totalPrice\": 15730,\r\n\"fares\": [\r\n{\r\n\"adults\": 1,\r\n\"children\": 0,\r\n\"fare\": \"/fare/5230-9328-00000-SSS-000-1-9F\"\r\n}\r\n]\r\n}\r\n}\r\n\r\nas a test input.","created_at":"2018-03-09T09:49:19Z","updated_at":"2018-03-09T09:49:19Z","html_url":"https://github.com/assertis/odyssey-service/pull/9#discussion_r173406031","pull_request_url":"https://api.github.com/repos/assertis/odyssey-service/pulls/9","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/assertis/odyssey-service/pulls/comments/173406031"},"html":{"href":"https://github.com/assertis/odyssey-service/pull/9#discussion_r173406031"},"pull_request":{"href":"https://api.github.com/repos/assertis/odyssey-service/pulls/9"}},"in_reply_to_id":173405386},"pull_request":{"url":"https://api.github.com/repos/assertis/odyssey-service/pulls/9","id":173955476,"html_url":"https://github.com/assertis/odyssey-service/pull/9","diff_url":"https://github.com/assertis/odyssey-service/pull/9.diff","patch_url":"https://github.com/assertis/odyssey-service/pull/9.patch","issue_url":"https://api.github.com/repos/assertis/odyssey-service/issues/9","number":9,"state":"open","locked":false,"title":"RAIL-11 Support for /fare/:token route","user":{"login":"Dyktus","id":6807392,"avatar_url":"https://avatars0.githubusercontent.com/u/6807392?v=4","gravatar_id":"","url":"https://api.github.com/users/Dyktus","html_url":"https://github.com/Dyktus","followers_url":"https://api.github.com/users/Dyktus/followers","following_url":"https://api.github.com/users/Dyktus/following{/other_user}","gists_url":"https://api.github.com/users/Dyktus/gists{/gist_id}","starred_url":"https://api.github.com/users/Dyktus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dyktus/subscriptions","organizations_url":"https://api.github.com/users/Dyktus/orgs","repos_url":"https://api.github.com/users/Dyktus/repos","events_url":"https://api.github.com/users/Dyktus/events{/privacy}","received_events_url":"https://api.github.com/users/Dyktus/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-03-09T09:21:52Z","updated_at":"2018-03-09T09:49:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c22686c4bfef98cfdcf3b6eeeb966e1f7ec3b9f8","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/assertis/odyssey-service/pulls/9/commits","review_comments_url":"https://api.github.com/repos/assertis/odyssey-service/pulls/9/comments","review_comment_url":"https://api.github.com/repos/assertis/odyssey-service/pulls/comments{/number}","comments_url":"https://api.github.com/repos/assertis/odyssey-service/issues/9/comments","statuses_url":"https://api.github.com/repos/assertis/odyssey-service/statuses/b1da370c498937ac67bef4fd23a9077ea4baa26a","head":{"label":"assertis:lnowak/RAIL-11","ref":"lnowak/RAIL-11","sha":"b1da370c498937ac67bef4fd23a9077ea4baa26a","user":{"login":"assertis","id":1419441,"avatar_url":"https://avatars0.githubusercontent.com/u/1419441?v=4","gravatar_id":"","url":"https://api.github.com/users/assertis","html_url":"https://github.com/assertis","followers_url":"https://api.github.com/users/assertis/followers","following_url":"https://api.github.com/users/assertis/following{/other_user}","gists_url":"https://api.github.com/users/assertis/gists{/gist_id}","starred_url":"https://api.github.com/users/assertis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/assertis/subscriptions","organizations_url":"https://api.github.com/users/assertis/orgs","repos_url":"https://api.github.com/users/assertis/repos","events_url":"https://api.github.com/users/assertis/events{/privacy}","received_events_url":"https://api.github.com/users/assertis/received_events","type":"Organization","site_admin":false},"repo":{"id":122310766,"name":"odyssey-service","full_name":"assertis/odyssey-service","owner":{"login":"assertis","id":1419441,"avatar_url":"https://avatars0.githubusercontent.com/u/1419441?v=4","gravatar_id":"","url":"https://api.github.com/users/assertis","html_url":"https://github.com/assertis","followers_url":"https://api.github.com/users/assertis/followers","following_url":"https://api.github.com/users/assertis/following{/other_user}","gists_url":"https://api.github.com/users/assertis/gists{/gist_id}","starred_url":"https://api.github.com/users/assertis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/assertis/subscriptions","organizations_url":"https://api.github.com/users/assertis/orgs","repos_url":"https://api.github.com/users/assertis/repos","events_url":"https://api.github.com/users/assertis/events{/privacy}","received_events_url":"https://api.github.com/users/assertis/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/assertis/odyssey-service","description":"Journey Planner and Fares Service","fork":true,"url":"https://api.github.com/repos/assertis/odyssey-service","forks_url":"https://api.github.com/repos/assertis/odyssey-service/forks","keys_url":"https://api.github.com/repos/assertis/odyssey-service/keys{/key_id}","collaborators_url":"https://api.github.com/repos/assertis/odyssey-service/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/assertis/odyssey-service/teams","hooks_url":"https://api.github.com/repos/assertis/odyssey-service/hooks","issue_events_url":"https://api.github.com/repos/assertis/odyssey-service/issues/events{/number}","events_url":"https://api.github.com/repos/assertis/odyssey-service/events","assignees_url":"https://api.github.com/repos/assertis/odyssey-service/assignees{/user}","branches_url":"https://api.github.com/repos/assertis/odyssey-service/branches{/branch}","tags_url":"https://api.github.com/repos/assertis/odyssey-service/tags","blobs_url":"https://api.github.com/repos/assertis/odyssey-service/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/assertis/odyssey-service/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/assertis/odyssey-service/git/refs{/sha}","trees_url":"https://api.github.com/repos/assertis/odyssey-service/git/trees{/sha}","statuses_url":"https://api.github.com/repos/assertis/odyssey-service/statuses/{sha}","languages_url":"https://api.github.com/repos/assertis/odyssey-service/languages","stargazers_url":"https://api.github.com/repos/assertis/odyssey-service/stargazers","contributors_url":"https://api.github.com/repos/assertis/odyssey-service/contributors","subscribers_url":"https://api.github.com/repos/assertis/odyssey-service/subscribers","subscription_url":"https://api.github.com/repos/assertis/odyssey-service/subscription","commits_url":"https://api.github.com/repos/assertis/odyssey-service/commits{/sha}","git_commits_url":"https://api.github.com/repos/assertis/odyssey-service/git/commits{/sha}","comments_url":"https://api.github.com/repos/assertis/odyssey-service/comments{/number}","issue_comment_url":"https://api.github.com/repos/assertis/odyssey-service/issues/comments{/number}","contents_url":"https://api.github.com/repos/assertis/odyssey-service/contents/{+path}","compare_url":"https://api.github.com/repos/assertis/odyssey-service/compare/{base}...{head}","merges_url":"https://api.github.com/repos/assertis/odyssey-service/merges","archive_url":"https://api.github.com/repos/assertis/odyssey-service/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/assertis/odyssey-service/downloads","issues_url":"https://api.github.com/repos/assertis/odyssey-service/issues{/number}","pulls_url":"https://api.github.com/repos/assertis/odyssey-service/pulls{/number}","milestones_url":"https://api.github.com/repos/assertis/odyssey-service/milestones{/number}","notifications_url":"https://api.github.com/repos/assertis/odyssey-service/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/assertis/odyssey-service/labels{/name}","releases_url":"https://api.github.com/repos/assertis/odyssey-service/releases{/id}","deployments_url":"https://api.github.com/repos/assertis/odyssey-service/deployments","created_at":"2018-02-21T08:35:38Z","updated_at":"2018-02-21T08:36:09Z","pushed_at":"2018-03-09T09:21:52Z","git_url":"git://github.com/assertis/odyssey-service.git","ssh_url":"git@github.com:assertis/odyssey-service.git","clone_url":"https://github.com/assertis/odyssey-service.git","svn_url":"https://github.com/assertis/odyssey-service","homepage":null,"size":514,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"assertis:master","ref":"master","sha":"b49a13de25330dae9ca4f98cd788a813b7c14993","user":{"login":"assertis","id":1419441,"avatar_url":"https://avatars0.githubusercontent.com/u/1419441?v=4","gravatar_id":"","url":"https://api.github.com/users/assertis","html_url":"https://github.com/assertis","followers_url":"https://api.github.com/users/assertis/followers","following_url":"https://api.github.com/users/assertis/following{/other_user}","gists_url":"https://api.github.com/users/assertis/gists{/gist_id}","starred_url":"https://api.github.com/users/assertis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/assertis/subscriptions","organizations_url":"https://api.github.com/users/assertis/orgs","repos_url":"https://api.github.com/users/assertis/repos","events_url":"https://api.github.com/users/assertis/events{/privacy}","received_events_url":"https://api.github.com/users/assertis/received_events","type":"Organization","site_admin":false},"repo":{"id":122310766,"name":"odyssey-service","full_name":"assertis/odyssey-service","owner":{"login":"assertis","id":1419441,"avatar_url":"https://avatars0.githubusercontent.com/u/1419441?v=4","gravatar_id":"","url":"https://api.github.com/users/assertis","html_url":"https://github.com/assertis","followers_url":"https://api.github.com/users/assertis/followers","following_url":"https://api.github.com/users/assertis/following{/other_user}","gists_url":"https://api.github.com/users/assertis/gists{/gist_id}","starred_url":"https://api.github.com/users/assertis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/assertis/subscriptions","organizations_url":"https://api.github.com/users/assertis/orgs","repos_url":"https://api.github.com/users/assertis/repos","events_url":"https://api.github.com/users/assertis/events{/privacy}","received_events_url":"https://api.github.com/users/assertis/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/assertis/odyssey-service","description":"Journey Planner and Fares Service","fork":true,"url":"https://api.github.com/repos/assertis/odyssey-service","forks_url":"https://api.github.com/repos/assertis/odyssey-service/forks","keys_url":"https://api.github.com/repos/assertis/odyssey-service/keys{/key_id}","collaborators_url":"https://api.github.com/repos/assertis/odyssey-service/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/assertis/odyssey-service/teams","hooks_url":"https://api.github.com/repos/assertis/odyssey-service/hooks","issue_events_url":"https://api.github.com/repos/assertis/odyssey-service/issues/events{/number}","events_url":"https://api.github.com/repos/assertis/odyssey-service/events","assignees_url":"https://api.github.com/repos/assertis/odyssey-service/assignees{/user}","branches_url":"https://api.github.com/repos/assertis/odyssey-service/branches{/branch}","tags_url":"https://api.github.com/repos/assertis/odyssey-service/tags","blobs_url":"https://api.github.com/repos/assertis/odyssey-service/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/assertis/odyssey-service/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/assertis/odyssey-service/git/refs{/sha}","trees_url":"https://api.github.com/repos/assertis/odyssey-service/git/trees{/sha}","statuses_url":"https://api.github.com/repos/assertis/odyssey-service/statuses/{sha}","languages_url":"https://api.github.com/repos/assertis/odyssey-service/languages","stargazers_url":"https://api.github.com/repos/assertis/odyssey-service/stargazers","contributors_url":"https://api.github.com/repos/assertis/odyssey-service/contributors","subscribers_url":"https://api.github.com/repos/assertis/odyssey-service/subscribers","subscription_url":"https://api.github.com/repos/assertis/odyssey-service/subscription","commits_url":"https://api.github.com/repos/assertis/odyssey-service/commits{/sha}","git_commits_url":"https://api.github.com/repos/assertis/odyssey-service/git/commits{/sha}","comments_url":"https://api.github.com/repos/assertis/odyssey-service/comments{/number}","issue_comment_url":"https://api.github.com/repos/assertis/odyssey-service/issues/comments{/number}","contents_url":"https://api.github.com/repos/assertis/odyssey-service/contents/{+path}","compare_url":"https://api.github.com/repos/assertis/odyssey-service/compare/{base}...{head}","merges_url":"https://api.github.com/repos/assertis/odyssey-service/merges","archive_url":"https://api.github.com/repos/assertis/odyssey-service/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/assertis/odyssey-service/downloads","issues_url":"https://api.github.com/repos/assertis/odyssey-service/issues{/number}","pulls_url":"https://api.github.com/repos/assertis/odyssey-service/pulls{/number}","milestones_url":"https://api.github.com/repos/assertis/odyssey-service/milestones{/number}","notifications_url":"https://api.github.com/repos/assertis/odyssey-service/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/assertis/odyssey-service/labels{/name}","releases_url":"https://api.github.com/repos/assertis/odyssey-service/releases{/id}","deployments_url":"https://api.github.com/repos/assertis/odyssey-service/deployments","created_at":"2018-02-21T08:35:38Z","updated_at":"2018-02-21T08:36:09Z","pushed_at":"2018-03-09T09:21:52Z","git_url":"git://github.com/assertis/odyssey-service.git","ssh_url":"git@github.com:assertis/odyssey-service.git","clone_url":"https://github.com/assertis/odyssey-service.git","svn_url":"https://github.com/assertis/odyssey-service","homepage":null,"size":514,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/assertis/odyssey-service/pulls/9"},"html":{"href":"https://github.com/assertis/odyssey-service/pull/9"},"issue":{"href":"https://api.github.com/repos/assertis/odyssey-service/issues/9"},"comments":{"href":"https://api.github.com/repos/assertis/odyssey-service/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/assertis/odyssey-service/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/assertis/odyssey-service/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/assertis/odyssey-service/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/assertis/odyssey-service/statuses/b1da370c498937ac67bef4fd23a9077ea4baa26a"}},"author_association":"NONE"}}
{"actor":{"display_login":"orzeuek"}}