{"action":"opened","number":116,"pull_request":{"url":"https://api.github.com/repos/CanalTP/kirin/pulls/116","id":148150705,"html_url":"https://github.com/CanalTP/kirin/pull/116","diff_url":"https://github.com/CanalTP/kirin/pull/116.diff","patch_url":"https://github.com/CanalTP/kirin/pull/116.patch","issue_url":"https://api.github.com/repos/CanalTP/kirin/issues/116","number":116,"state":"open","locked":false,"title":"cache call to navitia with redis","user":{"login":"kinnou02","id":448185,"avatar_url":"https://avatars1.githubusercontent.com/u/448185?v=4","gravatar_id":"","url":"https://api.github.com/users/kinnou02","html_url":"https://github.com/kinnou02","followers_url":"https://api.github.com/users/kinnou02/followers","following_url":"https://api.github.com/users/kinnou02/following{/other_user}","gists_url":"https://api.github.com/users/kinnou02/gists{/gist_id}","starred_url":"https://api.github.com/users/kinnou02/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kinnou02/subscriptions","organizations_url":"https://api.github.com/users/kinnou02/orgs","repos_url":"https://api.github.com/users/kinnou02/repos","events_url":"https://api.github.com/users/kinnou02/events{/privacy}","received_events_url":"https://api.github.com/users/kinnou02/received_events","type":"User","site_admin":false},"body":"On my laptop a call without cache take 75sec, with cache it take 15sec.\r\nThe main problem is that the datetime of the request are computed from\r\n'now' so even with the rounding of the since and until, the cache will\r\nbe invalidated every hour :(","created_at":"2017-10-23T14:41:42Z","updated_at":"2017-10-23T14:41:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/CanalTP/kirin/pulls/116/commits","review_comments_url":"https://api.github.com/repos/CanalTP/kirin/pulls/116/comments","review_comment_url":"https://api.github.com/repos/CanalTP/kirin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CanalTP/kirin/issues/116/comments","statuses_url":"https://api.github.com/repos/CanalTP/kirin/statuses/8097076a5724117a264ac875c76a8673c645e0fa","head":{"label":"kinnou02:cache-jormun","ref":"cache-jormun","sha":"8097076a5724117a264ac875c76a8673c645e0fa","user":{"login":"kinnou02","id":448185,"avatar_url":"https://avatars1.githubusercontent.com/u/448185?v=4","gravatar_id":"","url":"https://api.github.com/users/kinnou02","html_url":"https://github.com/kinnou02","followers_url":"https://api.github.com/users/kinnou02/followers","following_url":"https://api.github.com/users/kinnou02/following{/other_user}","gists_url":"https://api.github.com/users/kinnou02/gists{/gist_id}","starred_url":"https://api.github.com/users/kinnou02/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kinnou02/subscriptions","organizations_url":"https://api.github.com/users/kinnou02/orgs","repos_url":"https://api.github.com/users/kinnou02/repos","events_url":"https://api.github.com/users/kinnou02/events{/privacy}","received_events_url":"https://api.github.com/users/kinnou02/received_events","type":"User","site_admin":false},"repo":{"id":43356447,"name":"kirin","full_name":"kinnou02/kirin","owner":{"login":"kinnou02","id":448185,"avatar_url":"https://avatars1.githubusercontent.com/u/448185?v=4","gravatar_id":"","url":"https://api.github.com/users/kinnou02","html_url":"https://github.com/kinnou02","followers_url":"https://api.github.com/users/kinnou02/followers","following_url":"https://api.github.com/users/kinnou02/following{/other_user}","gists_url":"https://api.github.com/users/kinnou02/gists{/gist_id}","starred_url":"https://api.github.com/users/kinnou02/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kinnou02/subscriptions","organizations_url":"https://api.github.com/users/kinnou02/orgs","repos_url":"https://api.github.com/users/kinnou02/repos","events_url":"https://api.github.com/users/kinnou02/events{/privacy}","received_events_url":"https://api.github.com/users/kinnou02/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kinnou02/kirin","description":"The magical unicorn","fork":true,"url":"https://api.github.com/repos/kinnou02/kirin","forks_url":"https://api.github.com/repos/kinnou02/kirin/forks","keys_url":"https://api.github.com/repos/kinnou02/kirin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kinnou02/kirin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kinnou02/kirin/teams","hooks_url":"https://api.github.com/repos/kinnou02/kirin/hooks","issue_events_url":"https://api.github.com/repos/kinnou02/kirin/issues/events{/number}","events_url":"https://api.github.com/repos/kinnou02/kirin/events","assignees_url":"https://api.github.com/repos/kinnou02/kirin/assignees{/user}","branches_url":"https://api.github.com/repos/kinnou02/kirin/branches{/branch}","tags_url":"https://api.github.com/repos/kinnou02/kirin/tags","blobs_url":"https://api.github.com/repos/kinnou02/kirin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kinnou02/kirin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kinnou02/kirin/git/refs{/sha}","trees_url":"https://api.github.com/repos/kinnou02/kirin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kinnou02/kirin/statuses/{sha}","languages_url":"https://api.github.com/repos/kinnou02/kirin/languages","stargazers_url":"https://api.github.com/repos/kinnou02/kirin/stargazers","contributors_url":"https://api.github.com/repos/kinnou02/kirin/contributors","subscribers_url":"https://api.github.com/repos/kinnou02/kirin/subscribers","subscription_url":"https://api.github.com/repos/kinnou02/kirin/subscription","commits_url":"https://api.github.com/repos/kinnou02/kirin/commits{/sha}","git_commits_url":"https://api.github.com/repos/kinnou02/kirin/git/commits{/sha}","comments_url":"https://api.github.com/repos/kinnou02/kirin/comments{/number}","issue_comment_url":"https://api.github.com/repos/kinnou02/kirin/issues/comments{/number}","contents_url":"https://api.github.com/repos/kinnou02/kirin/contents/{+path}","compare_url":"https://api.github.com/repos/kinnou02/kirin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kinnou02/kirin/merges","archive_url":"https://api.github.com/repos/kinnou02/kirin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kinnou02/kirin/downloads","issues_url":"https://api.github.com/repos/kinnou02/kirin/issues{/number}","pulls_url":"https://api.github.com/repos/kinnou02/kirin/pulls{/number}","milestones_url":"https://api.github.com/repos/kinnou02/kirin/milestones{/number}","notifications_url":"https://api.github.com/repos/kinnou02/kirin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kinnou02/kirin/labels{/name}","releases_url":"https://api.github.com/repos/kinnou02/kirin/releases{/id}","deployments_url":"https://api.github.com/repos/kinnou02/kirin/deployments","created_at":"2015-09-29T09:01:03Z","updated_at":"2015-09-29T09:01:04Z","pushed_at":"2017-10-23T14:41:13Z","git_url":"git://github.com/kinnou02/kirin.git","ssh_url":"git@github.com:kinnou02/kirin.git","clone_url":"https://github.com/kinnou02/kirin.git","svn_url":"https://github.com/kinnou02/kirin","homepage":null,"size":460,"stargazers_count":0,"watchers_count":0,"language":"Python","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":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"CanalTP:master","ref":"master","sha":"32327bf22e966ba98701ee5d8e7affeb7be626ba","user":{"login":"CanalTP","id":2743985,"avatar_url":"https://avatars2.githubusercontent.com/u/2743985?v=4","gravatar_id":"","url":"https://api.github.com/users/CanalTP","html_url":"https://github.com/CanalTP","followers_url":"https://api.github.com/users/CanalTP/followers","following_url":"https://api.github.com/users/CanalTP/following{/other_user}","gists_url":"https://api.github.com/users/CanalTP/gists{/gist_id}","starred_url":"https://api.github.com/users/CanalTP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CanalTP/subscriptions","organizations_url":"https://api.github.com/users/CanalTP/orgs","repos_url":"https://api.github.com/users/CanalTP/repos","events_url":"https://api.github.com/users/CanalTP/events{/privacy}","received_events_url":"https://api.github.com/users/CanalTP/received_events","type":"Organization","site_admin":false},"repo":{"id":39950201,"name":"kirin","full_name":"CanalTP/kirin","owner":{"login":"CanalTP","id":2743985,"avatar_url":"https://avatars2.githubusercontent.com/u/2743985?v=4","gravatar_id":"","url":"https://api.github.com/users/CanalTP","html_url":"https://github.com/CanalTP","followers_url":"https://api.github.com/users/CanalTP/followers","following_url":"https://api.github.com/users/CanalTP/following{/other_user}","gists_url":"https://api.github.com/users/CanalTP/gists{/gist_id}","starred_url":"https://api.github.com/users/CanalTP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CanalTP/subscriptions","organizations_url":"https://api.github.com/users/CanalTP/orgs","repos_url":"https://api.github.com/users/CanalTP/repos","events_url":"https://api.github.com/users/CanalTP/events{/privacy}","received_events_url":"https://api.github.com/users/CanalTP/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CanalTP/kirin","description":"The magical unicorn","fork":false,"url":"https://api.github.com/repos/CanalTP/kirin","forks_url":"https://api.github.com/repos/CanalTP/kirin/forks","keys_url":"https://api.github.com/repos/CanalTP/kirin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CanalTP/kirin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CanalTP/kirin/teams","hooks_url":"https://api.github.com/repos/CanalTP/kirin/hooks","issue_events_url":"https://api.github.com/repos/CanalTP/kirin/issues/events{/number}","events_url":"https://api.github.com/repos/CanalTP/kirin/events","assignees_url":"https://api.github.com/repos/CanalTP/kirin/assignees{/user}","branches_url":"https://api.github.com/repos/CanalTP/kirin/branches{/branch}","tags_url":"https://api.github.com/repos/CanalTP/kirin/tags","blobs_url":"https://api.github.com/repos/CanalTP/kirin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CanalTP/kirin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CanalTP/kirin/git/refs{/sha}","trees_url":"https://api.github.com/repos/CanalTP/kirin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CanalTP/kirin/statuses/{sha}","languages_url":"https://api.github.com/repos/CanalTP/kirin/languages","stargazers_url":"https://api.github.com/repos/CanalTP/kirin/stargazers","contributors_url":"https://api.github.com/repos/CanalTP/kirin/contributors","subscribers_url":"https://api.github.com/repos/CanalTP/kirin/subscribers","subscription_url":"https://api.github.com/repos/CanalTP/kirin/subscription","commits_url":"https://api.github.com/repos/CanalTP/kirin/commits{/sha}","git_commits_url":"https://api.github.com/repos/CanalTP/kirin/git/commits{/sha}","comments_url":"https://api.github.com/repos/CanalTP/kirin/comments{/number}","issue_comment_url":"https://api.github.com/repos/CanalTP/kirin/issues/comments{/number}","contents_url":"https://api.github.com/repos/CanalTP/kirin/contents/{+path}","compare_url":"https://api.github.com/repos/CanalTP/kirin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CanalTP/kirin/merges","archive_url":"https://api.github.com/repos/CanalTP/kirin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CanalTP/kirin/downloads","issues_url":"https://api.github.com/repos/CanalTP/kirin/issues{/number}","pulls_url":"https://api.github.com/repos/CanalTP/kirin/pulls{/number}","milestones_url":"https://api.github.com/repos/CanalTP/kirin/milestones{/number}","notifications_url":"https://api.github.com/repos/CanalTP/kirin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CanalTP/kirin/labels{/name}","releases_url":"https://api.github.com/repos/CanalTP/kirin/releases{/id}","deployments_url":"https://api.github.com/repos/CanalTP/kirin/deployments","created_at":"2015-07-30T12:48:49Z","updated_at":"2016-11-18T09:45:17Z","pushed_at":"2017-10-20T20:11:43Z","git_url":"git://github.com/CanalTP/kirin.git","ssh_url":"git@github.com:CanalTP/kirin.git","clone_url":"https://github.com/CanalTP/kirin.git","svn_url":"https://github.com/CanalTP/kirin","homepage":null,"size":461,"stargazers_count":5,"watchers_count":5,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":11,"mirror_url":null,"archived":false,"open_issues_count":8,"forks":11,"open_issues":8,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/CanalTP/kirin/pulls/116"},"html":{"href":"https://github.com/CanalTP/kirin/pull/116"},"issue":{"href":"https://api.github.com/repos/CanalTP/kirin/issues/116"},"comments":{"href":"https://api.github.com/repos/CanalTP/kirin/issues/116/comments"},"review_comments":{"href":"https://api.github.com/repos/CanalTP/kirin/pulls/116/comments"},"review_comment":{"href":"https://api.github.com/repos/CanalTP/kirin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CanalTP/kirin/pulls/116/commits"},"statuses":{"href":"https://api.github.com/repos/CanalTP/kirin/statuses/8097076a5724117a264ac875c76a8673c645e0fa"}},"author_association":"OWNER","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":32,"deletions":5,"changed_files":6}}
{"actor":{"display_login":"kinnou02"}}