{"action":"closed","number":166,"pull_request":{"url":"https://api.github.com/repos/GeoNet/fdsn/pulls/166","id":239701722,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM5NzAxNzIy","html_url":"https://github.com/GeoNet/fdsn/pull/166","diff_url":"https://github.com/GeoNet/fdsn/pull/166.diff","patch_url":"https://github.com/GeoNet/fdsn/pull/166.patch","issue_url":"https://api.github.com/repos/GeoNet/fdsn/issues/166","number":166,"state":"closed","locked":false,"title":"Limit Dataselect Queries","user":{"login":"danieldooley","id":14102844,"node_id":"MDQ6VXNlcjE0MTAyODQ0","avatar_url":"https://avatars3.githubusercontent.com/u/14102844?v=4","gravatar_id":"","url":"https://api.github.com/users/danieldooley","html_url":"https://github.com/danieldooley","followers_url":"https://api.github.com/users/danieldooley/followers","following_url":"https://api.github.com/users/danieldooley/following{/other_user}","gists_url":"https://api.github.com/users/danieldooley/gists{/gist_id}","starred_url":"https://api.github.com/users/danieldooley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danieldooley/subscriptions","organizations_url":"https://api.github.com/users/danieldooley/orgs","repos_url":"https://api.github.com/users/danieldooley/repos","events_url":"https://api.github.com/users/danieldooley/events{/privacy}","received_events_url":"https://api.github.com/users/danieldooley/received_events","type":"User","site_admin":false},"body":"Related to https://github.com/GeoNet/tickets/issues/3759\r\n\r\nThis PR restricts Dataselect queries to either 60 days (more specifically day files) (2 months) OR a maximum of 30 minutes. \r\n\r\nThis implementation assumes it is ok to request those 60 days in any combination (e.g. 2days of each channel across 30 channels OR 60 days of 1 channel). i.e. as long as: \r\n```\r\n[num of channels] * [num of days OR partial days] <= 60 OR longest request <= 30mins\r\n```\r\nThe request will be allowed.\r\n\r\nIt does not change limits on the other queries (event or station). \r\nData metrics are limited to maximum files of 60 but have no 30minute 'grace' window in this implementation.","created_at":"2018-12-19T03:32:30Z","updated_at":"2018-12-19T21:54:07Z","closed_at":"2018-12-19T21:54:07Z","merged_at":"2018-12-19T21:54:07Z","merge_commit_sha":"20e80142cd0a4f08a0714906ba344f15451d8f31","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/GeoNet/fdsn/pulls/166/commits","review_comments_url":"https://api.github.com/repos/GeoNet/fdsn/pulls/166/comments","review_comment_url":"https://api.github.com/repos/GeoNet/fdsn/pulls/comments{/number}","comments_url":"https://api.github.com/repos/GeoNet/fdsn/issues/166/comments","statuses_url":"https://api.github.com/repos/GeoNet/fdsn/statuses/c36d3b601f52e7686284e5625642b77f378fd1bc","head":{"label":"danieldooley:throttle","ref":"throttle","sha":"c36d3b601f52e7686284e5625642b77f378fd1bc","user":{"login":"danieldooley","id":14102844,"node_id":"MDQ6VXNlcjE0MTAyODQ0","avatar_url":"https://avatars3.githubusercontent.com/u/14102844?v=4","gravatar_id":"","url":"https://api.github.com/users/danieldooley","html_url":"https://github.com/danieldooley","followers_url":"https://api.github.com/users/danieldooley/followers","following_url":"https://api.github.com/users/danieldooley/following{/other_user}","gists_url":"https://api.github.com/users/danieldooley/gists{/gist_id}","starred_url":"https://api.github.com/users/danieldooley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danieldooley/subscriptions","organizations_url":"https://api.github.com/users/danieldooley/orgs","repos_url":"https://api.github.com/users/danieldooley/repos","events_url":"https://api.github.com/users/danieldooley/events{/privacy}","received_events_url":"https://api.github.com/users/danieldooley/received_events","type":"User","site_admin":false},"repo":{"id":100556878,"node_id":"MDEwOlJlcG9zaXRvcnkxMDA1NTY4Nzg=","name":"fdsn","full_name":"danieldooley/fdsn","private":false,"owner":{"login":"danieldooley","id":14102844,"node_id":"MDQ6VXNlcjE0MTAyODQ0","avatar_url":"https://avatars3.githubusercontent.com/u/14102844?v=4","gravatar_id":"","url":"https://api.github.com/users/danieldooley","html_url":"https://github.com/danieldooley","followers_url":"https://api.github.com/users/danieldooley/followers","following_url":"https://api.github.com/users/danieldooley/following{/other_user}","gists_url":"https://api.github.com/users/danieldooley/gists{/gist_id}","starred_url":"https://api.github.com/users/danieldooley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danieldooley/subscriptions","organizations_url":"https://api.github.com/users/danieldooley/orgs","repos_url":"https://api.github.com/users/danieldooley/repos","events_url":"https://api.github.com/users/danieldooley/events{/privacy}","received_events_url":"https://api.github.com/users/danieldooley/received_events","type":"User","site_admin":false},"html_url":"https://github.com/danieldooley/fdsn","description":"FDSN Web Services","fork":true,"url":"https://api.github.com/repos/danieldooley/fdsn","forks_url":"https://api.github.com/repos/danieldooley/fdsn/forks","keys_url":"https://api.github.com/repos/danieldooley/fdsn/keys{/key_id}","collaborators_url":"https://api.github.com/repos/danieldooley/fdsn/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/danieldooley/fdsn/teams","hooks_url":"https://api.github.com/repos/danieldooley/fdsn/hooks","issue_events_url":"https://api.github.com/repos/danieldooley/fdsn/issues/events{/number}","events_url":"https://api.github.com/repos/danieldooley/fdsn/events","assignees_url":"https://api.github.com/repos/danieldooley/fdsn/assignees{/user}","branches_url":"https://api.github.com/repos/danieldooley/fdsn/branches{/branch}","tags_url":"https://api.github.com/repos/danieldooley/fdsn/tags","blobs_url":"https://api.github.com/repos/danieldooley/fdsn/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/danieldooley/fdsn/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/danieldooley/fdsn/git/refs{/sha}","trees_url":"https://api.github.com/repos/danieldooley/fdsn/git/trees{/sha}","statuses_url":"https://api.github.com/repos/danieldooley/fdsn/statuses/{sha}","languages_url":"https://api.github.com/repos/danieldooley/fdsn/languages","stargazers_url":"https://api.github.com/repos/danieldooley/fdsn/stargazers","contributors_url":"https://api.github.com/repos/danieldooley/fdsn/contributors","subscribers_url":"https://api.github.com/repos/danieldooley/fdsn/subscribers","subscription_url":"https://api.github.com/repos/danieldooley/fdsn/subscription","commits_url":"https://api.github.com/repos/danieldooley/fdsn/commits{/sha}","git_commits_url":"https://api.github.com/repos/danieldooley/fdsn/git/commits{/sha}","comments_url":"https://api.github.com/repos/danieldooley/fdsn/comments{/number}","issue_comment_url":"https://api.github.com/repos/danieldooley/fdsn/issues/comments{/number}","contents_url":"https://api.github.com/repos/danieldooley/fdsn/contents/{+path}","compare_url":"https://api.github.com/repos/danieldooley/fdsn/compare/{base}...{head}","merges_url":"https://api.github.com/repos/danieldooley/fdsn/merges","archive_url":"https://api.github.com/repos/danieldooley/fdsn/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/danieldooley/fdsn/downloads","issues_url":"https://api.github.com/repos/danieldooley/fdsn/issues{/number}","pulls_url":"https://api.github.com/repos/danieldooley/fdsn/pulls{/number}","milestones_url":"https://api.github.com/repos/danieldooley/fdsn/milestones{/number}","notifications_url":"https://api.github.com/repos/danieldooley/fdsn/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/danieldooley/fdsn/labels{/name}","releases_url":"https://api.github.com/repos/danieldooley/fdsn/releases{/id}","deployments_url":"https://api.github.com/repos/danieldooley/fdsn/deployments","created_at":"2017-08-17T03:23:17Z","updated_at":"2017-08-17T03:23:19Z","pushed_at":"2018-12-19T03:48:35Z","git_url":"git://github.com/danieldooley/fdsn.git","ssh_url":"git@github.com:danieldooley/fdsn.git","clone_url":"https://github.com/danieldooley/fdsn.git","svn_url":"https://github.com/danieldooley/fdsn","homepage":null,"size":20002,"stargazers_count":0,"watchers_count":0,"language":"Go","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":"GeoNet:master","ref":"master","sha":"b216623f4488a84a3d95916e26c7dac9cafd5df4","user":{"login":"GeoNet","id":1016472,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwMTY0NzI=","avatar_url":"https://avatars0.githubusercontent.com/u/1016472?v=4","gravatar_id":"","url":"https://api.github.com/users/GeoNet","html_url":"https://github.com/GeoNet","followers_url":"https://api.github.com/users/GeoNet/followers","following_url":"https://api.github.com/users/GeoNet/following{/other_user}","gists_url":"https://api.github.com/users/GeoNet/gists{/gist_id}","starred_url":"https://api.github.com/users/GeoNet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GeoNet/subscriptions","organizations_url":"https://api.github.com/users/GeoNet/orgs","repos_url":"https://api.github.com/users/GeoNet/repos","events_url":"https://api.github.com/users/GeoNet/events{/privacy}","received_events_url":"https://api.github.com/users/GeoNet/received_events","type":"Organization","site_admin":false},"repo":{"id":80790703,"node_id":"MDEwOlJlcG9zaXRvcnk4MDc5MDcwMw==","name":"fdsn","full_name":"GeoNet/fdsn","private":false,"owner":{"login":"GeoNet","id":1016472,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwMTY0NzI=","avatar_url":"https://avatars0.githubusercontent.com/u/1016472?v=4","gravatar_id":"","url":"https://api.github.com/users/GeoNet","html_url":"https://github.com/GeoNet","followers_url":"https://api.github.com/users/GeoNet/followers","following_url":"https://api.github.com/users/GeoNet/following{/other_user}","gists_url":"https://api.github.com/users/GeoNet/gists{/gist_id}","starred_url":"https://api.github.com/users/GeoNet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GeoNet/subscriptions","organizations_url":"https://api.github.com/users/GeoNet/orgs","repos_url":"https://api.github.com/users/GeoNet/repos","events_url":"https://api.github.com/users/GeoNet/events{/privacy}","received_events_url":"https://api.github.com/users/GeoNet/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/GeoNet/fdsn","description":"FDSN Web Services","fork":false,"url":"https://api.github.com/repos/GeoNet/fdsn","forks_url":"https://api.github.com/repos/GeoNet/fdsn/forks","keys_url":"https://api.github.com/repos/GeoNet/fdsn/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GeoNet/fdsn/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GeoNet/fdsn/teams","hooks_url":"https://api.github.com/repos/GeoNet/fdsn/hooks","issue_events_url":"https://api.github.com/repos/GeoNet/fdsn/issues/events{/number}","events_url":"https://api.github.com/repos/GeoNet/fdsn/events","assignees_url":"https://api.github.com/repos/GeoNet/fdsn/assignees{/user}","branches_url":"https://api.github.com/repos/GeoNet/fdsn/branches{/branch}","tags_url":"https://api.github.com/repos/GeoNet/fdsn/tags","blobs_url":"https://api.github.com/repos/GeoNet/fdsn/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GeoNet/fdsn/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GeoNet/fdsn/git/refs{/sha}","trees_url":"https://api.github.com/repos/GeoNet/fdsn/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GeoNet/fdsn/statuses/{sha}","languages_url":"https://api.github.com/repos/GeoNet/fdsn/languages","stargazers_url":"https://api.github.com/repos/GeoNet/fdsn/stargazers","contributors_url":"https://api.github.com/repos/GeoNet/fdsn/contributors","subscribers_url":"https://api.github.com/repos/GeoNet/fdsn/subscribers","subscription_url":"https://api.github.com/repos/GeoNet/fdsn/subscription","commits_url":"https://api.github.com/repos/GeoNet/fdsn/commits{/sha}","git_commits_url":"https://api.github.com/repos/GeoNet/fdsn/git/commits{/sha}","comments_url":"https://api.github.com/repos/GeoNet/fdsn/comments{/number}","issue_comment_url":"https://api.github.com/repos/GeoNet/fdsn/issues/comments{/number}","contents_url":"https://api.github.com/repos/GeoNet/fdsn/contents/{+path}","compare_url":"https://api.github.com/repos/GeoNet/fdsn/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GeoNet/fdsn/merges","archive_url":"https://api.github.com/repos/GeoNet/fdsn/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GeoNet/fdsn/downloads","issues_url":"https://api.github.com/repos/GeoNet/fdsn/issues{/number}","pulls_url":"https://api.github.com/repos/GeoNet/fdsn/pulls{/number}","milestones_url":"https://api.github.com/repos/GeoNet/fdsn/milestones{/number}","notifications_url":"https://api.github.com/repos/GeoNet/fdsn/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GeoNet/fdsn/labels{/name}","releases_url":"https://api.github.com/repos/GeoNet/fdsn/releases{/id}","deployments_url":"https://api.github.com/repos/GeoNet/fdsn/deployments","created_at":"2017-02-03T02:36:53Z","updated_at":"2018-11-20T02:40:28Z","pushed_at":"2018-12-19T21:54:07Z","git_url":"git://github.com/GeoNet/fdsn.git","ssh_url":"git@github.com:GeoNet/fdsn.git","clone_url":"https://github.com/GeoNet/fdsn.git","svn_url":"https://github.com/GeoNet/fdsn","homepage":null,"size":21214,"stargazers_count":6,"watchers_count":6,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":10,"mirror_url":null,"archived":false,"open_issues_count":16,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":10,"open_issues":16,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/GeoNet/fdsn/pulls/166"},"html":{"href":"https://github.com/GeoNet/fdsn/pull/166"},"issue":{"href":"https://api.github.com/repos/GeoNet/fdsn/issues/166"},"comments":{"href":"https://api.github.com/repos/GeoNet/fdsn/issues/166/comments"},"review_comments":{"href":"https://api.github.com/repos/GeoNet/fdsn/pulls/166/comments"},"review_comment":{"href":"https://api.github.com/repos/GeoNet/fdsn/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/GeoNet/fdsn/pulls/166/commits"},"statuses":{"href":"https://api.github.com/repos/GeoNet/fdsn/statuses/c36d3b601f52e7686284e5625642b77f378fd1bc"}},"author_association":"CONTRIBUTOR","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"danieldooley","id":14102844,"node_id":"MDQ6VXNlcjE0MTAyODQ0","avatar_url":"https://avatars3.githubusercontent.com/u/14102844?v=4","gravatar_id":"","url":"https://api.github.com/users/danieldooley","html_url":"https://github.com/danieldooley","followers_url":"https://api.github.com/users/danieldooley/followers","following_url":"https://api.github.com/users/danieldooley/following{/other_user}","gists_url":"https://api.github.com/users/danieldooley/gists{/gist_id}","starred_url":"https://api.github.com/users/danieldooley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danieldooley/subscriptions","organizations_url":"https://api.github.com/users/danieldooley/orgs","repos_url":"https://api.github.com/users/danieldooley/repos","events_url":"https://api.github.com/users/danieldooley/events{/privacy}","received_events_url":"https://api.github.com/users/danieldooley/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":10,"deletions":4,"changed_files":2}}
{"actor":{"display_login":"danieldooley"}}