{"action":"created","comment":{"url":"https://api.github.com/repos/influxdb/influxdb/pulls/comments/24060197","id":24060197,"diff_hunk":"@@ -1520,6 +1520,112 @@ func TestHandler_serveShowTagValues(t *testing.T) {\n \t}\n }\n \n+func TestHandler_serveShowFieldKeys(t *testing.T) {\n+\tsrvr := OpenServer(NewMessagingClient())\n+\tsrvr.CreateDatabase(\"foo\")\n+\tsrvr.CreateRetentionPolicy(\"foo\", influxdb.NewRetentionPolicy(\"bar\"))\n+\tsrvr.SetDefaultRetentionPolicy(\"foo\", \"bar\")\n+\ts := NewHTTPServer(srvr)\n+\tdefer s.Close()\n+\n+\tstatus, body := MustHTTP(\"POST\", s.URL+`/write`, nil, nil, `{\"database\" : \"foo\", \"retentionPolicy\" : \"bar\", \"points\": [\n+\t\t{\"name\": \"cpu\", \"tags\": {\"host\": \"server01\"},\"timestamp\": \"2009-11-10T23:00:00Z\",\"values\": {\"field1\": 100}},\n+\t\t{\"name\": \"cpu\", \"tags\": {\"host\": \"server01\", \"region\": \"uswest\"},\"timestamp\": \"2009-11-10T23:00:00Z\",\"values\": {\"field1\": 200, \"field2\": 300, \"field3\": 400}},\n+\t\t{\"name\": \"cpu\", \"tags\": {\"host\": \"server01\", \"region\": \"useast\"},\"timestamp\": \"2009-11-10T23:00:00Z\",\"values\": {\"field1\": 200, \"field2\": 300, \"field3\": 400}},\n+\t\t{\"name\": \"cpu\", \"tags\": {\"host\": \"server02\", \"region\": \"useast\"},\"timestamp\": \"2009-11-10T23:00:00Z\",\"values\": {\"field1\": 200, \"field2\": 300, \"field3\": 400}},\n+\t\t{\"name\": \"gpu\", \"tags\": {\"host\": \"server01\", \"region\": \"useast\"},\"timestamp\": \"2009-11-10T23:00:00Z\",\"values\": {\"field4\": 200, \"field5\": 300}}\n+\t\t]}`)\n+\n+\tif status != http.StatusOK {\n+\t\tt.Log(body)\n+\t\tt.Fatalf(\"unexpected status after write: %d\", status)","path":"httpd/handler_test.go","position":22,"original_position":22,"commit_id":"b75a7f3f2bf5e43746ba3d439ba09a8a50509ebc","original_commit_id":"b75a7f3f2bf5e43746ba3d439ba09a8a50509ebc","user":{"login":"otoolep","id":536312,"avatar_url":"https://avatars.githubusercontent.com/u/536312?v=3","gravatar_id":"","url":"https://api.github.com/users/otoolep","html_url":"https://github.com/otoolep","followers_url":"https://api.github.com/users/otoolep/followers","following_url":"https://api.github.com/users/otoolep/following{/other_user}","gists_url":"https://api.github.com/users/otoolep/gists{/gist_id}","starred_url":"https://api.github.com/users/otoolep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/otoolep/subscriptions","organizations_url":"https://api.github.com/users/otoolep/orgs","repos_url":"https://api.github.com/users/otoolep/repos","events_url":"https://api.github.com/users/otoolep/events{/privacy}","received_events_url":"https://api.github.com/users/otoolep/received_events","type":"User","site_admin":false},"body":"Scrap that -- you log it in the line immediately before it. I missed that. ","created_at":"2015-02-04T03:10:12Z","updated_at":"2015-02-04T03:10:12Z","html_url":"https://github.com/influxdb/influxdb/pull/1502#discussion_r24060197","pull_request_url":"https://api.github.com/repos/influxdb/influxdb/pulls/1502","_links":{"self":{"href":"https://api.github.com/repos/influxdb/influxdb/pulls/comments/24060197"},"html":{"href":"https://github.com/influxdb/influxdb/pull/1502#discussion_r24060197"},"pull_request":{"href":"https://api.github.com/repos/influxdb/influxdb/pulls/1502"}}},"pull_request":{"url":"https://api.github.com/repos/influxdb/influxdb/pulls/1502","id":28607288,"html_url":"https://github.com/influxdb/influxdb/pull/1502","diff_url":"https://github.com/influxdb/influxdb/pull/1502.diff","patch_url":"https://github.com/influxdb/influxdb/pull/1502.patch","issue_url":"https://api.github.com/repos/influxdb/influxdb/issues/1502","number":1502,"state":"open","locked":false,"title":"issue #1423: wire up show field keys","user":{"login":"dgnorton","id":209347,"avatar_url":"https://avatars.githubusercontent.com/u/209347?v=3","gravatar_id":"","url":"https://api.github.com/users/dgnorton","html_url":"https://github.com/dgnorton","followers_url":"https://api.github.com/users/dgnorton/followers","following_url":"https://api.github.com/users/dgnorton/following{/other_user}","gists_url":"https://api.github.com/users/dgnorton/gists{/gist_id}","starred_url":"https://api.github.com/users/dgnorton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dgnorton/subscriptions","organizations_url":"https://api.github.com/users/dgnorton/orgs","repos_url":"https://api.github.com/users/dgnorton/repos","events_url":"https://api.github.com/users/dgnorton/events{/privacy}","received_events_url":"https://api.github.com/users/dgnorton/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-02-04T01:54:58Z","updated_at":"2015-02-04T03:10:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"58d3f80b378349c40e56e76089f67ad6a469f343","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/influxdb/influxdb/pulls/1502/commits","review_comments_url":"https://api.github.com/repos/influxdb/influxdb/pulls/1502/comments","review_comment_url":"https://api.github.com/repos/influxdb/influxdb/pulls/comments/{number}","comments_url":"https://api.github.com/repos/influxdb/influxdb/issues/1502/comments","statuses_url":"https://api.github.com/repos/influxdb/influxdb/statuses/b75a7f3f2bf5e43746ba3d439ba09a8a50509ebc","head":{"label":"influxdb:show-field","ref":"show-field","sha":"b75a7f3f2bf5e43746ba3d439ba09a8a50509ebc","user":{"login":"influxdb","id":5713248,"avatar_url":"https://avatars.githubusercontent.com/u/5713248?v=3","gravatar_id":"","url":"https://api.github.com/users/influxdb","html_url":"https://github.com/influxdb","followers_url":"https://api.github.com/users/influxdb/followers","following_url":"https://api.github.com/users/influxdb/following{/other_user}","gists_url":"https://api.github.com/users/influxdb/gists{/gist_id}","starred_url":"https://api.github.com/users/influxdb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/influxdb/subscriptions","organizations_url":"https://api.github.com/users/influxdb/orgs","repos_url":"https://api.github.com/users/influxdb/repos","events_url":"https://api.github.com/users/influxdb/events{/privacy}","received_events_url":"https://api.github.com/users/influxdb/received_events","type":"Organization","site_admin":false},"repo":{"id":13124802,"name":"influxdb","full_name":"influxdb/influxdb","owner":{"login":"influxdb","id":5713248,"avatar_url":"https://avatars.githubusercontent.com/u/5713248?v=3","gravatar_id":"","url":"https://api.github.com/users/influxdb","html_url":"https://github.com/influxdb","followers_url":"https://api.github.com/users/influxdb/followers","following_url":"https://api.github.com/users/influxdb/following{/other_user}","gists_url":"https://api.github.com/users/influxdb/gists{/gist_id}","starred_url":"https://api.github.com/users/influxdb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/influxdb/subscriptions","organizations_url":"https://api.github.com/users/influxdb/orgs","repos_url":"https://api.github.com/users/influxdb/repos","events_url":"https://api.github.com/users/influxdb/events{/privacy}","received_events_url":"https://api.github.com/users/influxdb/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/influxdb/influxdb","description":"Scalable datastore for metrics, events, and real-time analytics","fork":false,"url":"https://api.github.com/repos/influxdb/influxdb","forks_url":"https://api.github.com/repos/influxdb/influxdb/forks","keys_url":"https://api.github.com/repos/influxdb/influxdb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/influxdb/influxdb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/influxdb/influxdb/teams","hooks_url":"https://api.github.com/repos/influxdb/influxdb/hooks","issue_events_url":"https://api.github.com/repos/influxdb/influxdb/issues/events{/number}","events_url":"https://api.github.com/repos/influxdb/influxdb/events","assignees_url":"https://api.github.com/repos/influxdb/influxdb/assignees{/user}","branches_url":"https://api.github.com/repos/influxdb/influxdb/branches{/branch}","tags_url":"https://api.github.com/repos/influxdb/influxdb/tags","blobs_url":"https://api.github.com/repos/influxdb/influxdb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/influxdb/influxdb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/influxdb/influxdb/git/refs{/sha}","trees_url":"https://api.github.com/repos/influxdb/influxdb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/influxdb/influxdb/statuses/{sha}","languages_url":"https://api.github.com/repos/influxdb/influxdb/languages","stargazers_url":"https://api.github.com/repos/influxdb/influxdb/stargazers","contributors_url":"https://api.github.com/repos/influxdb/influxdb/contributors","subscribers_url":"https://api.github.com/repos/influxdb/influxdb/subscribers","subscription_url":"https://api.github.com/repos/influxdb/influxdb/subscription","commits_url":"https://api.github.com/repos/influxdb/influxdb/commits{/sha}","git_commits_url":"https://api.github.com/repos/influxdb/influxdb/git/commits{/sha}","comments_url":"https://api.github.com/repos/influxdb/influxdb/comments{/number}","issue_comment_url":"https://api.github.com/repos/influxdb/influxdb/issues/comments/{number}","contents_url":"https://api.github.com/repos/influxdb/influxdb/contents/{+path}","compare_url":"https://api.github.com/repos/influxdb/influxdb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/influxdb/influxdb/merges","archive_url":"https://api.github.com/repos/influxdb/influxdb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/influxdb/influxdb/downloads","issues_url":"https://api.github.com/repos/influxdb/influxdb/issues{/number}","pulls_url":"https://api.github.com/repos/influxdb/influxdb/pulls{/number}","milestones_url":"https://api.github.com/repos/influxdb/influxdb/milestones{/number}","notifications_url":"https://api.github.com/repos/influxdb/influxdb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/influxdb/influxdb/labels{/name}","releases_url":"https://api.github.com/repos/influxdb/influxdb/releases{/id}","created_at":"2013-09-26T14:31:10Z","updated_at":"2015-02-04T02:23:05Z","pushed_at":"2015-02-04T03:07:18Z","git_url":"git://github.com/influxdb/influxdb.git","ssh_url":"git@github.com:influxdb/influxdb.git","clone_url":"https://github.com/influxdb/influxdb.git","svn_url":"https://github.com/influxdb/influxdb","homepage":"http://influxdb.com","size":24231,"stargazers_count":4400,"watchers_count":4400,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":335,"mirror_url":null,"open_issues_count":289,"forks":335,"open_issues":289,"watchers":4400,"default_branch":"master"}},"base":{"label":"influxdb:master","ref":"master","sha":"64115346716bca814dd6a568034df321aa60f45f","user":{"login":"influxdb","id":5713248,"avatar_url":"https://avatars.githubusercontent.com/u/5713248?v=3","gravatar_id":"","url":"https://api.github.com/users/influxdb","html_url":"https://github.com/influxdb","followers_url":"https://api.github.com/users/influxdb/followers","following_url":"https://api.github.com/users/influxdb/following{/other_user}","gists_url":"https://api.github.com/users/influxdb/gists{/gist_id}","starred_url":"https://api.github.com/users/influxdb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/influxdb/subscriptions","organizations_url":"https://api.github.com/users/influxdb/orgs","repos_url":"https://api.github.com/users/influxdb/repos","events_url":"https://api.github.com/users/influxdb/events{/privacy}","received_events_url":"https://api.github.com/users/influxdb/received_events","type":"Organization","site_admin":false},"repo":{"id":13124802,"name":"influxdb","full_name":"influxdb/influxdb","owner":{"login":"influxdb","id":5713248,"avatar_url":"https://avatars.githubusercontent.com/u/5713248?v=3","gravatar_id":"","url":"https://api.github.com/users/influxdb","html_url":"https://github.com/influxdb","followers_url":"https://api.github.com/users/influxdb/followers","following_url":"https://api.github.com/users/influxdb/following{/other_user}","gists_url":"https://api.github.com/users/influxdb/gists{/gist_id}","starred_url":"https://api.github.com/users/influxdb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/influxdb/subscriptions","organizations_url":"https://api.github.com/users/influxdb/orgs","repos_url":"https://api.github.com/users/influxdb/repos","events_url":"https://api.github.com/users/influxdb/events{/privacy}","received_events_url":"https://api.github.com/users/influxdb/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/influxdb/influxdb","description":"Scalable datastore for metrics, events, and real-time analytics","fork":false,"url":"https://api.github.com/repos/influxdb/influxdb","forks_url":"https://api.github.com/repos/influxdb/influxdb/forks","keys_url":"https://api.github.com/repos/influxdb/influxdb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/influxdb/influxdb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/influxdb/influxdb/teams","hooks_url":"https://api.github.com/repos/influxdb/influxdb/hooks","issue_events_url":"https://api.github.com/repos/influxdb/influxdb/issues/events{/number}","events_url":"https://api.github.com/repos/influxdb/influxdb/events","assignees_url":"https://api.github.com/repos/influxdb/influxdb/assignees{/user}","branches_url":"https://api.github.com/repos/influxdb/influxdb/branches{/branch}","tags_url":"https://api.github.com/repos/influxdb/influxdb/tags","blobs_url":"https://api.github.com/repos/influxdb/influxdb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/influxdb/influxdb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/influxdb/influxdb/git/refs{/sha}","trees_url":"https://api.github.com/repos/influxdb/influxdb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/influxdb/influxdb/statuses/{sha}","languages_url":"https://api.github.com/repos/influxdb/influxdb/languages","stargazers_url":"https://api.github.com/repos/influxdb/influxdb/stargazers","contributors_url":"https://api.github.com/repos/influxdb/influxdb/contributors","subscribers_url":"https://api.github.com/repos/influxdb/influxdb/subscribers","subscription_url":"https://api.github.com/repos/influxdb/influxdb/subscription","commits_url":"https://api.github.com/repos/influxdb/influxdb/commits{/sha}","git_commits_url":"https://api.github.com/repos/influxdb/influxdb/git/commits{/sha}","comments_url":"https://api.github.com/repos/influxdb/influxdb/comments{/number}","issue_comment_url":"https://api.github.com/repos/influxdb/influxdb/issues/comments/{number}","contents_url":"https://api.github.com/repos/influxdb/influxdb/contents/{+path}","compare_url":"https://api.github.com/repos/influxdb/influxdb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/influxdb/influxdb/merges","archive_url":"https://api.github.com/repos/influxdb/influxdb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/influxdb/influxdb/downloads","issues_url":"https://api.github.com/repos/influxdb/influxdb/issues{/number}","pulls_url":"https://api.github.com/repos/influxdb/influxdb/pulls{/number}","milestones_url":"https://api.github.com/repos/influxdb/influxdb/milestones{/number}","notifications_url":"https://api.github.com/repos/influxdb/influxdb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/influxdb/influxdb/labels{/name}","releases_url":"https://api.github.com/repos/influxdb/influxdb/releases{/id}","created_at":"2013-09-26T14:31:10Z","updated_at":"2015-02-04T02:23:05Z","pushed_at":"2015-02-04T03:07:18Z","git_url":"git://github.com/influxdb/influxdb.git","ssh_url":"git@github.com:influxdb/influxdb.git","clone_url":"https://github.com/influxdb/influxdb.git","svn_url":"https://github.com/influxdb/influxdb","homepage":"http://influxdb.com","size":24231,"stargazers_count":4400,"watchers_count":4400,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":335,"mirror_url":null,"open_issues_count":289,"forks":335,"open_issues":289,"watchers":4400,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/influxdb/influxdb/pulls/1502"},"html":{"href":"https://github.com/influxdb/influxdb/pull/1502"},"issue":{"href":"https://api.github.com/repos/influxdb/influxdb/issues/1502"},"comments":{"href":"https://api.github.com/repos/influxdb/influxdb/issues/1502/comments"},"review_comments":{"href":"https://api.github.com/repos/influxdb/influxdb/pulls/1502/comments"},"review_comment":{"href":"https://api.github.com/repos/influxdb/influxdb/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/influxdb/influxdb/pulls/1502/commits"},"statuses":{"href":"https://api.github.com/repos/influxdb/influxdb/statuses/b75a7f3f2bf5e43746ba3d439ba09a8a50509ebc"}}}}