{"action":"created","issue":{"url":"https://api.github.com/repos/puppetlabs/puppetdb/issues/1435","labels_url":"https://api.github.com/repos/puppetlabs/puppetdb/issues/1435/labels{/name}","comments_url":"https://api.github.com/repos/puppetlabs/puppetdb/issues/1435/comments","events_url":"https://api.github.com/repos/puppetlabs/puppetdb/issues/1435/events","html_url":"https://github.com/puppetlabs/puppetdb/pull/1435","id":84831538,"number":1435,"title":"(PDB-1536) Support POST queries for nodes","user":{"login":"senior","id":215910,"avatar_url":"https://avatars.githubusercontent.com/u/215910?v=3","gravatar_id":"","url":"https://api.github.com/users/senior","html_url":"https://github.com/senior","followers_url":"https://api.github.com/users/senior/followers","following_url":"https://api.github.com/users/senior/following{/other_user}","gists_url":"https://api.github.com/users/senior/gists{/gist_id}","starred_url":"https://api.github.com/users/senior/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/senior/subscriptions","organizations_url":"https://api.github.com/users/senior/orgs","repos_url":"https://api.github.com/users/senior/repos","events_url":"https://api.github.com/users/senior/events{/privacy}","received_events_url":"https://api.github.com/users/senior/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-06-04T00:18:36Z","updated_at":"2015-06-04T23:23:30Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/puppetlabs/puppetdb/pulls/1435","html_url":"https://github.com/puppetlabs/puppetdb/pull/1435","diff_url":"https://github.com/puppetlabs/puppetdb/pull/1435.diff","patch_url":"https://github.com/puppetlabs/puppetdb/pull/1435.patch"},"body":"Webservers have limits on the length of GET request. This commit adds to\r\nthe nodes endpoint (root of the endpoint only) the ability to instead\r\nissue the query as a POST, with a JSON document representation of the\r\nquery as the body. This new feature needs to be added to all endpoints\r\neventually, but the one where we see this problem the most is the root\r\nof the nodes endpoint, so this commit starts there. This patch puts new\r\ncode in place to centralize handling of the PuppetDB query and related\r\nparameters so that all endpoints can share the same code for handling\r\nGETs and POSTs of queries. Currently only the nodes endpoint calls this\r\nnew centralized code. A bigger refactor will need to be made in the\r\nfuture to switch other endpoints over to the new code."},"comment":{"url":"https://api.github.com/repos/puppetlabs/puppetdb/issues/comments/109091176","html_url":"https://github.com/puppetlabs/puppetdb/pull/1435#issuecomment-109091176","issue_url":"https://api.github.com/repos/puppetlabs/puppetdb/issues/1435","id":109091176,"user":{"login":"pljenkinsro","id":6546951,"avatar_url":"https://avatars.githubusercontent.com/u/6546951?v=3","gravatar_id":"","url":"https://api.github.com/users/pljenkinsro","html_url":"https://github.com/pljenkinsro","followers_url":"https://api.github.com/users/pljenkinsro/followers","following_url":"https://api.github.com/users/pljenkinsro/following{/other_user}","gists_url":"https://api.github.com/users/pljenkinsro/gists{/gist_id}","starred_url":"https://api.github.com/users/pljenkinsro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pljenkinsro/subscriptions","organizations_url":"https://api.github.com/users/pljenkinsro/orgs","repos_url":"https://api.github.com/users/pljenkinsro/repos","events_url":"https://api.github.com/users/pljenkinsro/events{/privacy}","received_events_url":"https://api.github.com/users/pljenkinsro/received_events","type":"User","site_admin":false},"created_at":"2015-06-04T23:23:30Z","updated_at":"2015-06-04T23:23:30Z","body":"Test PASSed.\nRefer to this link for build results (access rights to CI server needed): \nhttps://jenkins.puppetlabs.com/job/platform_puppetdb_intn-sys_pr/1390/"}}