{"action":"opened","number":150,"pull_request":{"url":"https://api.github.com/repos/shibdib/Firetail/pulls/150","id":220793940,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIwNzkzOTQw","html_url":"https://github.com/shibdib/Firetail/pull/150","diff_url":"https://github.com/shibdib/Firetail/pull/150.diff","patch_url":"https://github.com/shibdib/Firetail/pull/150.patch","issue_url":"https://api.github.com/repos/shibdib/Firetail/issues/150","number":150,"state":"open","locked":false,"title":"Tidy ESI API methods, Add caches for static info","user":{"login":"scragly","id":29337040,"node_id":"MDQ6VXNlcjI5MzM3MDQw","avatar_url":"https://avatars3.githubusercontent.com/u/29337040?v=4","gravatar_id":"","url":"https://api.github.com/users/scragly","html_url":"https://github.com/scragly","followers_url":"https://api.github.com/users/scragly/followers","following_url":"https://api.github.com/users/scragly/following{/other_user}","gists_url":"https://api.github.com/users/scragly/gists{/gist_id}","starred_url":"https://api.github.com/users/scragly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scragly/subscriptions","organizations_url":"https://api.github.com/users/scragly/orgs","repos_url":"https://api.github.com/users/scragly/repos","events_url":"https://api.github.com/users/scragly/events{/privacy}","received_events_url":"https://api.github.com/users/scragly/received_events","type":"User","site_admin":false},"body":"In preparation for working on the ESI API in more depth, I've tidied the existing API methods.\r\n\r\nI've added basic data caches also for endpoints that are typically static:\r\n- types/items\r\n- planets\r\n- systems\r\n- regions\r\n- constellations\r\n\r\nOn the first fetch, it'll load the data into the respective cache, and in future grabs, it'll return the cached data instead. The cache is memory-only, so will be empty on bot restart.\r\n\r\nTo accommodate cases where it's somehow imperative to get fresh data for any of these, there's a keyword argument of `allow_cache` which is True by default. When calling the cached methods, you can pass False for this kwarg and it'll always request it from the web API again, while also refreshing the cache data with the newly retrieved data.","created_at":"2018-10-05T18:56:37Z","updated_at":"2018-10-05T18:56:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/shibdib/Firetail/pulls/150/commits","review_comments_url":"https://api.github.com/repos/shibdib/Firetail/pulls/150/comments","review_comment_url":"https://api.github.com/repos/shibdib/Firetail/pulls/comments{/number}","comments_url":"https://api.github.com/repos/shibdib/Firetail/issues/150/comments","statuses_url":"https://api.github.com/repos/shibdib/Firetail/statuses/69c54b5959cbe42b3b36f21998df8d44c0025624","head":{"label":"scragly:esi_tidy","ref":"esi_tidy","sha":"69c54b5959cbe42b3b36f21998df8d44c0025624","user":{"login":"scragly","id":29337040,"node_id":"MDQ6VXNlcjI5MzM3MDQw","avatar_url":"https://avatars3.githubusercontent.com/u/29337040?v=4","gravatar_id":"","url":"https://api.github.com/users/scragly","html_url":"https://github.com/scragly","followers_url":"https://api.github.com/users/scragly/followers","following_url":"https://api.github.com/users/scragly/following{/other_user}","gists_url":"https://api.github.com/users/scragly/gists{/gist_id}","starred_url":"https://api.github.com/users/scragly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scragly/subscriptions","organizations_url":"https://api.github.com/users/scragly/orgs","repos_url":"https://api.github.com/users/scragly/repos","events_url":"https://api.github.com/users/scragly/events{/privacy}","received_events_url":"https://api.github.com/users/scragly/received_events","type":"User","site_admin":false},"repo":{"id":151532403,"node_id":"MDEwOlJlcG9zaXRvcnkxNTE1MzI0MDM=","name":"Firetail","full_name":"scragly/Firetail","private":false,"owner":{"login":"scragly","id":29337040,"node_id":"MDQ6VXNlcjI5MzM3MDQw","avatar_url":"https://avatars3.githubusercontent.com/u/29337040?v=4","gravatar_id":"","url":"https://api.github.com/users/scragly","html_url":"https://github.com/scragly","followers_url":"https://api.github.com/users/scragly/followers","following_url":"https://api.github.com/users/scragly/following{/other_user}","gists_url":"https://api.github.com/users/scragly/gists{/gist_id}","starred_url":"https://api.github.com/users/scragly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scragly/subscriptions","organizations_url":"https://api.github.com/users/scragly/orgs","repos_url":"https://api.github.com/users/scragly/repos","events_url":"https://api.github.com/users/scragly/events{/privacy}","received_events_url":"https://api.github.com/users/scragly/received_events","type":"User","site_admin":false},"html_url":"https://github.com/scragly/Firetail","description":"An EVE Online Discord Bot (Continuation of Dramiel)","fork":true,"url":"https://api.github.com/repos/scragly/Firetail","forks_url":"https://api.github.com/repos/scragly/Firetail/forks","keys_url":"https://api.github.com/repos/scragly/Firetail/keys{/key_id}","collaborators_url":"https://api.github.com/repos/scragly/Firetail/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/scragly/Firetail/teams","hooks_url":"https://api.github.com/repos/scragly/Firetail/hooks","issue_events_url":"https://api.github.com/repos/scragly/Firetail/issues/events{/number}","events_url":"https://api.github.com/repos/scragly/Firetail/events","assignees_url":"https://api.github.com/repos/scragly/Firetail/assignees{/user}","branches_url":"https://api.github.com/repos/scragly/Firetail/branches{/branch}","tags_url":"https://api.github.com/repos/scragly/Firetail/tags","blobs_url":"https://api.github.com/repos/scragly/Firetail/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/scragly/Firetail/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/scragly/Firetail/git/refs{/sha}","trees_url":"https://api.github.com/repos/scragly/Firetail/git/trees{/sha}","statuses_url":"https://api.github.com/repos/scragly/Firetail/statuses/{sha}","languages_url":"https://api.github.com/repos/scragly/Firetail/languages","stargazers_url":"https://api.github.com/repos/scragly/Firetail/stargazers","contributors_url":"https://api.github.com/repos/scragly/Firetail/contributors","subscribers_url":"https://api.github.com/repos/scragly/Firetail/subscribers","subscription_url":"https://api.github.com/repos/scragly/Firetail/subscription","commits_url":"https://api.github.com/repos/scragly/Firetail/commits{/sha}","git_commits_url":"https://api.github.com/repos/scragly/Firetail/git/commits{/sha}","comments_url":"https://api.github.com/repos/scragly/Firetail/comments{/number}","issue_comment_url":"https://api.github.com/repos/scragly/Firetail/issues/comments{/number}","contents_url":"https://api.github.com/repos/scragly/Firetail/contents/{+path}","compare_url":"https://api.github.com/repos/scragly/Firetail/compare/{base}...{head}","merges_url":"https://api.github.com/repos/scragly/Firetail/merges","archive_url":"https://api.github.com/repos/scragly/Firetail/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/scragly/Firetail/downloads","issues_url":"https://api.github.com/repos/scragly/Firetail/issues{/number}","pulls_url":"https://api.github.com/repos/scragly/Firetail/pulls{/number}","milestones_url":"https://api.github.com/repos/scragly/Firetail/milestones{/number}","notifications_url":"https://api.github.com/repos/scragly/Firetail/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/scragly/Firetail/labels{/name}","releases_url":"https://api.github.com/repos/scragly/Firetail/releases{/id}","deployments_url":"https://api.github.com/repos/scragly/Firetail/deployments","created_at":"2018-10-04T07:10:23Z","updated_at":"2018-10-05T16:21:31Z","pushed_at":"2018-10-05T18:48:12Z","git_url":"git://github.com/scragly/Firetail.git","ssh_url":"git@github.com:scragly/Firetail.git","clone_url":"https://github.com/scragly/Firetail.git","svn_url":"https://github.com/scragly/Firetail","homepage":null,"size":359,"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,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"shibdib:master","ref":"master","sha":"ff0c8166b320bb24e46714f567f09be485a63e2c","user":{"login":"shibdib","id":5779045,"node_id":"MDQ6VXNlcjU3NzkwNDU=","avatar_url":"https://avatars0.githubusercontent.com/u/5779045?v=4","gravatar_id":"","url":"https://api.github.com/users/shibdib","html_url":"https://github.com/shibdib","followers_url":"https://api.github.com/users/shibdib/followers","following_url":"https://api.github.com/users/shibdib/following{/other_user}","gists_url":"https://api.github.com/users/shibdib/gists{/gist_id}","starred_url":"https://api.github.com/users/shibdib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shibdib/subscriptions","organizations_url":"https://api.github.com/users/shibdib/orgs","repos_url":"https://api.github.com/users/shibdib/repos","events_url":"https://api.github.com/users/shibdib/events{/privacy}","received_events_url":"https://api.github.com/users/shibdib/received_events","type":"User","site_admin":false},"repo":{"id":111555501,"node_id":"MDEwOlJlcG9zaXRvcnkxMTE1NTU1MDE=","name":"Firetail","full_name":"shibdib/Firetail","private":false,"owner":{"login":"shibdib","id":5779045,"node_id":"MDQ6VXNlcjU3NzkwNDU=","avatar_url":"https://avatars0.githubusercontent.com/u/5779045?v=4","gravatar_id":"","url":"https://api.github.com/users/shibdib","html_url":"https://github.com/shibdib","followers_url":"https://api.github.com/users/shibdib/followers","following_url":"https://api.github.com/users/shibdib/following{/other_user}","gists_url":"https://api.github.com/users/shibdib/gists{/gist_id}","starred_url":"https://api.github.com/users/shibdib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shibdib/subscriptions","organizations_url":"https://api.github.com/users/shibdib/orgs","repos_url":"https://api.github.com/users/shibdib/repos","events_url":"https://api.github.com/users/shibdib/events{/privacy}","received_events_url":"https://api.github.com/users/shibdib/received_events","type":"User","site_admin":false},"html_url":"https://github.com/shibdib/Firetail","description":"An EVE Online Discord Bot (Continuation of Dramiel)","fork":false,"url":"https://api.github.com/repos/shibdib/Firetail","forks_url":"https://api.github.com/repos/shibdib/Firetail/forks","keys_url":"https://api.github.com/repos/shibdib/Firetail/keys{/key_id}","collaborators_url":"https://api.github.com/repos/shibdib/Firetail/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/shibdib/Firetail/teams","hooks_url":"https://api.github.com/repos/shibdib/Firetail/hooks","issue_events_url":"https://api.github.com/repos/shibdib/Firetail/issues/events{/number}","events_url":"https://api.github.com/repos/shibdib/Firetail/events","assignees_url":"https://api.github.com/repos/shibdib/Firetail/assignees{/user}","branches_url":"https://api.github.com/repos/shibdib/Firetail/branches{/branch}","tags_url":"https://api.github.com/repos/shibdib/Firetail/tags","blobs_url":"https://api.github.com/repos/shibdib/Firetail/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/shibdib/Firetail/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/shibdib/Firetail/git/refs{/sha}","trees_url":"https://api.github.com/repos/shibdib/Firetail/git/trees{/sha}","statuses_url":"https://api.github.com/repos/shibdib/Firetail/statuses/{sha}","languages_url":"https://api.github.com/repos/shibdib/Firetail/languages","stargazers_url":"https://api.github.com/repos/shibdib/Firetail/stargazers","contributors_url":"https://api.github.com/repos/shibdib/Firetail/contributors","subscribers_url":"https://api.github.com/repos/shibdib/Firetail/subscribers","subscription_url":"https://api.github.com/repos/shibdib/Firetail/subscription","commits_url":"https://api.github.com/repos/shibdib/Firetail/commits{/sha}","git_commits_url":"https://api.github.com/repos/shibdib/Firetail/git/commits{/sha}","comments_url":"https://api.github.com/repos/shibdib/Firetail/comments{/number}","issue_comment_url":"https://api.github.com/repos/shibdib/Firetail/issues/comments{/number}","contents_url":"https://api.github.com/repos/shibdib/Firetail/contents/{+path}","compare_url":"https://api.github.com/repos/shibdib/Firetail/compare/{base}...{head}","merges_url":"https://api.github.com/repos/shibdib/Firetail/merges","archive_url":"https://api.github.com/repos/shibdib/Firetail/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/shibdib/Firetail/downloads","issues_url":"https://api.github.com/repos/shibdib/Firetail/issues{/number}","pulls_url":"https://api.github.com/repos/shibdib/Firetail/pulls{/number}","milestones_url":"https://api.github.com/repos/shibdib/Firetail/milestones{/number}","notifications_url":"https://api.github.com/repos/shibdib/Firetail/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/shibdib/Firetail/labels{/name}","releases_url":"https://api.github.com/repos/shibdib/Firetail/releases{/id}","deployments_url":"https://api.github.com/repos/shibdib/Firetail/deployments","created_at":"2017-11-21T13:54:56Z","updated_at":"2018-10-05T01:14:34Z","pushed_at":"2018-10-05T17:24:31Z","git_url":"git://github.com/shibdib/Firetail.git","ssh_url":"git@github.com:shibdib/Firetail.git","clone_url":"https://github.com/shibdib/Firetail.git","svn_url":"https://github.com/shibdib/Firetail","homepage":null,"size":358,"stargazers_count":13,"watchers_count":13,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":13,"mirror_url":null,"archived":false,"open_issues_count":18,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":13,"open_issues":18,"watchers":13,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/shibdib/Firetail/pulls/150"},"html":{"href":"https://github.com/shibdib/Firetail/pull/150"},"issue":{"href":"https://api.github.com/repos/shibdib/Firetail/issues/150"},"comments":{"href":"https://api.github.com/repos/shibdib/Firetail/issues/150/comments"},"review_comments":{"href":"https://api.github.com/repos/shibdib/Firetail/pulls/150/comments"},"review_comment":{"href":"https://api.github.com/repos/shibdib/Firetail/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/shibdib/Firetail/pulls/150/commits"},"statuses":{"href":"https://api.github.com/repos/shibdib/Firetail/statuses/69c54b5959cbe42b3b36f21998df8d44c0025624"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":173,"deletions":164,"changed_files":1}}
{"actor":{"display_login":"scragly"}}