{"action":"created","comment":{"url":"https://api.github.com/repos/ayende/ravendb/pulls/comments/80387228","id":80387228,"diff_hunk":"@@ -0,0 +1,68 @@\n+﻿using System;\n+using System.Collections.Generic;\n+using System.Linq;\n+using System.Net.Http;\n+using System.Text;\n+using Raven.Abstractions.Data;\n+using Raven.Client.Connection;\n+using Raven.Client.Data;\n+using Raven.Client.Data.Queries;\n+using Raven.Client.Document;\n+using Raven.Client.Http;\n+using Raven.Client.Json;\n+using Sparrow.Json;\n+\n+namespace Raven.Client.Documents.Commands\n+{\n+    public class QueryCommand : RavenCommand<QueryResult>\n+    {\n+        public string index;\n+        public IndexQuery indexQuery;\n+        public DocumentConvention _convention;\n+        public string[] includes;\n+        public bool MetadataOnly;\n+        public bool IndexEntriesOnly;\n+\n+        public JsonOperationContext Context;\n+\n+        public override HttpRequestMessage CreateRequest(ServerNode node, out string url)\n+        {\n+            var method = (indexQuery.Query == null || indexQuery.Query.Length <= _convention.MaxLengthOfQueryUsingGetUrl)\n+                ? HttpMethod.Get : HttpMethod.Post;\n+\n+            var request = new HttpRequestMessage\n+            {\n+                Method = method\n+            };\n+\n+            var indexQueryUrl = indexQuery.GetIndexQueryUrl(index, \"queries\", includeQuery: method == HttpMethod.Get);","path":"src/Raven.Client/Documents/Commands/QueryCommand.cs","position":38,"original_position":38,"commit_id":"3a94327494db5c94c28aca663c4be4b87f78a4aa","original_commit_id":"6bef3727006cb275270d8f1149af70f3c88b9e81","user":{"login":"ayende","id":116915,"avatar_url":"https://avatars.githubusercontent.com/u/116915?v=3","gravatar_id":"","url":"https://api.github.com/users/ayende","html_url":"https://github.com/ayende","followers_url":"https://api.github.com/users/ayende/followers","following_url":"https://api.github.com/users/ayende/following{/other_user}","gists_url":"https://api.github.com/users/ayende/gists{/gist_id}","starred_url":"https://api.github.com/users/ayende/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ayende/subscriptions","organizations_url":"https://api.github.com/users/ayende/orgs","repos_url":"https://api.github.com/users/ayende/repos","events_url":"https://api.github.com/users/ayende/events{/privacy}","received_events_url":"https://api.github.com/users/ayende/received_events","type":"User","site_admin":false},"body":"You need to write the query to the request if it is too big.","created_at":"2016-09-25T17:27:29Z","updated_at":"2016-09-25T17:27:29Z","html_url":"https://github.com/ayende/ravendb/pull/4469#discussion_r80387228","pull_request_url":"https://api.github.com/repos/ayende/ravendb/pulls/4469","_links":{"self":{"href":"https://api.github.com/repos/ayende/ravendb/pulls/comments/80387228"},"html":{"href":"https://github.com/ayende/ravendb/pull/4469#discussion_r80387228"},"pull_request":{"href":"https://api.github.com/repos/ayende/ravendb/pulls/4469"}}},"pull_request":{"url":"https://api.github.com/repos/ayende/ravendb/pulls/4469","id":86650628,"html_url":"https://github.com/ayende/ravendb/pull/4469","diff_url":"https://github.com/ayende/ravendb/pull/4469.diff","patch_url":"https://github.com/ayende/ravendb/pull/4469.patch","issue_url":"https://api.github.com/repos/ayende/ravendb/issues/4469","number":4469,"state":"open","locked":false,"title":"RavenDB-5243 V4.0 client long runnign task - Implement Query (WIP)","user":{"login":"iftahbe","id":12386147,"avatar_url":"https://avatars.githubusercontent.com/u/12386147?v=3","gravatar_id":"","url":"https://api.github.com/users/iftahbe","html_url":"https://github.com/iftahbe","followers_url":"https://api.github.com/users/iftahbe/followers","following_url":"https://api.github.com/users/iftahbe/following{/other_user}","gists_url":"https://api.github.com/users/iftahbe/gists{/gist_id}","starred_url":"https://api.github.com/users/iftahbe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iftahbe/subscriptions","organizations_url":"https://api.github.com/users/iftahbe/orgs","repos_url":"https://api.github.com/users/iftahbe/repos","events_url":"https://api.github.com/users/iftahbe/events{/privacy}","received_events_url":"https://api.github.com/users/iftahbe/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-09-25T13:54:45Z","updated_at":"2016-09-25T17:30:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1fa4d24a6cfb5f98965188d9897dbf5dba991171","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/ayende/ravendb/pulls/4469/commits","review_comments_url":"https://api.github.com/repos/ayende/ravendb/pulls/4469/comments","review_comment_url":"https://api.github.com/repos/ayende/ravendb/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ayende/ravendb/issues/4469/comments","statuses_url":"https://api.github.com/repos/ayende/ravendb/statuses/3a94327494db5c94c28aca663c4be4b87f78a4aa","head":{"label":"iftahbe:v4.0","ref":"v4.0","sha":"3a94327494db5c94c28aca663c4be4b87f78a4aa","user":{"login":"iftahbe","id":12386147,"avatar_url":"https://avatars.githubusercontent.com/u/12386147?v=3","gravatar_id":"","url":"https://api.github.com/users/iftahbe","html_url":"https://github.com/iftahbe","followers_url":"https://api.github.com/users/iftahbe/followers","following_url":"https://api.github.com/users/iftahbe/following{/other_user}","gists_url":"https://api.github.com/users/iftahbe/gists{/gist_id}","starred_url":"https://api.github.com/users/iftahbe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iftahbe/subscriptions","organizations_url":"https://api.github.com/users/iftahbe/orgs","repos_url":"https://api.github.com/users/iftahbe/repos","events_url":"https://api.github.com/users/iftahbe/events{/privacy}","received_events_url":"https://api.github.com/users/iftahbe/received_events","type":"User","site_admin":false},"repo":{"id":53836398,"name":"ravendb","full_name":"iftahbe/ravendb","owner":{"login":"iftahbe","id":12386147,"avatar_url":"https://avatars.githubusercontent.com/u/12386147?v=3","gravatar_id":"","url":"https://api.github.com/users/iftahbe","html_url":"https://github.com/iftahbe","followers_url":"https://api.github.com/users/iftahbe/followers","following_url":"https://api.github.com/users/iftahbe/following{/other_user}","gists_url":"https://api.github.com/users/iftahbe/gists{/gist_id}","starred_url":"https://api.github.com/users/iftahbe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iftahbe/subscriptions","organizations_url":"https://api.github.com/users/iftahbe/orgs","repos_url":"https://api.github.com/users/iftahbe/repos","events_url":"https://api.github.com/users/iftahbe/events{/privacy}","received_events_url":"https://api.github.com/users/iftahbe/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/iftahbe/ravendb","description":"A linq enabled document database for .NET","fork":true,"url":"https://api.github.com/repos/iftahbe/ravendb","forks_url":"https://api.github.com/repos/iftahbe/ravendb/forks","keys_url":"https://api.github.com/repos/iftahbe/ravendb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/iftahbe/ravendb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/iftahbe/ravendb/teams","hooks_url":"https://api.github.com/repos/iftahbe/ravendb/hooks","issue_events_url":"https://api.github.com/repos/iftahbe/ravendb/issues/events{/number}","events_url":"https://api.github.com/repos/iftahbe/ravendb/events","assignees_url":"https://api.github.com/repos/iftahbe/ravendb/assignees{/user}","branches_url":"https://api.github.com/repos/iftahbe/ravendb/branches{/branch}","tags_url":"https://api.github.com/repos/iftahbe/ravendb/tags","blobs_url":"https://api.github.com/repos/iftahbe/ravendb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/iftahbe/ravendb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/iftahbe/ravendb/git/refs{/sha}","trees_url":"https://api.github.com/repos/iftahbe/ravendb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/iftahbe/ravendb/statuses/{sha}","languages_url":"https://api.github.com/repos/iftahbe/ravendb/languages","stargazers_url":"https://api.github.com/repos/iftahbe/ravendb/stargazers","contributors_url":"https://api.github.com/repos/iftahbe/ravendb/contributors","subscribers_url":"https://api.github.com/repos/iftahbe/ravendb/subscribers","subscription_url":"https://api.github.com/repos/iftahbe/ravendb/subscription","commits_url":"https://api.github.com/repos/iftahbe/ravendb/commits{/sha}","git_commits_url":"https://api.github.com/repos/iftahbe/ravendb/git/commits{/sha}","comments_url":"https://api.github.com/repos/iftahbe/ravendb/comments{/number}","issue_comment_url":"https://api.github.com/repos/iftahbe/ravendb/issues/comments{/number}","contents_url":"https://api.github.com/repos/iftahbe/ravendb/contents/{+path}","compare_url":"https://api.github.com/repos/iftahbe/ravendb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/iftahbe/ravendb/merges","archive_url":"https://api.github.com/repos/iftahbe/ravendb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/iftahbe/ravendb/downloads","issues_url":"https://api.github.com/repos/iftahbe/ravendb/issues{/number}","pulls_url":"https://api.github.com/repos/iftahbe/ravendb/pulls{/number}","milestones_url":"https://api.github.com/repos/iftahbe/ravendb/milestones{/number}","notifications_url":"https://api.github.com/repos/iftahbe/ravendb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/iftahbe/ravendb/labels{/name}","releases_url":"https://api.github.com/repos/iftahbe/ravendb/releases{/id}","deployments_url":"https://api.github.com/repos/iftahbe/ravendb/deployments","created_at":"2016-03-14T07:41:28Z","updated_at":"2016-03-14T07:41:45Z","pushed_at":"2016-09-25T13:54:01Z","git_url":"git://github.com/iftahbe/ravendb.git","ssh_url":"git@github.com:iftahbe/ravendb.git","clone_url":"https://github.com/iftahbe/ravendb.git","svn_url":"https://github.com/iftahbe/ravendb","homepage":"http://ayende.com/Blog/","size":373758,"stargazers_count":0,"watchers_count":0,"language":"C#","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":"ayende:v4.0","ref":"v4.0","sha":"f9c7b94210b538871bd2daf8ca54f8ddeef123b1","user":{"login":"ayende","id":116915,"avatar_url":"https://avatars.githubusercontent.com/u/116915?v=3","gravatar_id":"","url":"https://api.github.com/users/ayende","html_url":"https://github.com/ayende","followers_url":"https://api.github.com/users/ayende/followers","following_url":"https://api.github.com/users/ayende/following{/other_user}","gists_url":"https://api.github.com/users/ayende/gists{/gist_id}","starred_url":"https://api.github.com/users/ayende/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ayende/subscriptions","organizations_url":"https://api.github.com/users/ayende/orgs","repos_url":"https://api.github.com/users/ayende/repos","events_url":"https://api.github.com/users/ayende/events{/privacy}","received_events_url":"https://api.github.com/users/ayende/received_events","type":"User","site_admin":false},"repo":{"id":904641,"name":"ravendb","full_name":"ayende/ravendb","owner":{"login":"ayende","id":116915,"avatar_url":"https://avatars.githubusercontent.com/u/116915?v=3","gravatar_id":"","url":"https://api.github.com/users/ayende","html_url":"https://github.com/ayende","followers_url":"https://api.github.com/users/ayende/followers","following_url":"https://api.github.com/users/ayende/following{/other_user}","gists_url":"https://api.github.com/users/ayende/gists{/gist_id}","starred_url":"https://api.github.com/users/ayende/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ayende/subscriptions","organizations_url":"https://api.github.com/users/ayende/orgs","repos_url":"https://api.github.com/users/ayende/repos","events_url":"https://api.github.com/users/ayende/events{/privacy}","received_events_url":"https://api.github.com/users/ayende/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ayende/ravendb","description":"A linq enabled document database for .NET","fork":true,"url":"https://api.github.com/repos/ayende/ravendb","forks_url":"https://api.github.com/repos/ayende/ravendb/forks","keys_url":"https://api.github.com/repos/ayende/ravendb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ayende/ravendb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ayende/ravendb/teams","hooks_url":"https://api.github.com/repos/ayende/ravendb/hooks","issue_events_url":"https://api.github.com/repos/ayende/ravendb/issues/events{/number}","events_url":"https://api.github.com/repos/ayende/ravendb/events","assignees_url":"https://api.github.com/repos/ayende/ravendb/assignees{/user}","branches_url":"https://api.github.com/repos/ayende/ravendb/branches{/branch}","tags_url":"https://api.github.com/repos/ayende/ravendb/tags","blobs_url":"https://api.github.com/repos/ayende/ravendb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ayende/ravendb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ayende/ravendb/git/refs{/sha}","trees_url":"https://api.github.com/repos/ayende/ravendb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ayende/ravendb/statuses/{sha}","languages_url":"https://api.github.com/repos/ayende/ravendb/languages","stargazers_url":"https://api.github.com/repos/ayende/ravendb/stargazers","contributors_url":"https://api.github.com/repos/ayende/ravendb/contributors","subscribers_url":"https://api.github.com/repos/ayende/ravendb/subscribers","subscription_url":"https://api.github.com/repos/ayende/ravendb/subscription","commits_url":"https://api.github.com/repos/ayende/ravendb/commits{/sha}","git_commits_url":"https://api.github.com/repos/ayende/ravendb/git/commits{/sha}","comments_url":"https://api.github.com/repos/ayende/ravendb/comments{/number}","issue_comment_url":"https://api.github.com/repos/ayende/ravendb/issues/comments{/number}","contents_url":"https://api.github.com/repos/ayende/ravendb/contents/{+path}","compare_url":"https://api.github.com/repos/ayende/ravendb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ayende/ravendb/merges","archive_url":"https://api.github.com/repos/ayende/ravendb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ayende/ravendb/downloads","issues_url":"https://api.github.com/repos/ayende/ravendb/issues{/number}","pulls_url":"https://api.github.com/repos/ayende/ravendb/pulls{/number}","milestones_url":"https://api.github.com/repos/ayende/ravendb/milestones{/number}","notifications_url":"https://api.github.com/repos/ayende/ravendb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ayende/ravendb/labels{/name}","releases_url":"https://api.github.com/repos/ayende/ravendb/releases{/id}","deployments_url":"https://api.github.com/repos/ayende/ravendb/deployments","created_at":"2010-09-12T05:30:13Z","updated_at":"2016-09-22T21:46:02Z","pushed_at":"2016-09-25T14:51:31Z","git_url":"git://github.com/ayende/ravendb.git","ssh_url":"git@github.com:ayende/ravendb.git","clone_url":"https://github.com/ayende/ravendb.git","svn_url":"https://github.com/ayende/ravendb","homepage":"http://ayende.com/Blog/","size":501622,"stargazers_count":285,"watchers_count":285,"language":"C#","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":146,"mirror_url":null,"open_issues_count":5,"forks":146,"open_issues":5,"watchers":285,"default_branch":"v3.5"}},"_links":{"self":{"href":"https://api.github.com/repos/ayende/ravendb/pulls/4469"},"html":{"href":"https://github.com/ayende/ravendb/pull/4469"},"issue":{"href":"https://api.github.com/repos/ayende/ravendb/issues/4469"},"comments":{"href":"https://api.github.com/repos/ayende/ravendb/issues/4469/comments"},"review_comments":{"href":"https://api.github.com/repos/ayende/ravendb/pulls/4469/comments"},"review_comment":{"href":"https://api.github.com/repos/ayende/ravendb/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ayende/ravendb/pulls/4469/commits"},"statuses":{"href":"https://api.github.com/repos/ayende/ravendb/statuses/3a94327494db5c94c28aca663c4be4b87f78a4aa"}}}}
{"actor":{"display_login":"ayende"}}