{"action":"opened","number":21,"pull_request":{"url":"https://api.github.com/repos/prismicio/python-kit/pulls/21","id":39764685,"html_url":"https://github.com/prismicio/python-kit/pull/21","diff_url":"https://github.com/prismicio/python-kit/pull/21.diff","patch_url":"https://github.com/prismicio/python-kit/pull/21.patch","issue_url":"https://api.github.com/repos/prismicio/python-kit/issues/21","number":21,"state":"open","locked":false,"title":"Fix bug with fulltext predicate where document is not queriable","user":{"login":"fjorgemota","id":529864,"avatar_url":"https://avatars.githubusercontent.com/u/529864?v=3","gravatar_id":"","url":"https://api.github.com/users/fjorgemota","html_url":"https://github.com/fjorgemota","followers_url":"https://api.github.com/users/fjorgemota/followers","following_url":"https://api.github.com/users/fjorgemota/following{/other_user}","gists_url":"https://api.github.com/users/fjorgemota/gists{/gist_id}","starred_url":"https://api.github.com/users/fjorgemota/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fjorgemota/subscriptions","organizations_url":"https://api.github.com/users/fjorgemota/orgs","repos_url":"https://api.github.com/users/fjorgemota/repos","events_url":"https://api.github.com/users/fjorgemota/events{/privacy}","received_events_url":"https://api.github.com/users/fjorgemota/received_events","type":"User","site_admin":false},"body":"Fixes a strange bug with fulltext predicate where the following snippet emits an error:\r\n\r\n```fom.query(predicates.fulltext('document', 'anything')).submit()```\r\n\r\nThe error is something like this\r\n\r\n```HTTPError: Got an HTTP error 400 ({\"message\":\"[function fulltext(..)] unexpected value: should be a path  on line:1 col:59 in query '[[:d = fulltext(\\\"document\\\", \\\"any\\\")]]```\r\n\r\nAnd is caused because 'document' is being quoted because of this if condition.","created_at":"2015-07-12T16:40:46Z","updated_at":"2015-07-12T16:40:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/prismicio/python-kit/pulls/21/commits","review_comments_url":"https://api.github.com/repos/prismicio/python-kit/pulls/21/comments","review_comment_url":"https://api.github.com/repos/prismicio/python-kit/pulls/comments{/number}","comments_url":"https://api.github.com/repos/prismicio/python-kit/issues/21/comments","statuses_url":"https://api.github.com/repos/prismicio/python-kit/statuses/702875efd58174cd809d0b814cb5dcf5b2b17e7a","head":{"label":"fjorgemota:patch-1","ref":"patch-1","sha":"702875efd58174cd809d0b814cb5dcf5b2b17e7a","user":{"login":"fjorgemota","id":529864,"avatar_url":"https://avatars.githubusercontent.com/u/529864?v=3","gravatar_id":"","url":"https://api.github.com/users/fjorgemota","html_url":"https://github.com/fjorgemota","followers_url":"https://api.github.com/users/fjorgemota/followers","following_url":"https://api.github.com/users/fjorgemota/following{/other_user}","gists_url":"https://api.github.com/users/fjorgemota/gists{/gist_id}","starred_url":"https://api.github.com/users/fjorgemota/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fjorgemota/subscriptions","organizations_url":"https://api.github.com/users/fjorgemota/orgs","repos_url":"https://api.github.com/users/fjorgemota/repos","events_url":"https://api.github.com/users/fjorgemota/events{/privacy}","received_events_url":"https://api.github.com/users/fjorgemota/received_events","type":"User","site_admin":false},"repo":{"id":31444585,"name":"python-kit","full_name":"fjorgemota/python-kit","owner":{"login":"fjorgemota","id":529864,"avatar_url":"https://avatars.githubusercontent.com/u/529864?v=3","gravatar_id":"","url":"https://api.github.com/users/fjorgemota","html_url":"https://github.com/fjorgemota","followers_url":"https://api.github.com/users/fjorgemota/followers","following_url":"https://api.github.com/users/fjorgemota/following{/other_user}","gists_url":"https://api.github.com/users/fjorgemota/gists{/gist_id}","starred_url":"https://api.github.com/users/fjorgemota/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fjorgemota/subscriptions","organizations_url":"https://api.github.com/users/fjorgemota/orgs","repos_url":"https://api.github.com/users/fjorgemota/repos","events_url":"https://api.github.com/users/fjorgemota/events{/privacy}","received_events_url":"https://api.github.com/users/fjorgemota/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/fjorgemota/python-kit","description":"Development kit for the Python language","fork":true,"url":"https://api.github.com/repos/fjorgemota/python-kit","forks_url":"https://api.github.com/repos/fjorgemota/python-kit/forks","keys_url":"https://api.github.com/repos/fjorgemota/python-kit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fjorgemota/python-kit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fjorgemota/python-kit/teams","hooks_url":"https://api.github.com/repos/fjorgemota/python-kit/hooks","issue_events_url":"https://api.github.com/repos/fjorgemota/python-kit/issues/events{/number}","events_url":"https://api.github.com/repos/fjorgemota/python-kit/events","assignees_url":"https://api.github.com/repos/fjorgemota/python-kit/assignees{/user}","branches_url":"https://api.github.com/repos/fjorgemota/python-kit/branches{/branch}","tags_url":"https://api.github.com/repos/fjorgemota/python-kit/tags","blobs_url":"https://api.github.com/repos/fjorgemota/python-kit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fjorgemota/python-kit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fjorgemota/python-kit/git/refs{/sha}","trees_url":"https://api.github.com/repos/fjorgemota/python-kit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fjorgemota/python-kit/statuses/{sha}","languages_url":"https://api.github.com/repos/fjorgemota/python-kit/languages","stargazers_url":"https://api.github.com/repos/fjorgemota/python-kit/stargazers","contributors_url":"https://api.github.com/repos/fjorgemota/python-kit/contributors","subscribers_url":"https://api.github.com/repos/fjorgemota/python-kit/subscribers","subscription_url":"https://api.github.com/repos/fjorgemota/python-kit/subscription","commits_url":"https://api.github.com/repos/fjorgemota/python-kit/commits{/sha}","git_commits_url":"https://api.github.com/repos/fjorgemota/python-kit/git/commits{/sha}","comments_url":"https://api.github.com/repos/fjorgemota/python-kit/comments{/number}","issue_comment_url":"https://api.github.com/repos/fjorgemota/python-kit/issues/comments{/number}","contents_url":"https://api.github.com/repos/fjorgemota/python-kit/contents/{+path}","compare_url":"https://api.github.com/repos/fjorgemota/python-kit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fjorgemota/python-kit/merges","archive_url":"https://api.github.com/repos/fjorgemota/python-kit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fjorgemota/python-kit/downloads","issues_url":"https://api.github.com/repos/fjorgemota/python-kit/issues{/number}","pulls_url":"https://api.github.com/repos/fjorgemota/python-kit/pulls{/number}","milestones_url":"https://api.github.com/repos/fjorgemota/python-kit/milestones{/number}","notifications_url":"https://api.github.com/repos/fjorgemota/python-kit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fjorgemota/python-kit/labels{/name}","releases_url":"https://api.github.com/repos/fjorgemota/python-kit/releases{/id}","created_at":"2015-02-27T23:57:26Z","updated_at":"2015-02-27T23:57:27Z","pushed_at":"2015-07-12T16:40:28Z","git_url":"git://github.com/fjorgemota/python-kit.git","ssh_url":"git@github.com:fjorgemota/python-kit.git","clone_url":"https://github.com/fjorgemota/python-kit.git","svn_url":"https://github.com/fjorgemota/python-kit","homepage":"https://developers.prismic.io","size":466,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"prismicio:master","ref":"master","sha":"144aae367ab23c353315af8a45125257cd6cf162","user":{"login":"prismicio","id":4621061,"avatar_url":"https://avatars.githubusercontent.com/u/4621061?v=3","gravatar_id":"","url":"https://api.github.com/users/prismicio","html_url":"https://github.com/prismicio","followers_url":"https://api.github.com/users/prismicio/followers","following_url":"https://api.github.com/users/prismicio/following{/other_user}","gists_url":"https://api.github.com/users/prismicio/gists{/gist_id}","starred_url":"https://api.github.com/users/prismicio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prismicio/subscriptions","organizations_url":"https://api.github.com/users/prismicio/orgs","repos_url":"https://api.github.com/users/prismicio/repos","events_url":"https://api.github.com/users/prismicio/events{/privacy}","received_events_url":"https://api.github.com/users/prismicio/received_events","type":"Organization","site_admin":false},"repo":{"id":11813663,"name":"python-kit","full_name":"prismicio/python-kit","owner":{"login":"prismicio","id":4621061,"avatar_url":"https://avatars.githubusercontent.com/u/4621061?v=3","gravatar_id":"","url":"https://api.github.com/users/prismicio","html_url":"https://github.com/prismicio","followers_url":"https://api.github.com/users/prismicio/followers","following_url":"https://api.github.com/users/prismicio/following{/other_user}","gists_url":"https://api.github.com/users/prismicio/gists{/gist_id}","starred_url":"https://api.github.com/users/prismicio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prismicio/subscriptions","organizations_url":"https://api.github.com/users/prismicio/orgs","repos_url":"https://api.github.com/users/prismicio/repos","events_url":"https://api.github.com/users/prismicio/events{/privacy}","received_events_url":"https://api.github.com/users/prismicio/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/prismicio/python-kit","description":"Development kit for the Python language","fork":false,"url":"https://api.github.com/repos/prismicio/python-kit","forks_url":"https://api.github.com/repos/prismicio/python-kit/forks","keys_url":"https://api.github.com/repos/prismicio/python-kit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/prismicio/python-kit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/prismicio/python-kit/teams","hooks_url":"https://api.github.com/repos/prismicio/python-kit/hooks","issue_events_url":"https://api.github.com/repos/prismicio/python-kit/issues/events{/number}","events_url":"https://api.github.com/repos/prismicio/python-kit/events","assignees_url":"https://api.github.com/repos/prismicio/python-kit/assignees{/user}","branches_url":"https://api.github.com/repos/prismicio/python-kit/branches{/branch}","tags_url":"https://api.github.com/repos/prismicio/python-kit/tags","blobs_url":"https://api.github.com/repos/prismicio/python-kit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/prismicio/python-kit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/prismicio/python-kit/git/refs{/sha}","trees_url":"https://api.github.com/repos/prismicio/python-kit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/prismicio/python-kit/statuses/{sha}","languages_url":"https://api.github.com/repos/prismicio/python-kit/languages","stargazers_url":"https://api.github.com/repos/prismicio/python-kit/stargazers","contributors_url":"https://api.github.com/repos/prismicio/python-kit/contributors","subscribers_url":"https://api.github.com/repos/prismicio/python-kit/subscribers","subscription_url":"https://api.github.com/repos/prismicio/python-kit/subscription","commits_url":"https://api.github.com/repos/prismicio/python-kit/commits{/sha}","git_commits_url":"https://api.github.com/repos/prismicio/python-kit/git/commits{/sha}","comments_url":"https://api.github.com/repos/prismicio/python-kit/comments{/number}","issue_comment_url":"https://api.github.com/repos/prismicio/python-kit/issues/comments{/number}","contents_url":"https://api.github.com/repos/prismicio/python-kit/contents/{+path}","compare_url":"https://api.github.com/repos/prismicio/python-kit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/prismicio/python-kit/merges","archive_url":"https://api.github.com/repos/prismicio/python-kit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/prismicio/python-kit/downloads","issues_url":"https://api.github.com/repos/prismicio/python-kit/issues{/number}","pulls_url":"https://api.github.com/repos/prismicio/python-kit/pulls{/number}","milestones_url":"https://api.github.com/repos/prismicio/python-kit/milestones{/number}","notifications_url":"https://api.github.com/repos/prismicio/python-kit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/prismicio/python-kit/labels{/name}","releases_url":"https://api.github.com/repos/prismicio/python-kit/releases{/id}","created_at":"2013-08-01T10:02:41Z","updated_at":"2015-06-05T17:32:27Z","pushed_at":"2015-03-31T09:33:44Z","git_url":"git://github.com/prismicio/python-kit.git","ssh_url":"git@github.com:prismicio/python-kit.git","clone_url":"https://github.com/prismicio/python-kit.git","svn_url":"https://github.com/prismicio/python-kit","homepage":"https://developers.prismic.io","size":1114,"stargazers_count":9,"watchers_count":9,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":9,"mirror_url":null,"open_issues_count":2,"forks":9,"open_issues":2,"watchers":9,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/prismicio/python-kit/pulls/21"},"html":{"href":"https://github.com/prismicio/python-kit/pull/21"},"issue":{"href":"https://api.github.com/repos/prismicio/python-kit/issues/21"},"comments":{"href":"https://api.github.com/repos/prismicio/python-kit/issues/21/comments"},"review_comments":{"href":"https://api.github.com/repos/prismicio/python-kit/pulls/21/comments"},"review_comment":{"href":"https://api.github.com/repos/prismicio/python-kit/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/prismicio/python-kit/pulls/21/commits"},"statuses":{"href":"https://api.github.com/repos/prismicio/python-kit/statuses/702875efd58174cd809d0b814cb5dcf5b2b17e7a"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":1,"deletions":1,"changed_files":1}}