GitHub PullRequestEvent at 2014-10-13 03:46:12
Repository: TellATale
Actor: danschultz
Payload: {"action":"opened","number":8,"pull_request":{"url":"https://api.github.com/repos/TellATale/TellATale/pulls/8","id":22624982,"html_url":"https://github.com/TellATale/TellATale/pull/8","diff_url":"https://github.com/TellATale/TellATale/pull/8.diff","patch_url":"https://github.com/TellATale/TellATale/pull/8.patch","issue_url":"https://api.github.com/repos/TellATale/TellATale/issues/8","number":8,"state":"open","locked":false,"title":"Add Persistable query builder methods","user":{"login":"danschultz","id":37429,"avatar_url":"https://avatars.githubusercontent.com/u/37429?v=2","gravatar_id":"","url":"https://api.github.com/users/danschultz","html_url":"https://github.com/danschultz","followers_url":"https://api.github.com/users/danschultz/followers","following_url":"https://api.github.com/users/danschultz/following{/other_user}","gists_url":"https://api.github.com/users/danschultz/gists{/gist_id}","starred_url":"https://api.github.com/users/danschultz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danschultz/subscriptions","organizations_url":"https://api.github.com/users/danschultz/orgs","repos_url":"https://api.github.com/users/danschultz/repos","events_url":"https://api.github.com/users/danschultz/events{/privacy}","received_events_url":"https://api.github.com/users/danschultz/received_events","type":"User","site_admin":false},"body":"This adds methods for querying either `Persistable` objects:\r\n\r\n* `Persistable.findByQuery(queryBuilder, handler)`: Queries for a single object.\r\n* `Persistable.findAllByQuery(queryBuilder, handler)`: Queries for a many objects.\r\n\r\nExample usage:\r\n\r\n```swift\r\nUser.findByQuery({ (query: PFQuery) -> Void in\r\n    query.whereKey(\"userId\", equalTo: facebookUser.objectID)\r\n}, handler: { (user, error) -> Void in\r\n    // Handle the response\r\n})\r\n```\r\n\r\n@snekkalapudi this also adds a `User.findOrCreateUserForFacebookUser` method. I was getting an error in Parse when trying to fetch a user's stories, because the initialized user didn't have a Parse objectId. This new method will return a `User` object that has been persisted to Parse.","created_at":"2014-10-13T03:46:11Z","updated_at":"2014-10-13T03:46:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/TellATale/TellATale/pulls/8/commits","review_comments_url":"https://api.github.com/repos/TellATale/TellATale/pulls/8/comments","review_comment_url":"https://api.github.com/repos/TellATale/TellATale/pulls/comments/{number}","comments_url":"https://api.github.com/repos/TellATale/TellATale/issues/8/comments","statuses_url":"https://api.github.com/repos/TellATale/TellATale/statuses/2b2c2ade09e68d30a23b7f4161f0b177a9fdd4d5","head":{"label":"danschultz:persistable-queries","ref":"persistable-queries","sha":"2b2c2ade09e68d30a23b7f4161f0b177a9fdd4d5","user":{"login":"danschultz","id":37429,"avatar_url":"https://avatars.githubusercontent.com/u/37429?v=2","gravatar_id":"","url":"https://api.github.com/users/danschultz","html_url":"https://github.com/danschultz","followers_url":"https://api.github.com/users/danschultz/followers","following_url":"https://api.github.com/users/danschultz/following{/other_user}","gists_url":"https://api.github.com/users/danschultz/gists{/gist_id}","starred_url":"https://api.github.com/users/danschultz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danschultz/subscriptions","organizations_url":"https://api.github.com/users/danschultz/orgs","repos_url":"https://api.github.com/users/danschultz/repos","events_url":"https://api.github.com/users/danschultz/events{/privacy}","received_events_url":"https://api.github.com/users/danschultz/received_events","type":"User","site_admin":false},"repo":{"id":25022586,"name":"TellATale","full_name":"danschultz/TellATale","owner":{"login":"danschultz","id":37429,"avatar_url":"https://avatars.githubusercontent.com/u/37429?v=2","gravatar_id":"","url":"https://api.github.com/users/danschultz","html_url":"https://github.com/danschultz","followers_url":"https://api.github.com/users/danschultz/followers","following_url":"https://api.github.com/users/danschultz/following{/other_user}","gists_url":"https://api.github.com/users/danschultz/gists{/gist_id}","starred_url":"https://api.github.com/users/danschultz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danschultz/subscriptions","organizations_url":"https://api.github.com/users/danschultz/orgs","repos_url":"https://api.github.com/users/danschultz/repos","events_url":"https://api.github.com/users/danschultz/events{/privacy}","received_events_url":"https://api.github.com/users/danschultz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/danschultz/TellATale","description":"","fork":true,"url":"https://api.github.com/repos/danschultz/TellATale","forks_url":"https://api.github.com/repos/danschultz/TellATale/forks","keys_url":"https://api.github.com/repos/danschultz/TellATale/keys{/key_id}","collaborators_url":"https://api.github.com/repos/danschultz/TellATale/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/danschultz/TellATale/teams","hooks_url":"https://api.github.com/repos/danschultz/TellATale/hooks","issue_events_url":"https://api.github.com/repos/danschultz/TellATale/issues/events{/number}","events_url":"https://api.github.com/repos/danschultz/TellATale/events","assignees_url":"https://api.github.com/repos/danschultz/TellATale/assignees{/user}","branches_url":"https://api.github.com/repos/danschultz/TellATale/branches{/branch}","tags_url":"https://api.github.com/repos/danschultz/TellATale/tags","blobs_url":"https://api.github.com/repos/danschultz/TellATale/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/danschultz/TellATale/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/danschultz/TellATale/git/refs{/sha}","trees_url":"https://api.github.com/repos/danschultz/TellATale/git/trees{/sha}","statuses_url":"https://api.github.com/repos/danschultz/TellATale/statuses/{sha}","languages_url":"https://api.github.com/repos/danschultz/TellATale/languages","stargazers_url":"https://api.github.com/repos/danschultz/TellATale/stargazers","contributors_url":"https://api.github.com/repos/danschultz/TellATale/contributors","subscribers_url":"https://api.github.com/repos/danschultz/TellATale/subscribers","subscription_url":"https://api.github.com/repos/danschultz/TellATale/subscription","commits_url":"https://api.github.com/repos/danschultz/TellATale/commits{/sha}","git_commits_url":"https://api.github.com/repos/danschultz/TellATale/git/commits{/sha}","comments_url":"https://api.github.com/repos/danschultz/TellATale/comments{/number}","issue_comment_url":"https://api.github.com/repos/danschultz/TellATale/issues/comments/{number}","contents_url":"https://api.github.com/repos/danschultz/TellATale/contents/{+path}","compare_url":"https://api.github.com/repos/danschultz/TellATale/compare/{base}...{head}","merges_url":"https://api.github.com/repos/danschultz/TellATale/merges","archive_url":"https://api.github.com/repos/danschultz/TellATale/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/danschultz/TellATale/downloads","issues_url":"https://api.github.com/repos/danschultz/TellATale/issues{/number}","pulls_url":"https://api.github.com/repos/danschultz/TellATale/pulls{/number}","milestones_url":"https://api.github.com/repos/danschultz/TellATale/milestones{/number}","notifications_url":"https://api.github.com/repos/danschultz/TellATale/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/danschultz/TellATale/labels{/name}","releases_url":"https://api.github.com/repos/danschultz/TellATale/releases{/id}","created_at":"2014-10-10T06:04:38Z","updated_at":"2014-10-11T07:21:18Z","pushed_at":"2014-10-13T03:37:13Z","git_url":"git://github.com/danschultz/TellATale.git","ssh_url":"git@github.com:danschultz/TellATale.git","clone_url":"https://github.com/danschultz/TellATale.git","svn_url":"https://github.com/danschultz/TellATale","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"Swift","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":"TellATale:master","ref":"master","sha":"e198ebe87ebac194503e1979fc67d83a7ae8f27c","user":{"login":"TellATale","id":9045540,"avatar_url":"https://avatars.githubusercontent.com/u/9045540?v=2","gravatar_id":"","url":"https://api.github.com/users/TellATale","html_url":"https://github.com/TellATale","followers_url":"https://api.github.com/users/TellATale/followers","following_url":"https://api.github.com/users/TellATale/following{/other_user}","gists_url":"https://api.github.com/users/TellATale/gists{/gist_id}","starred_url":"https://api.github.com/users/TellATale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TellATale/subscriptions","organizations_url":"https://api.github.com/users/TellATale/orgs","repos_url":"https://api.github.com/users/TellATale/repos","events_url":"https://api.github.com/users/TellATale/events{/privacy}","received_events_url":"https://api.github.com/users/TellATale/received_events","type":"Organization","site_admin":false},"repo":{"id":24874919,"name":"TellATale","full_name":"TellATale/TellATale","owner":{"login":"TellATale","id":9045540,"avatar_url":"https://avatars.githubusercontent.com/u/9045540?v=2","gravatar_id":"","url":"https://api.github.com/users/TellATale","html_url":"https://github.com/TellATale","followers_url":"https://api.github.com/users/TellATale/followers","following_url":"https://api.github.com/users/TellATale/following{/other_user}","gists_url":"https://api.github.com/users/TellATale/gists{/gist_id}","starred_url":"https://api.github.com/users/TellATale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TellATale/subscriptions","organizations_url":"https://api.github.com/users/TellATale/orgs","repos_url":"https://api.github.com/users/TellATale/repos","events_url":"https://api.github.com/users/TellATale/events{/privacy}","received_events_url":"https://api.github.com/users/TellATale/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/TellATale/TellATale","description":"","fork":false,"url":"https://api.github.com/repos/TellATale/TellATale","forks_url":"https://api.github.com/repos/TellATale/TellATale/forks","keys_url":"https://api.github.com/repos/TellATale/TellATale/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TellATale/TellATale/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TellATale/TellATale/teams","hooks_url":"https://api.github.com/repos/TellATale/TellATale/hooks","issue_events_url":"https://api.github.com/repos/TellATale/TellATale/issues/events{/number}","events_url":"https://api.github.com/repos/TellATale/TellATale/events","assignees_url":"https://api.github.com/repos/TellATale/TellATale/assignees{/user}","branches_url":"https://api.github.com/repos/TellATale/TellATale/branches{/branch}","tags_url":"https://api.github.com/repos/TellATale/TellATale/tags","blobs_url":"https://api.github.com/repos/TellATale/TellATale/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TellATale/TellATale/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TellATale/TellATale/git/refs{/sha}","trees_url":"https://api.github.com/repos/TellATale/TellATale/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TellATale/TellATale/statuses/{sha}","languages_url":"https://api.github.com/repos/TellATale/TellATale/languages","stargazers_url":"https://api.github.com/repos/TellATale/TellATale/stargazers","contributors_url":"https://api.github.com/repos/TellATale/TellATale/contributors","subscribers_url":"https://api.github.com/repos/TellATale/TellATale/subscribers","subscription_url":"https://api.github.com/repos/TellATale/TellATale/subscription","commits_url":"https://api.github.com/repos/TellATale/TellATale/commits{/sha}","git_commits_url":"https://api.github.com/repos/TellATale/TellATale/git/commits{/sha}","comments_url":"https://api.github.com/repos/TellATale/TellATale/comments{/number}","issue_comment_url":"https://api.github.com/repos/TellATale/TellATale/issues/comments/{number}","contents_url":"https://api.github.com/repos/TellATale/TellATale/contents/{+path}","compare_url":"https://api.github.com/repos/TellATale/TellATale/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TellATale/TellATale/merges","archive_url":"https://api.github.com/repos/TellATale/TellATale/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TellATale/TellATale/downloads","issues_url":"https://api.github.com/repos/TellATale/TellATale/issues{/number}","pulls_url":"https://api.github.com/repos/TellATale/TellATale/pulls{/number}","milestones_url":"https://api.github.com/repos/TellATale/TellATale/milestones{/number}","notifications_url":"https://api.github.com/repos/TellATale/TellATale/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TellATale/TellATale/labels{/name}","releases_url":"https://api.github.com/repos/TellATale/TellATale/releases{/id}","created_at":"2014-10-07T03:07:35Z","updated_at":"2014-10-10T05:54:44Z","pushed_at":"2014-10-12T22:47:29Z","git_url":"git://github.com/TellATale/TellATale.git","ssh_url":"git@github.com:TellATale/TellATale.git","clone_url":"https://github.com/TellATale/TellATale.git","svn_url":"https://github.com/TellATale/TellATale","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"Swift","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/TellATale/TellATale/pulls/8"},"html":{"href":"https://github.com/TellATale/TellATale/pull/8"},"issue":{"href":"https://api.github.com/repos/TellATale/TellATale/issues/8"},"comments":{"href":"https://api.github.com/repos/TellATale/TellATale/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/TellATale/TellATale/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/TellATale/TellATale/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/TellATale/TellATale/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/TellATale/TellATale/statuses/2b2c2ade09e68d30a23b7f4161f0b177a9fdd4d5"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":2,"additions":76,"deletions":11,"changed_files":5}}