{"action":"created","issue":{"url":"https://api.github.com/repos/thecartercenter/elmo/issues/61","labels_url":"https://api.github.com/repos/thecartercenter/elmo/issues/61/labels{/name}","comments_url":"https://api.github.com/repos/thecartercenter/elmo/issues/61/comments","events_url":"https://api.github.com/repos/thecartercenter/elmo/issues/61/events","html_url":"https://github.com/thecartercenter/elmo/pull/61","id":70568721,"number":61,"title":"203: Request throttling for ODK Collect endpoints","user":{"login":"md5","id":76367,"avatar_url":"https://avatars.githubusercontent.com/u/76367?v=3","gravatar_id":"","url":"https://api.github.com/users/md5","html_url":"https://github.com/md5","followers_url":"https://api.github.com/users/md5/followers","following_url":"https://api.github.com/users/md5/following{/other_user}","gists_url":"https://api.github.com/users/md5/gists{/gist_id}","starred_url":"https://api.github.com/users/md5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/md5/subscriptions","organizations_url":"https://api.github.com/users/md5/orgs","repos_url":"https://api.github.com/users/md5/repos","events_url":"https://api.github.com/users/md5/events{/privacy}","received_events_url":"https://api.github.com/users/md5/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-24T02:47:43Z","updated_at":"2015-04-24T13:27:55Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/thecartercenter/elmo/pulls/61","html_url":"https://github.com/thecartercenter/elmo/pull/61","diff_url":"https://github.com/thecartercenter/elmo/pull/61.diff","patch_url":"https://github.com/thecartercenter/elmo/pull/61.patch"},"body":"This PR implements the request throttling portion of issue 203 for the ODK Collect endpoints.\r\n\r\nI haven't yet made it configurable, but that would involve using a `proc` for `:limit` (to ensure that the config has been fully loaded). Let me know if you actually want this to be configurable.\r\n\r\nI also added a spec.\r\n\r\nOne thing I wasn't sure about was whether to make `direct_auth?` match paths without `.xml`. There are tests in `basic_authentication_spec.rb` that aren't using `.xml`, so I'm not sure what's actually being requested by ODK Collect. I also recall @hooverlunch mentioning that there is a potentially conflicting path for `/forms/:id`."},"comment":{"url":"https://api.github.com/repos/thecartercenter/elmo/issues/comments/95932008","html_url":"https://github.com/thecartercenter/elmo/pull/61#issuecomment-95932008","issue_url":"https://api.github.com/repos/thecartercenter/elmo/issues/61","id":95932008,"user":{"login":"hooverlunch","id":702320,"avatar_url":"https://avatars.githubusercontent.com/u/702320?v=3","gravatar_id":"","url":"https://api.github.com/users/hooverlunch","html_url":"https://github.com/hooverlunch","followers_url":"https://api.github.com/users/hooverlunch/followers","following_url":"https://api.github.com/users/hooverlunch/following{/other_user}","gists_url":"https://api.github.com/users/hooverlunch/gists{/gist_id}","starred_url":"https://api.github.com/users/hooverlunch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hooverlunch/subscriptions","organizations_url":"https://api.github.com/users/hooverlunch/orgs","repos_url":"https://api.github.com/users/hooverlunch/repos","events_url":"https://api.github.com/users/hooverlunch/events{/privacy}","received_events_url":"https://api.github.com/users/hooverlunch/received_events","type":"User","site_admin":false},"created_at":"2015-04-24T13:27:55Z","updated_at":"2015-04-24T13:27:55Z","body":"Nice work. Just a few small things and you can merge."}}