{"action":"created","issue":{"url":"https://api.github.com/repos/Team254/cheesy-arena/issues/8","labels_url":"https://api.github.com/repos/Team254/cheesy-arena/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/Team254/cheesy-arena/issues/8/comments","events_url":"https://api.github.com/repos/Team254/cheesy-arena/issues/8/events","html_url":"https://github.com/Team254/cheesy-arena/pull/8","id":64166778,"number":8,"title":"Use FRC Events API for team info","user":{"login":"samuelb2","id":1647091,"avatar_url":"https://avatars.githubusercontent.com/u/1647091?v=3","gravatar_id":"","url":"https://api.github.com/users/samuelb2","html_url":"https://github.com/samuelb2","followers_url":"https://api.github.com/users/samuelb2/followers","following_url":"https://api.github.com/users/samuelb2/following{/other_user}","gists_url":"https://api.github.com/users/samuelb2/gists{/gist_id}","starred_url":"https://api.github.com/users/samuelb2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samuelb2/subscriptions","organizations_url":"https://api.github.com/users/samuelb2/orgs","repos_url":"https://api.github.com/users/samuelb2/repos","events_url":"https://api.github.com/users/samuelb2/events{/privacy}","received_events_url":"https://api.github.com/users/samuelb2/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2015-03-25T03:58:12Z","updated_at":"2015-03-26T01:12:51Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Team254/cheesy-arena/pulls/8","html_url":"https://github.com/Team254/cheesy-arena/pull/8","diff_url":"https://github.com/Team254/cheesy-arena/pull/8.diff","patch_url":"https://github.com/Team254/cheesy-arena/pull/8.patch"},"body":"I changed the code base to use the FRC Events API to pull down team info.  The existing method is non-functional right now due to FIRST having pulled down the page it scrapes causing an exception to be thrown until the feature is disabled.\r\n\r\nUsing the FRC Events API works well but has a few disadvantages:\r\n* End-users must obtain and API Key\r\n* It is difficult to get all the team information at once because the API will only return 20 teams at a time.  This requires that we make a request for each team.\r\n\r\nI added 3 new fields to the event settings table:\r\n* FMSAPIDownloadEnabled (whether to use the API or not)\r\n* FMSAPIUsername (the username to use for authentication)\r\n* FMSAPIAuthKey (the authentication key to use for authentication)\r\n\r\nThey were added in a new migration to preserve existing databases.\r\nThere is now a floating column teaminfodownloadenabled which should eventually be removed."},"comment":{"url":"https://api.github.com/repos/Team254/cheesy-arena/issues/comments/86275877","html_url":"https://github.com/Team254/cheesy-arena/pull/8#issuecomment-86275877","issue_url":"https://api.github.com/repos/Team254/cheesy-arena/issues/8","id":86275877,"user":{"login":"phil-lopreiato","id":2754863,"avatar_url":"https://avatars.githubusercontent.com/u/2754863?v=3","gravatar_id":"","url":"https://api.github.com/users/phil-lopreiato","html_url":"https://github.com/phil-lopreiato","followers_url":"https://api.github.com/users/phil-lopreiato/followers","following_url":"https://api.github.com/users/phil-lopreiato/following{/other_user}","gists_url":"https://api.github.com/users/phil-lopreiato/gists{/gist_id}","starred_url":"https://api.github.com/users/phil-lopreiato/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phil-lopreiato/subscriptions","organizations_url":"https://api.github.com/users/phil-lopreiato/orgs","repos_url":"https://api.github.com/users/phil-lopreiato/repos","events_url":"https://api.github.com/users/phil-lopreiato/events{/privacy}","received_events_url":"https://api.github.com/users/phil-lopreiato/received_events","type":"User","site_admin":false},"created_at":"2015-03-26T01:12:51Z","updated_at":"2015-03-26T01:12:51Z","body":"Pull request posted: https://github.com/the-blue-alliance/the-blue-alliance/pull/1155"}}