{"action":"closed","number":11,"pull_request":{"url":"https://api.github.com/repos/vapor/fluent-provider/pulls/11","id":110444924,"html_url":"https://github.com/vapor/fluent-provider/pull/11","diff_url":"https://github.com/vapor/fluent-provider/pull/11.diff","patch_url":"https://github.com/vapor/fluent-provider/pull/11.patch","issue_url":"https://api.github.com/repos/vapor/fluent-provider/issues/11","number":11,"state":"closed","locked":false,"title":"batch filtering with request","user":{"login":"tanner0101","id":1342803,"avatar_url":"https://avatars1.githubusercontent.com/u/1342803?v=3","gravatar_id":"","url":"https://api.github.com/users/tanner0101","html_url":"https://github.com/tanner0101","followers_url":"https://api.github.com/users/tanner0101/followers","following_url":"https://api.github.com/users/tanner0101/following{/other_user}","gists_url":"https://api.github.com/users/tanner0101/gists{/gist_id}","starred_url":"https://api.github.com/users/tanner0101/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tanner0101/subscriptions","organizations_url":"https://api.github.com/users/tanner0101/orgs","repos_url":"https://api.github.com/users/tanner0101/repos","events_url":"https://api.github.com/users/tanner0101/events{/privacy}","received_events_url":"https://api.github.com/users/tanner0101/received_events","type":"User","site_admin":false},"body":"This PR allows batch filtering with the request and leaves room for additional filterable mediums in the future.\r\n\r\n```swift\r\nextension User: Filterable {\r\n    static var filterableKeys: [FilterableKey] {\r\n        return [\r\n            \"name\", \r\n            FilterableKey(key: \"age\", .greaterThan)\r\n        ]\r\n    }\r\n}\r\n```\r\n\r\n```swift\r\npublic func index(_ req: Request) throws -> ResponseRepresentable {\r\n    return try User.filter(for: req).paginate(for: req)\r\n}\r\n```\r\n\r\n```\r\nGET /users?name=bob&age=16\r\n```\r\n\r\nWill get all users named bob with age greater than 16","created_at":"2017-03-13T16:34:49Z","updated_at":"2017-03-13T17:57:53Z","closed_at":"2017-03-13T17:57:53Z","merged_at":"2017-03-13T17:57:53Z","merge_commit_sha":"fe723d9fbc602f82515c3f9df52b625deae09051","assignee":{"login":"tanner0101","id":1342803,"avatar_url":"https://avatars1.githubusercontent.com/u/1342803?v=3","gravatar_id":"","url":"https://api.github.com/users/tanner0101","html_url":"https://github.com/tanner0101","followers_url":"https://api.github.com/users/tanner0101/followers","following_url":"https://api.github.com/users/tanner0101/following{/other_user}","gists_url":"https://api.github.com/users/tanner0101/gists{/gist_id}","starred_url":"https://api.github.com/users/tanner0101/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tanner0101/subscriptions","organizations_url":"https://api.github.com/users/tanner0101/orgs","repos_url":"https://api.github.com/users/tanner0101/repos","events_url":"https://api.github.com/users/tanner0101/events{/privacy}","received_events_url":"https://api.github.com/users/tanner0101/received_events","type":"User","site_admin":false},"assignees":[{"login":"tanner0101","id":1342803,"avatar_url":"https://avatars1.githubusercontent.com/u/1342803?v=3","gravatar_id":"","url":"https://api.github.com/users/tanner0101","html_url":"https://github.com/tanner0101","followers_url":"https://api.github.com/users/tanner0101/followers","following_url":"https://api.github.com/users/tanner0101/following{/other_user}","gists_url":"https://api.github.com/users/tanner0101/gists{/gist_id}","starred_url":"https://api.github.com/users/tanner0101/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tanner0101/subscriptions","organizations_url":"https://api.github.com/users/tanner0101/orgs","repos_url":"https://api.github.com/users/tanner0101/repos","events_url":"https://api.github.com/users/tanner0101/events{/privacy}","received_events_url":"https://api.github.com/users/tanner0101/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/vapor/fluent-provider/pulls/11/commits","review_comments_url":"https://api.github.com/repos/vapor/fluent-provider/pulls/11/comments","review_comment_url":"https://api.github.com/repos/vapor/fluent-provider/pulls/comments{/number}","comments_url":"https://api.github.com/repos/vapor/fluent-provider/issues/11/comments","statuses_url":"https://api.github.com/repos/vapor/fluent-provider/statuses/67edd9fd7b115e908db26a6654ca676caad90182","head":{"label":"vapor:filterable","ref":"filterable","sha":"67edd9fd7b115e908db26a6654ca676caad90182","user":{"login":"vapor","id":17364220,"avatar_url":"https://avatars2.githubusercontent.com/u/17364220?v=3","gravatar_id":"","url":"https://api.github.com/users/vapor","html_url":"https://github.com/vapor","followers_url":"https://api.github.com/users/vapor/followers","following_url":"https://api.github.com/users/vapor/following{/other_user}","gists_url":"https://api.github.com/users/vapor/gists{/gist_id}","starred_url":"https://api.github.com/users/vapor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vapor/subscriptions","organizations_url":"https://api.github.com/users/vapor/orgs","repos_url":"https://api.github.com/users/vapor/repos","events_url":"https://api.github.com/users/vapor/events{/privacy}","received_events_url":"https://api.github.com/users/vapor/received_events","type":"Organization","site_admin":false},"repo":{"id":82198371,"name":"fluent-provider","full_name":"vapor/fluent-provider","owner":{"login":"vapor","id":17364220,"avatar_url":"https://avatars2.githubusercontent.com/u/17364220?v=3","gravatar_id":"","url":"https://api.github.com/users/vapor","html_url":"https://github.com/vapor","followers_url":"https://api.github.com/users/vapor/followers","following_url":"https://api.github.com/users/vapor/following{/other_user}","gists_url":"https://api.github.com/users/vapor/gists{/gist_id}","starred_url":"https://api.github.com/users/vapor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vapor/subscriptions","organizations_url":"https://api.github.com/users/vapor/orgs","repos_url":"https://api.github.com/users/vapor/repos","events_url":"https://api.github.com/users/vapor/events{/privacy}","received_events_url":"https://api.github.com/users/vapor/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/vapor/fluent-provider","description":"A provider for including Fluent in Vapor applications","fork":false,"url":"https://api.github.com/repos/vapor/fluent-provider","forks_url":"https://api.github.com/repos/vapor/fluent-provider/forks","keys_url":"https://api.github.com/repos/vapor/fluent-provider/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vapor/fluent-provider/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vapor/fluent-provider/teams","hooks_url":"https://api.github.com/repos/vapor/fluent-provider/hooks","issue_events_url":"https://api.github.com/repos/vapor/fluent-provider/issues/events{/number}","events_url":"https://api.github.com/repos/vapor/fluent-provider/events","assignees_url":"https://api.github.com/repos/vapor/fluent-provider/assignees{/user}","branches_url":"https://api.github.com/repos/vapor/fluent-provider/branches{/branch}","tags_url":"https://api.github.com/repos/vapor/fluent-provider/tags","blobs_url":"https://api.github.com/repos/vapor/fluent-provider/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vapor/fluent-provider/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vapor/fluent-provider/git/refs{/sha}","trees_url":"https://api.github.com/repos/vapor/fluent-provider/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vapor/fluent-provider/statuses/{sha}","languages_url":"https://api.github.com/repos/vapor/fluent-provider/languages","stargazers_url":"https://api.github.com/repos/vapor/fluent-provider/stargazers","contributors_url":"https://api.github.com/repos/vapor/fluent-provider/contributors","subscribers_url":"https://api.github.com/repos/vapor/fluent-provider/subscribers","subscription_url":"https://api.github.com/repos/vapor/fluent-provider/subscription","commits_url":"https://api.github.com/repos/vapor/fluent-provider/commits{/sha}","git_commits_url":"https://api.github.com/repos/vapor/fluent-provider/git/commits{/sha}","comments_url":"https://api.github.com/repos/vapor/fluent-provider/comments{/number}","issue_comment_url":"https://api.github.com/repos/vapor/fluent-provider/issues/comments{/number}","contents_url":"https://api.github.com/repos/vapor/fluent-provider/contents/{+path}","compare_url":"https://api.github.com/repos/vapor/fluent-provider/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vapor/fluent-provider/merges","archive_url":"https://api.github.com/repos/vapor/fluent-provider/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vapor/fluent-provider/downloads","issues_url":"https://api.github.com/repos/vapor/fluent-provider/issues{/number}","pulls_url":"https://api.github.com/repos/vapor/fluent-provider/pulls{/number}","milestones_url":"https://api.github.com/repos/vapor/fluent-provider/milestones{/number}","notifications_url":"https://api.github.com/repos/vapor/fluent-provider/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vapor/fluent-provider/labels{/name}","releases_url":"https://api.github.com/repos/vapor/fluent-provider/releases{/id}","deployments_url":"https://api.github.com/repos/vapor/fluent-provider/deployments","created_at":"2017-02-16T15:59:34Z","updated_at":"2017-02-21T14:12:08Z","pushed_at":"2017-03-13T17:57:53Z","git_url":"git://github.com/vapor/fluent-provider.git","ssh_url":"git@github.com:vapor/fluent-provider.git","clone_url":"https://github.com/vapor/fluent-provider.git","svn_url":"https://github.com/vapor/fluent-provider","homepage":null,"size":40,"stargazers_count":1,"watchers_count":1,"language":"Swift","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"vapor:master","ref":"master","sha":"11efb80b353e39ceb68289282a8925b54276ee22","user":{"login":"vapor","id":17364220,"avatar_url":"https://avatars2.githubusercontent.com/u/17364220?v=3","gravatar_id":"","url":"https://api.github.com/users/vapor","html_url":"https://github.com/vapor","followers_url":"https://api.github.com/users/vapor/followers","following_url":"https://api.github.com/users/vapor/following{/other_user}","gists_url":"https://api.github.com/users/vapor/gists{/gist_id}","starred_url":"https://api.github.com/users/vapor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vapor/subscriptions","organizations_url":"https://api.github.com/users/vapor/orgs","repos_url":"https://api.github.com/users/vapor/repos","events_url":"https://api.github.com/users/vapor/events{/privacy}","received_events_url":"https://api.github.com/users/vapor/received_events","type":"Organization","site_admin":false},"repo":{"id":82198371,"name":"fluent-provider","full_name":"vapor/fluent-provider","owner":{"login":"vapor","id":17364220,"avatar_url":"https://avatars2.githubusercontent.com/u/17364220?v=3","gravatar_id":"","url":"https://api.github.com/users/vapor","html_url":"https://github.com/vapor","followers_url":"https://api.github.com/users/vapor/followers","following_url":"https://api.github.com/users/vapor/following{/other_user}","gists_url":"https://api.github.com/users/vapor/gists{/gist_id}","starred_url":"https://api.github.com/users/vapor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vapor/subscriptions","organizations_url":"https://api.github.com/users/vapor/orgs","repos_url":"https://api.github.com/users/vapor/repos","events_url":"https://api.github.com/users/vapor/events{/privacy}","received_events_url":"https://api.github.com/users/vapor/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/vapor/fluent-provider","description":"A provider for including Fluent in Vapor applications","fork":false,"url":"https://api.github.com/repos/vapor/fluent-provider","forks_url":"https://api.github.com/repos/vapor/fluent-provider/forks","keys_url":"https://api.github.com/repos/vapor/fluent-provider/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vapor/fluent-provider/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vapor/fluent-provider/teams","hooks_url":"https://api.github.com/repos/vapor/fluent-provider/hooks","issue_events_url":"https://api.github.com/repos/vapor/fluent-provider/issues/events{/number}","events_url":"https://api.github.com/repos/vapor/fluent-provider/events","assignees_url":"https://api.github.com/repos/vapor/fluent-provider/assignees{/user}","branches_url":"https://api.github.com/repos/vapor/fluent-provider/branches{/branch}","tags_url":"https://api.github.com/repos/vapor/fluent-provider/tags","blobs_url":"https://api.github.com/repos/vapor/fluent-provider/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vapor/fluent-provider/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vapor/fluent-provider/git/refs{/sha}","trees_url":"https://api.github.com/repos/vapor/fluent-provider/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vapor/fluent-provider/statuses/{sha}","languages_url":"https://api.github.com/repos/vapor/fluent-provider/languages","stargazers_url":"https://api.github.com/repos/vapor/fluent-provider/stargazers","contributors_url":"https://api.github.com/repos/vapor/fluent-provider/contributors","subscribers_url":"https://api.github.com/repos/vapor/fluent-provider/subscribers","subscription_url":"https://api.github.com/repos/vapor/fluent-provider/subscription","commits_url":"https://api.github.com/repos/vapor/fluent-provider/commits{/sha}","git_commits_url":"https://api.github.com/repos/vapor/fluent-provider/git/commits{/sha}","comments_url":"https://api.github.com/repos/vapor/fluent-provider/comments{/number}","issue_comment_url":"https://api.github.com/repos/vapor/fluent-provider/issues/comments{/number}","contents_url":"https://api.github.com/repos/vapor/fluent-provider/contents/{+path}","compare_url":"https://api.github.com/repos/vapor/fluent-provider/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vapor/fluent-provider/merges","archive_url":"https://api.github.com/repos/vapor/fluent-provider/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vapor/fluent-provider/downloads","issues_url":"https://api.github.com/repos/vapor/fluent-provider/issues{/number}","pulls_url":"https://api.github.com/repos/vapor/fluent-provider/pulls{/number}","milestones_url":"https://api.github.com/repos/vapor/fluent-provider/milestones{/number}","notifications_url":"https://api.github.com/repos/vapor/fluent-provider/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vapor/fluent-provider/labels{/name}","releases_url":"https://api.github.com/repos/vapor/fluent-provider/releases{/id}","deployments_url":"https://api.github.com/repos/vapor/fluent-provider/deployments","created_at":"2017-02-16T15:59:34Z","updated_at":"2017-02-21T14:12:08Z","pushed_at":"2017-03-13T17:57:53Z","git_url":"git://github.com/vapor/fluent-provider.git","ssh_url":"git@github.com:vapor/fluent-provider.git","clone_url":"https://github.com/vapor/fluent-provider.git","svn_url":"https://github.com/vapor/fluent-provider","homepage":null,"size":40,"stargazers_count":1,"watchers_count":1,"language":"Swift","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/vapor/fluent-provider/pulls/11"},"html":{"href":"https://github.com/vapor/fluent-provider/pull/11"},"issue":{"href":"https://api.github.com/repos/vapor/fluent-provider/issues/11"},"comments":{"href":"https://api.github.com/repos/vapor/fluent-provider/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/vapor/fluent-provider/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/vapor/fluent-provider/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/vapor/fluent-provider/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/vapor/fluent-provider/statuses/67edd9fd7b115e908db26a6654ca676caad90182"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"tanner0101","id":1342803,"avatar_url":"https://avatars1.githubusercontent.com/u/1342803?v=3","gravatar_id":"","url":"https://api.github.com/users/tanner0101","html_url":"https://github.com/tanner0101","followers_url":"https://api.github.com/users/tanner0101/followers","following_url":"https://api.github.com/users/tanner0101/following{/other_user}","gists_url":"https://api.github.com/users/tanner0101/gists{/gist_id}","starred_url":"https://api.github.com/users/tanner0101/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tanner0101/subscriptions","organizations_url":"https://api.github.com/users/tanner0101/orgs","repos_url":"https://api.github.com/users/tanner0101/repos","events_url":"https://api.github.com/users/tanner0101/events{/privacy}","received_events_url":"https://api.github.com/users/tanner0101/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":4,"additions":89,"deletions":0,"changed_files":14}}
{"actor":{"display_login":"tanner0101"}}