{"action":"created","issue":{"url":"https://api.github.com/repos/dynamiccookies/DadsGarage/issues/12","repository_url":"https://api.github.com/repos/dynamiccookies/DadsGarage","labels_url":"https://api.github.com/repos/dynamiccookies/DadsGarage/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/dynamiccookies/DadsGarage/issues/12/comments","events_url":"https://api.github.com/repos/dynamiccookies/DadsGarage/issues/12/events","html_url":"https://github.com/dynamiccookies/DadsGarage/issues/12","id":236634224,"node_id":"MDU6SXNzdWUyMzY2MzQyMjQ=","number":12,"title":"Git Branch drop down blank ","user":{"login":"dynamiccookies","id":9450183,"node_id":"MDQ6VXNlcjk0NTAxODM=","avatar_url":"https://avatars2.githubusercontent.com/u/9450183?v=4","gravatar_id":"","url":"https://api.github.com/users/dynamiccookies","html_url":"https://github.com/dynamiccookies","followers_url":"https://api.github.com/users/dynamiccookies/followers","following_url":"https://api.github.com/users/dynamiccookies/following{/other_user}","gists_url":"https://api.github.com/users/dynamiccookies/gists{/gist_id}","starred_url":"https://api.github.com/users/dynamiccookies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dynamiccookies/subscriptions","organizations_url":"https://api.github.com/users/dynamiccookies/orgs","repos_url":"https://api.github.com/users/dynamiccookies/repos","events_url":"https://api.github.com/users/dynamiccookies/events{/privacy}","received_events_url":"https://api.github.com/users/dynamiccookies/received_events","type":"User","site_admin":false},"labels":[{"id":628436432,"node_id":"MDU6TGFiZWw2Mjg0MzY0MzI=","url":"https://api.github.com/repos/dynamiccookies/DadsGarage/labels/helpful","name":"helpful","color":"fbca04","default":false},{"id":631377725,"node_id":"MDU6TGFiZWw2MzEzNzc3MjU=","url":"https://api.github.com/repos/dynamiccookies/DadsGarage/labels/settings","name":"settings","color":"c2e0c6","default":false}],"state":"open","locked":false,"assignee":{"login":"dynamiccookies","id":9450183,"node_id":"MDQ6VXNlcjk0NTAxODM=","avatar_url":"https://avatars2.githubusercontent.com/u/9450183?v=4","gravatar_id":"","url":"https://api.github.com/users/dynamiccookies","html_url":"https://github.com/dynamiccookies","followers_url":"https://api.github.com/users/dynamiccookies/followers","following_url":"https://api.github.com/users/dynamiccookies/following{/other_user}","gists_url":"https://api.github.com/users/dynamiccookies/gists{/gist_id}","starred_url":"https://api.github.com/users/dynamiccookies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dynamiccookies/subscriptions","organizations_url":"https://api.github.com/users/dynamiccookies/orgs","repos_url":"https://api.github.com/users/dynamiccookies/repos","events_url":"https://api.github.com/users/dynamiccookies/events{/privacy}","received_events_url":"https://api.github.com/users/dynamiccookies/received_events","type":"User","site_admin":false},"assignees":[{"login":"dynamiccookies","id":9450183,"node_id":"MDQ6VXNlcjk0NTAxODM=","avatar_url":"https://avatars2.githubusercontent.com/u/9450183?v=4","gravatar_id":"","url":"https://api.github.com/users/dynamiccookies","html_url":"https://github.com/dynamiccookies","followers_url":"https://api.github.com/users/dynamiccookies/followers","following_url":"https://api.github.com/users/dynamiccookies/following{/other_user}","gists_url":"https://api.github.com/users/dynamiccookies/gists{/gist_id}","starred_url":"https://api.github.com/users/dynamiccookies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dynamiccookies/subscriptions","organizations_url":"https://api.github.com/users/dynamiccookies/orgs","repos_url":"https://api.github.com/users/dynamiccookies/repos","events_url":"https://api.github.com/users/dynamiccookies/events{/privacy}","received_events_url":"https://api.github.com/users/dynamiccookies/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2017-06-17T02:52:55Z","updated_at":"2018-10-20T05:41:17Z","closed_at":null,"author_association":"OWNER","body":"When the page is refreshed too many times in a short period of time, the Git Branch drop down shows up blank because the [rate_limit](https://api.github.com/rate_limit) has been reached. A message should be displayed here to explain why it's blank and to wait for x minutes until the [rate_limit](https://api.github.com/rate_limit) is reset."},"comment":{"url":"https://api.github.com/repos/dynamiccookies/DadsGarage/issues/comments/431551508","html_url":"https://github.com/dynamiccookies/DadsGarage/issues/12#issuecomment-431551508","issue_url":"https://api.github.com/repos/dynamiccookies/DadsGarage/issues/12","id":431551508,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMTU1MTUwOA==","user":{"login":"dynamiccookies","id":9450183,"node_id":"MDQ6VXNlcjk0NTAxODM=","avatar_url":"https://avatars2.githubusercontent.com/u/9450183?v=4","gravatar_id":"","url":"https://api.github.com/users/dynamiccookies","html_url":"https://github.com/dynamiccookies","followers_url":"https://api.github.com/users/dynamiccookies/followers","following_url":"https://api.github.com/users/dynamiccookies/following{/other_user}","gists_url":"https://api.github.com/users/dynamiccookies/gists{/gist_id}","starred_url":"https://api.github.com/users/dynamiccookies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dynamiccookies/subscriptions","organizations_url":"https://api.github.com/users/dynamiccookies/orgs","repos_url":"https://api.github.com/users/dynamiccookies/repos","events_url":"https://api.github.com/users/dynamiccookies/events{/privacy}","received_events_url":"https://api.github.com/users/dynamiccookies/received_events","type":"User","site_admin":false},"created_at":"2018-10-20T05:41:17Z","updated_at":"2018-10-20T05:41:17Z","author_association":"OWNER","body":"**[Rate Limiting Details](https://developer.github.com/v3/#rate-limiting)**\r\n\r\n> For API requests using Basic Authentication or OAuth, you can make up to 5000 requests per hour. \r\n[...]\r\n> For unauthenticated requests, the rate limit allows for up to 60 requests per hour. \r\n\r\nSince unauthenticated requests are limited to 60 per hour, and testing seems to show the limit being hit after 15 refreshes, there must be 4 requests per page load.\r\n- Are all 4 really needed?\r\n- Could more of the info be pulled in larger requests and parsed out?\r\n- Could the data be cached and re-referenced rather than re-pulled?\r\n\r\n**Resources/Ideas**\r\n- [Building Apps](https://developer.github.com/apps/) - _Increasing Rate Limit_\r\n  - Can I just create a token and embed it into the project?\r\n    - Is this secure? (probably not)\r\n  - Is this the same as [Basic Authentication](https://developer.github.com/v3/#basic-authentication) and/or [OAuth](https://developer.github.com/v3/#oauth2-token-sent-in-a-header)?\r\n- [Conditional Requests](https://developer.github.com/v3/#conditional-requests) - _Decreasing Requests_\r\n  - Will `If-Modified-Since` help?\r\n    - Does it not pull any data, or only pull a cached copy?\r\n    - Found [this](https://stackoverflow.com/questions/2208288/how-to-test-for-if-modified-since-http-header-support) code: `curl_setopt($ch, CURLOPT_HTTPHEADER, array(\"If-Modified-Since: \".gmdate('D, d M Y H:i:s \\G\\M\\T',time()-60*60*60*60)));`\r\n    - If I store the commit or last update date into `config.ini.php`, I could use that date to test against `If-Modified-Since`\r\n  - How could the `If-None-Match` be used?\r\n    - Does it compare the commit with the `ETag`?\r\n- May want to look into storing pulled data to a `$_SESSION` variable for reuse\r\n  - Would need to remember to clear on application update\r\n- Could just catch the limit message and display wait message on page\r\n  - Would allow for this to be pushed into next major release"}}
{"actor":{"display_login":"dynamiccookies"}}