{"action":"closed","number":3,"pull_request":{"url":"https://api.github.com/repos/influentialpublishers/pimp-my-sql/pulls/3","id":84419928,"html_url":"https://github.com/influentialpublishers/pimp-my-sql/pull/3","diff_url":"https://github.com/influentialpublishers/pimp-my-sql/pull/3.diff","patch_url":"https://github.com/influentialpublishers/pimp-my-sql/pull/3.patch","issue_url":"https://api.github.com/repos/influentialpublishers/pimp-my-sql/issues/3","number":3,"state":"closed","locked":false,"title":"Model Search","user":{"login":"Bellk17","id":4109048,"avatar_url":"https://avatars.githubusercontent.com/u/4109048?v=3","gravatar_id":"","url":"https://api.github.com/users/Bellk17","html_url":"https://github.com/Bellk17","followers_url":"https://api.github.com/users/Bellk17/followers","following_url":"https://api.github.com/users/Bellk17/following{/other_user}","gists_url":"https://api.github.com/users/Bellk17/gists{/gist_id}","starred_url":"https://api.github.com/users/Bellk17/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bellk17/subscriptions","organizations_url":"https://api.github.com/users/Bellk17/orgs","repos_url":"https://api.github.com/users/Bellk17/repos","events_url":"https://api.github.com/users/Bellk17/events{/privacy}","received_events_url":"https://api.github.com/users/Bellk17/received_events","type":"User","site_admin":false},"body":"Search function for Model.\r\n\r\ntakes an object that maps parameters to sql clauses, which is used in conjunction with parameter-value object to build an sql query for searching. Currently uses a regex to identify join clauses and eliminate duplicates.\r\n\r\nFurther Refactoring: Looking at changing structure of join clauses in mapping object to include alias for each join clause. Would make regex unnecessary and allow full support for sub-selects in join clauses.","created_at":"2016-09-08T06:12:19Z","updated_at":"2016-09-08T07:51:40Z","closed_at":"2016-09-08T07:51:40Z","merged_at":"2016-09-08T07:51:40Z","merge_commit_sha":"1adf8c49b144eed582c2b9f436780d40a9849111","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/influentialpublishers/pimp-my-sql/pulls/3/commits","review_comments_url":"https://api.github.com/repos/influentialpublishers/pimp-my-sql/pulls/3/comments","review_comment_url":"https://api.github.com/repos/influentialpublishers/pimp-my-sql/pulls/comments{/number}","comments_url":"https://api.github.com/repos/influentialpublishers/pimp-my-sql/issues/3/comments","statuses_url":"https://api.github.com/repos/influentialpublishers/pimp-my-sql/statuses/ea6b20d374a47db5b8a13432cf2cea73890a69b0","head":{"label":"Bellk17:dev","ref":"dev","sha":"ea6b20d374a47db5b8a13432cf2cea73890a69b0","user":{"login":"Bellk17","id":4109048,"avatar_url":"https://avatars.githubusercontent.com/u/4109048?v=3","gravatar_id":"","url":"https://api.github.com/users/Bellk17","html_url":"https://github.com/Bellk17","followers_url":"https://api.github.com/users/Bellk17/followers","following_url":"https://api.github.com/users/Bellk17/following{/other_user}","gists_url":"https://api.github.com/users/Bellk17/gists{/gist_id}","starred_url":"https://api.github.com/users/Bellk17/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bellk17/subscriptions","organizations_url":"https://api.github.com/users/Bellk17/orgs","repos_url":"https://api.github.com/users/Bellk17/repos","events_url":"https://api.github.com/users/Bellk17/events{/privacy}","received_events_url":"https://api.github.com/users/Bellk17/received_events","type":"User","site_admin":false},"repo":{"id":67249074,"name":"pimp-my-sql","full_name":"Bellk17/pimp-my-sql","owner":{"login":"Bellk17","id":4109048,"avatar_url":"https://avatars.githubusercontent.com/u/4109048?v=3","gravatar_id":"","url":"https://api.github.com/users/Bellk17","html_url":"https://github.com/Bellk17","followers_url":"https://api.github.com/users/Bellk17/followers","following_url":"https://api.github.com/users/Bellk17/following{/other_user}","gists_url":"https://api.github.com/users/Bellk17/gists{/gist_id}","starred_url":"https://api.github.com/users/Bellk17/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bellk17/subscriptions","organizations_url":"https://api.github.com/users/Bellk17/orgs","repos_url":"https://api.github.com/users/Bellk17/repos","events_url":"https://api.github.com/users/Bellk17/events{/privacy}","received_events_url":"https://api.github.com/users/Bellk17/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Bellk17/pimp-my-sql","description":"Promise the SQL Dammit","fork":true,"url":"https://api.github.com/repos/Bellk17/pimp-my-sql","forks_url":"https://api.github.com/repos/Bellk17/pimp-my-sql/forks","keys_url":"https://api.github.com/repos/Bellk17/pimp-my-sql/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Bellk17/pimp-my-sql/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Bellk17/pimp-my-sql/teams","hooks_url":"https://api.github.com/repos/Bellk17/pimp-my-sql/hooks","issue_events_url":"https://api.github.com/repos/Bellk17/pimp-my-sql/issues/events{/number}","events_url":"https://api.github.com/repos/Bellk17/pimp-my-sql/events","assignees_url":"https://api.github.com/repos/Bellk17/pimp-my-sql/assignees{/user}","branches_url":"https://api.github.com/repos/Bellk17/pimp-my-sql/branches{/branch}","tags_url":"https://api.github.com/repos/Bellk17/pimp-my-sql/tags","blobs_url":"https://api.github.com/repos/Bellk17/pimp-my-sql/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Bellk17/pimp-my-sql/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Bellk17/pimp-my-sql/git/refs{/sha}","trees_url":"https://api.github.com/repos/Bellk17/pimp-my-sql/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Bellk17/pimp-my-sql/statuses/{sha}","languages_url":"https://api.github.com/repos/Bellk17/pimp-my-sql/languages","stargazers_url":"https://api.github.com/repos/Bellk17/pimp-my-sql/stargazers","contributors_url":"https://api.github.com/repos/Bellk17/pimp-my-sql/contributors","subscribers_url":"https://api.github.com/repos/Bellk17/pimp-my-sql/subscribers","subscription_url":"https://api.github.com/repos/Bellk17/pimp-my-sql/subscription","commits_url":"https://api.github.com/repos/Bellk17/pimp-my-sql/commits{/sha}","git_commits_url":"https://api.github.com/repos/Bellk17/pimp-my-sql/git/commits{/sha}","comments_url":"https://api.github.com/repos/Bellk17/pimp-my-sql/comments{/number}","issue_comment_url":"https://api.github.com/repos/Bellk17/pimp-my-sql/issues/comments{/number}","contents_url":"https://api.github.com/repos/Bellk17/pimp-my-sql/contents/{+path}","compare_url":"https://api.github.com/repos/Bellk17/pimp-my-sql/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Bellk17/pimp-my-sql/merges","archive_url":"https://api.github.com/repos/Bellk17/pimp-my-sql/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Bellk17/pimp-my-sql/downloads","issues_url":"https://api.github.com/repos/Bellk17/pimp-my-sql/issues{/number}","pulls_url":"https://api.github.com/repos/Bellk17/pimp-my-sql/pulls{/number}","milestones_url":"https://api.github.com/repos/Bellk17/pimp-my-sql/milestones{/number}","notifications_url":"https://api.github.com/repos/Bellk17/pimp-my-sql/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Bellk17/pimp-my-sql/labels{/name}","releases_url":"https://api.github.com/repos/Bellk17/pimp-my-sql/releases{/id}","deployments_url":"https://api.github.com/repos/Bellk17/pimp-my-sql/deployments","created_at":"2016-09-02T19:24:42Z","updated_at":"2016-09-02T19:24:43Z","pushed_at":"2016-09-08T03:57:15Z","git_url":"git://github.com/Bellk17/pimp-my-sql.git","ssh_url":"git@github.com:Bellk17/pimp-my-sql.git","clone_url":"https://github.com/Bellk17/pimp-my-sql.git","svn_url":"https://github.com/Bellk17/pimp-my-sql","homepage":null,"size":28,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"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":0,"default_branch":"master"}},"base":{"label":"influentialpublishers:master","ref":"master","sha":"1f849f9b16c4f25bdc423ef2b2431c2532eecce9","user":{"login":"influentialpublishers","id":6587606,"avatar_url":"https://avatars.githubusercontent.com/u/6587606?v=3","gravatar_id":"","url":"https://api.github.com/users/influentialpublishers","html_url":"https://github.com/influentialpublishers","followers_url":"https://api.github.com/users/influentialpublishers/followers","following_url":"https://api.github.com/users/influentialpublishers/following{/other_user}","gists_url":"https://api.github.com/users/influentialpublishers/gists{/gist_id}","starred_url":"https://api.github.com/users/influentialpublishers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/influentialpublishers/subscriptions","organizations_url":"https://api.github.com/users/influentialpublishers/orgs","repos_url":"https://api.github.com/users/influentialpublishers/repos","events_url":"https://api.github.com/users/influentialpublishers/events{/privacy}","received_events_url":"https://api.github.com/users/influentialpublishers/received_events","type":"Organization","site_admin":false},"repo":{"id":64872394,"name":"pimp-my-sql","full_name":"influentialpublishers/pimp-my-sql","owner":{"login":"influentialpublishers","id":6587606,"avatar_url":"https://avatars.githubusercontent.com/u/6587606?v=3","gravatar_id":"","url":"https://api.github.com/users/influentialpublishers","html_url":"https://github.com/influentialpublishers","followers_url":"https://api.github.com/users/influentialpublishers/followers","following_url":"https://api.github.com/users/influentialpublishers/following{/other_user}","gists_url":"https://api.github.com/users/influentialpublishers/gists{/gist_id}","starred_url":"https://api.github.com/users/influentialpublishers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/influentialpublishers/subscriptions","organizations_url":"https://api.github.com/users/influentialpublishers/orgs","repos_url":"https://api.github.com/users/influentialpublishers/repos","events_url":"https://api.github.com/users/influentialpublishers/events{/privacy}","received_events_url":"https://api.github.com/users/influentialpublishers/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/influentialpublishers/pimp-my-sql","description":"Promise the SQL Dammit","fork":false,"url":"https://api.github.com/repos/influentialpublishers/pimp-my-sql","forks_url":"https://api.github.com/repos/influentialpublishers/pimp-my-sql/forks","keys_url":"https://api.github.com/repos/influentialpublishers/pimp-my-sql/keys{/key_id}","collaborators_url":"https://api.github.com/repos/influentialpublishers/pimp-my-sql/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/influentialpublishers/pimp-my-sql/teams","hooks_url":"https://api.github.com/repos/influentialpublishers/pimp-my-sql/hooks","issue_events_url":"https://api.github.com/repos/influentialpublishers/pimp-my-sql/issues/events{/number}","events_url":"https://api.github.com/repos/influentialpublishers/pimp-my-sql/events","assignees_url":"https://api.github.com/repos/influentialpublishers/pimp-my-sql/assignees{/user}","branches_url":"https://api.github.com/repos/influentialpublishers/pimp-my-sql/branches{/branch}","tags_url":"https://api.github.com/repos/influentialpublishers/pimp-my-sql/tags","blobs_url":"https://api.github.com/repos/influentialpublishers/pimp-my-sql/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/influentialpublishers/pimp-my-sql/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/influentialpublishers/pimp-my-sql/git/refs{/sha}","trees_url":"https://api.github.com/repos/influentialpublishers/pimp-my-sql/git/trees{/sha}","statuses_url":"https://api.github.com/repos/influentialpublishers/pimp-my-sql/statuses/{sha}","languages_url":"https://api.github.com/repos/influentialpublishers/pimp-my-sql/languages","stargazers_url":"https://api.github.com/repos/influentialpublishers/pimp-my-sql/stargazers","contributors_url":"https://api.github.com/repos/influentialpublishers/pimp-my-sql/contributors","subscribers_url":"https://api.github.com/repos/influentialpublishers/pimp-my-sql/subscribers","subscription_url":"https://api.github.com/repos/influentialpublishers/pimp-my-sql/subscription","commits_url":"https://api.github.com/repos/influentialpublishers/pimp-my-sql/commits{/sha}","git_commits_url":"https://api.github.com/repos/influentialpublishers/pimp-my-sql/git/commits{/sha}","comments_url":"https://api.github.com/repos/influentialpublishers/pimp-my-sql/comments{/number}","issue_comment_url":"https://api.github.com/repos/influentialpublishers/pimp-my-sql/issues/comments{/number}","contents_url":"https://api.github.com/repos/influentialpublishers/pimp-my-sql/contents/{+path}","compare_url":"https://api.github.com/repos/influentialpublishers/pimp-my-sql/compare/{base}...{head}","merges_url":"https://api.github.com/repos/influentialpublishers/pimp-my-sql/merges","archive_url":"https://api.github.com/repos/influentialpublishers/pimp-my-sql/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/influentialpublishers/pimp-my-sql/downloads","issues_url":"https://api.github.com/repos/influentialpublishers/pimp-my-sql/issues{/number}","pulls_url":"https://api.github.com/repos/influentialpublishers/pimp-my-sql/pulls{/number}","milestones_url":"https://api.github.com/repos/influentialpublishers/pimp-my-sql/milestones{/number}","notifications_url":"https://api.github.com/repos/influentialpublishers/pimp-my-sql/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/influentialpublishers/pimp-my-sql/labels{/name}","releases_url":"https://api.github.com/repos/influentialpublishers/pimp-my-sql/releases{/id}","deployments_url":"https://api.github.com/repos/influentialpublishers/pimp-my-sql/deployments","created_at":"2016-08-03T19:09:52Z","updated_at":"2016-08-31T22:13:56Z","pushed_at":"2016-09-08T07:51:40Z","git_url":"git://github.com/influentialpublishers/pimp-my-sql.git","ssh_url":"git@github.com:influentialpublishers/pimp-my-sql.git","clone_url":"https://github.com/influentialpublishers/pimp-my-sql.git","svn_url":"https://github.com/influentialpublishers/pimp-my-sql","homepage":null,"size":23,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":1,"forks":3,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/influentialpublishers/pimp-my-sql/pulls/3"},"html":{"href":"https://github.com/influentialpublishers/pimp-my-sql/pull/3"},"issue":{"href":"https://api.github.com/repos/influentialpublishers/pimp-my-sql/issues/3"},"comments":{"href":"https://api.github.com/repos/influentialpublishers/pimp-my-sql/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/influentialpublishers/pimp-my-sql/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/influentialpublishers/pimp-my-sql/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/influentialpublishers/pimp-my-sql/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/influentialpublishers/pimp-my-sql/statuses/ea6b20d374a47db5b8a13432cf2cea73890a69b0"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"scull7","id":234352,"avatar_url":"https://avatars.githubusercontent.com/u/234352?v=3","gravatar_id":"","url":"https://api.github.com/users/scull7","html_url":"https://github.com/scull7","followers_url":"https://api.github.com/users/scull7/followers","following_url":"https://api.github.com/users/scull7/following{/other_user}","gists_url":"https://api.github.com/users/scull7/gists{/gist_id}","starred_url":"https://api.github.com/users/scull7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scull7/subscriptions","organizations_url":"https://api.github.com/users/scull7/orgs","repos_url":"https://api.github.com/users/scull7/repos","events_url":"https://api.github.com/users/scull7/events{/privacy}","received_events_url":"https://api.github.com/users/scull7/received_events","type":"User","site_admin":false},"comments":3,"review_comments":4,"commits":3,"additions":594,"deletions":1,"changed_files":5}}
{"actor":{"display_login":"scull7"}}