{"action":"created","comment":{"url":"https://api.github.com/repos/codice/ddf-ui/pulls/comments/31194372","id":31194372,"diff_hunk":"@@ -510,10 +503,11 @@ private JSONObject convertToJSON(MetacardType metacardType)\n         JSONObject fields = new JSONObject();\n \n         for (AttributeDescriptor descriptor : metacardType.getAttributeDescriptors()) {\n-            if (descriptor.isIndexed()) {\n-                fields.put(descriptor.getName(),\n-                        descriptor.getType().getAttributeFormat().toString());\n-            }\n+            JSONObject description = new JSONObject();\n+            description.put(\"format\", descriptor.getType().getAttributeFormat().toString());\n+            description.put(\"indexed\", descriptor.isIndexed());\n+","path":"search-ui/search-endpoint/src/main/java/org/codice/ddf/ui/searchui/query/controller/SearchController.java","position":134,"original_position":134,"commit_id":"de0b26ab5bd18b24393b736b12354d1718e0b1bd","original_commit_id":"de0b26ab5bd18b24393b736b12354d1718e0b1bd","user":{"login":"pklinef","id":700518,"avatar_url":"https://avatars.githubusercontent.com/u/700518?v=3","gravatar_id":"","url":"https://api.github.com/users/pklinef","html_url":"https://github.com/pklinef","followers_url":"https://api.github.com/users/pklinef/followers","following_url":"https://api.github.com/users/pklinef/following{/other_user}","gists_url":"https://api.github.com/users/pklinef/gists{/gist_id}","starred_url":"https://api.github.com/users/pklinef/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pklinef/subscriptions","organizations_url":"https://api.github.com/users/pklinef/orgs","repos_url":"https://api.github.com/users/pklinef/repos","events_url":"https://api.github.com/users/pklinef/events{/privacy}","received_events_url":"https://api.github.com/users/pklinef/received_events","type":"User","site_admin":false},"body":"I would say we should add the other values in AttributeDescriptor but they are not currently used.","created_at":"2015-05-28T00:30:28Z","updated_at":"2015-05-28T00:30:28Z","html_url":"https://github.com/codice/ddf-ui/pull/78#discussion_r31194372","pull_request_url":"https://api.github.com/repos/codice/ddf-ui/pulls/78","_links":{"self":{"href":"https://api.github.com/repos/codice/ddf-ui/pulls/comments/31194372"},"html":{"href":"https://github.com/codice/ddf-ui/pull/78#discussion_r31194372"},"pull_request":{"href":"https://api.github.com/repos/codice/ddf-ui/pulls/78"}}},"pull_request":{"url":"https://api.github.com/repos/codice/ddf-ui/pulls/78","id":35959670,"html_url":"https://github.com/codice/ddf-ui/pull/78","diff_url":"https://github.com/codice/ddf-ui/pull/78.diff","patch_url":"https://github.com/codice/ddf-ui/pull/78.patch","issue_url":"https://api.github.com/repos/codice/ddf-ui/issues/78","number":78,"state":"open","locked":false,"title":"DDF-1181 moved attribute index filtering to UI as opposed to in the search endpoint","user":{"login":"stustison","id":4391679,"avatar_url":"https://avatars.githubusercontent.com/u/4391679?v=3","gravatar_id":"","url":"https://api.github.com/users/stustison","html_url":"https://github.com/stustison","followers_url":"https://api.github.com/users/stustison/followers","following_url":"https://api.github.com/users/stustison/following{/other_user}","gists_url":"https://api.github.com/users/stustison/gists{/gist_id}","starred_url":"https://api.github.com/users/stustison/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stustison/subscriptions","organizations_url":"https://api.github.com/users/stustison/orgs","repos_url":"https://api.github.com/users/stustison/repos","events_url":"https://api.github.com/users/stustison/events{/privacy}","received_events_url":"https://api.github.com/users/stustison/received_events","type":"User","site_admin":false},"body":"@pklinef @andrew-fiedler\r\n\r\n<!-- Reviewable:start -->\r\n[<img src=\"https://reviewable.io/review_button.png\" height=40 alt=\"Review on Reviewable\"/>](https://reviewable.io/reviews/codice/ddf-ui/78)\r\n<!-- Reviewable:end -->\r\n","created_at":"2015-05-21T17:51:06Z","updated_at":"2015-05-28T00:30:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"72e6fb7c9c5f700a7dd9d0f32036ab962688c60c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/codice/ddf-ui/pulls/78/commits","review_comments_url":"https://api.github.com/repos/codice/ddf-ui/pulls/78/comments","review_comment_url":"https://api.github.com/repos/codice/ddf-ui/pulls/comments{/number}","comments_url":"https://api.github.com/repos/codice/ddf-ui/issues/78/comments","statuses_url":"https://api.github.com/repos/codice/ddf-ui/statuses/de0b26ab5bd18b24393b736b12354d1718e0b1bd","head":{"label":"stustison:ddf1181","ref":"ddf1181","sha":"de0b26ab5bd18b24393b736b12354d1718e0b1bd","user":{"login":"stustison","id":4391679,"avatar_url":"https://avatars.githubusercontent.com/u/4391679?v=3","gravatar_id":"","url":"https://api.github.com/users/stustison","html_url":"https://github.com/stustison","followers_url":"https://api.github.com/users/stustison/followers","following_url":"https://api.github.com/users/stustison/following{/other_user}","gists_url":"https://api.github.com/users/stustison/gists{/gist_id}","starred_url":"https://api.github.com/users/stustison/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stustison/subscriptions","organizations_url":"https://api.github.com/users/stustison/orgs","repos_url":"https://api.github.com/users/stustison/repos","events_url":"https://api.github.com/users/stustison/events{/privacy}","received_events_url":"https://api.github.com/users/stustison/received_events","type":"User","site_admin":false},"repo":{"id":36020962,"name":"ddf-ui","full_name":"stustison/ddf-ui","owner":{"login":"stustison","id":4391679,"avatar_url":"https://avatars.githubusercontent.com/u/4391679?v=3","gravatar_id":"","url":"https://api.github.com/users/stustison","html_url":"https://github.com/stustison","followers_url":"https://api.github.com/users/stustison/followers","following_url":"https://api.github.com/users/stustison/following{/other_user}","gists_url":"https://api.github.com/users/stustison/gists{/gist_id}","starred_url":"https://api.github.com/users/stustison/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stustison/subscriptions","organizations_url":"https://api.github.com/users/stustison/orgs","repos_url":"https://api.github.com/users/stustison/repos","events_url":"https://api.github.com/users/stustison/events{/privacy}","received_events_url":"https://api.github.com/users/stustison/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/stustison/ddf-ui","description":"","fork":true,"url":"https://api.github.com/repos/stustison/ddf-ui","forks_url":"https://api.github.com/repos/stustison/ddf-ui/forks","keys_url":"https://api.github.com/repos/stustison/ddf-ui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stustison/ddf-ui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stustison/ddf-ui/teams","hooks_url":"https://api.github.com/repos/stustison/ddf-ui/hooks","issue_events_url":"https://api.github.com/repos/stustison/ddf-ui/issues/events{/number}","events_url":"https://api.github.com/repos/stustison/ddf-ui/events","assignees_url":"https://api.github.com/repos/stustison/ddf-ui/assignees{/user}","branches_url":"https://api.github.com/repos/stustison/ddf-ui/branches{/branch}","tags_url":"https://api.github.com/repos/stustison/ddf-ui/tags","blobs_url":"https://api.github.com/repos/stustison/ddf-ui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stustison/ddf-ui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stustison/ddf-ui/git/refs{/sha}","trees_url":"https://api.github.com/repos/stustison/ddf-ui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stustison/ddf-ui/statuses/{sha}","languages_url":"https://api.github.com/repos/stustison/ddf-ui/languages","stargazers_url":"https://api.github.com/repos/stustison/ddf-ui/stargazers","contributors_url":"https://api.github.com/repos/stustison/ddf-ui/contributors","subscribers_url":"https://api.github.com/repos/stustison/ddf-ui/subscribers","subscription_url":"https://api.github.com/repos/stustison/ddf-ui/subscription","commits_url":"https://api.github.com/repos/stustison/ddf-ui/commits{/sha}","git_commits_url":"https://api.github.com/repos/stustison/ddf-ui/git/commits{/sha}","comments_url":"https://api.github.com/repos/stustison/ddf-ui/comments{/number}","issue_comment_url":"https://api.github.com/repos/stustison/ddf-ui/issues/comments{/number}","contents_url":"https://api.github.com/repos/stustison/ddf-ui/contents/{+path}","compare_url":"https://api.github.com/repos/stustison/ddf-ui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stustison/ddf-ui/merges","archive_url":"https://api.github.com/repos/stustison/ddf-ui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stustison/ddf-ui/downloads","issues_url":"https://api.github.com/repos/stustison/ddf-ui/issues{/number}","pulls_url":"https://api.github.com/repos/stustison/ddf-ui/pulls{/number}","milestones_url":"https://api.github.com/repos/stustison/ddf-ui/milestones{/number}","notifications_url":"https://api.github.com/repos/stustison/ddf-ui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stustison/ddf-ui/labels{/name}","releases_url":"https://api.github.com/repos/stustison/ddf-ui/releases{/id}","created_at":"2015-05-21T15:28:46Z","updated_at":"2015-05-21T15:28:47Z","pushed_at":"2015-05-21T20:39:40Z","git_url":"git://github.com/stustison/ddf-ui.git","ssh_url":"git@github.com:stustison/ddf-ui.git","clone_url":"https://github.com/stustison/ddf-ui.git","svn_url":"https://github.com/stustison/ddf-ui","homepage":null,"size":85010,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"codice:master","ref":"master","sha":"c4797259d7411c68b14c908590f30c6cb16a4b00","user":{"login":"codice","id":2386734,"avatar_url":"https://avatars.githubusercontent.com/u/2386734?v=3","gravatar_id":"","url":"https://api.github.com/users/codice","html_url":"https://github.com/codice","followers_url":"https://api.github.com/users/codice/followers","following_url":"https://api.github.com/users/codice/following{/other_user}","gists_url":"https://api.github.com/users/codice/gists{/gist_id}","starred_url":"https://api.github.com/users/codice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codice/subscriptions","organizations_url":"https://api.github.com/users/codice/orgs","repos_url":"https://api.github.com/users/codice/repos","events_url":"https://api.github.com/users/codice/events{/privacy}","received_events_url":"https://api.github.com/users/codice/received_events","type":"Organization","site_admin":false},"repo":{"id":15776693,"name":"ddf-ui","full_name":"codice/ddf-ui","owner":{"login":"codice","id":2386734,"avatar_url":"https://avatars.githubusercontent.com/u/2386734?v=3","gravatar_id":"","url":"https://api.github.com/users/codice","html_url":"https://github.com/codice","followers_url":"https://api.github.com/users/codice/followers","following_url":"https://api.github.com/users/codice/following{/other_user}","gists_url":"https://api.github.com/users/codice/gists{/gist_id}","starred_url":"https://api.github.com/users/codice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codice/subscriptions","organizations_url":"https://api.github.com/users/codice/orgs","repos_url":"https://api.github.com/users/codice/repos","events_url":"https://api.github.com/users/codice/events{/privacy}","received_events_url":"https://api.github.com/users/codice/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/codice/ddf-ui","description":"","fork":false,"url":"https://api.github.com/repos/codice/ddf-ui","forks_url":"https://api.github.com/repos/codice/ddf-ui/forks","keys_url":"https://api.github.com/repos/codice/ddf-ui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/codice/ddf-ui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/codice/ddf-ui/teams","hooks_url":"https://api.github.com/repos/codice/ddf-ui/hooks","issue_events_url":"https://api.github.com/repos/codice/ddf-ui/issues/events{/number}","events_url":"https://api.github.com/repos/codice/ddf-ui/events","assignees_url":"https://api.github.com/repos/codice/ddf-ui/assignees{/user}","branches_url":"https://api.github.com/repos/codice/ddf-ui/branches{/branch}","tags_url":"https://api.github.com/repos/codice/ddf-ui/tags","blobs_url":"https://api.github.com/repos/codice/ddf-ui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/codice/ddf-ui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/codice/ddf-ui/git/refs{/sha}","trees_url":"https://api.github.com/repos/codice/ddf-ui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/codice/ddf-ui/statuses/{sha}","languages_url":"https://api.github.com/repos/codice/ddf-ui/languages","stargazers_url":"https://api.github.com/repos/codice/ddf-ui/stargazers","contributors_url":"https://api.github.com/repos/codice/ddf-ui/contributors","subscribers_url":"https://api.github.com/repos/codice/ddf-ui/subscribers","subscription_url":"https://api.github.com/repos/codice/ddf-ui/subscription","commits_url":"https://api.github.com/repos/codice/ddf-ui/commits{/sha}","git_commits_url":"https://api.github.com/repos/codice/ddf-ui/git/commits{/sha}","comments_url":"https://api.github.com/repos/codice/ddf-ui/comments{/number}","issue_comment_url":"https://api.github.com/repos/codice/ddf-ui/issues/comments{/number}","contents_url":"https://api.github.com/repos/codice/ddf-ui/contents/{+path}","compare_url":"https://api.github.com/repos/codice/ddf-ui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/codice/ddf-ui/merges","archive_url":"https://api.github.com/repos/codice/ddf-ui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/codice/ddf-ui/downloads","issues_url":"https://api.github.com/repos/codice/ddf-ui/issues{/number}","pulls_url":"https://api.github.com/repos/codice/ddf-ui/pulls{/number}","milestones_url":"https://api.github.com/repos/codice/ddf-ui/milestones{/number}","notifications_url":"https://api.github.com/repos/codice/ddf-ui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/codice/ddf-ui/labels{/name}","releases_url":"https://api.github.com/repos/codice/ddf-ui/releases{/id}","created_at":"2014-01-09T19:19:37Z","updated_at":"2015-05-05T17:53:19Z","pushed_at":"2015-05-27T18:00:58Z","git_url":"git://github.com/codice/ddf-ui.git","ssh_url":"git@github.com:codice/ddf-ui.git","clone_url":"https://github.com/codice/ddf-ui.git","svn_url":"https://github.com/codice/ddf-ui","homepage":null,"size":89158,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":31,"mirror_url":null,"open_issues_count":3,"forks":31,"open_issues":3,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/codice/ddf-ui/pulls/78"},"html":{"href":"https://github.com/codice/ddf-ui/pull/78"},"issue":{"href":"https://api.github.com/repos/codice/ddf-ui/issues/78"},"comments":{"href":"https://api.github.com/repos/codice/ddf-ui/issues/78/comments"},"review_comments":{"href":"https://api.github.com/repos/codice/ddf-ui/pulls/78/comments"},"review_comment":{"href":"https://api.github.com/repos/codice/ddf-ui/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/codice/ddf-ui/pulls/78/commits"},"statuses":{"href":"https://api.github.com/repos/codice/ddf-ui/statuses/de0b26ab5bd18b24393b736b12354d1718e0b1bd"}}}}