{"action":"created","issue":{"url":"https://api.github.com/repos/cloudant/CDTDatastore/issues/165","labels_url":"https://api.github.com/repos/cloudant/CDTDatastore/issues/165/labels{/name}","comments_url":"https://api.github.com/repos/cloudant/CDTDatastore/issues/165/comments","events_url":"https://api.github.com/repos/cloudant/CDTDatastore/issues/165/events","html_url":"https://github.com/cloudant/CDTDatastore/pull/165","id":87797344,"number":165,"title":"Fix indexing of empty array fields","user":{"login":"alfinkel","id":8793303,"avatar_url":"https://avatars.githubusercontent.com/u/8793303?v=3","gravatar_id":"","url":"https://api.github.com/users/alfinkel","html_url":"https://github.com/alfinkel","followers_url":"https://api.github.com/users/alfinkel/followers","following_url":"https://api.github.com/users/alfinkel/following{/other_user}","gists_url":"https://api.github.com/users/alfinkel/gists{/gist_id}","starred_url":"https://api.github.com/users/alfinkel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alfinkel/subscriptions","organizations_url":"https://api.github.com/users/alfinkel/orgs","repos_url":"https://api.github.com/users/alfinkel/repos","events_url":"https://api.github.com/users/alfinkel/events{/privacy}","received_events_url":"https://api.github.com/users/alfinkel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-12T17:28:27Z","updated_at":"2015-06-15T11:33:59Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/cloudant/CDTDatastore/pulls/165","html_url":"https://github.com/cloudant/CDTDatastore/pull/165","diff_url":"https://github.com/cloudant/CDTDatastore/pull/165.diff","patch_url":"https://github.com/cloudant/CDTDatastore/pull/165.patch"},"body":"_What:_\r\n\r\nFix a bug that, incorrectly, does not index documents that contain an empty array field value.\r\n\r\n_Why:_\r\n\r\nDocuments that contain an empty array should be index-able.\r\n\r\n_How:_\r\n\r\nFix logic in the index updater that handles SQL INSERT statement creation for documents to be stored in Query index tables.  Logic for handling an empty array field value is now the same as the handling of an index-able field with a missing value in a document.\r\n\r\n_Tests:_\r\n\r\nAdd two additional index updater test cases to the test empty array field values.\r\n\r\nreviewer @mikerhodes \r\nreviewer @rhyshort \r\n\r\nBugId: 48139"},"comment":{"url":"https://api.github.com/repos/cloudant/CDTDatastore/issues/comments/112026503","html_url":"https://github.com/cloudant/CDTDatastore/pull/165#issuecomment-112026503","issue_url":"https://api.github.com/repos/cloudant/CDTDatastore/issues/165","id":112026503,"user":{"login":"alfinkel","id":8793303,"avatar_url":"https://avatars.githubusercontent.com/u/8793303?v=3","gravatar_id":"","url":"https://api.github.com/users/alfinkel","html_url":"https://github.com/alfinkel","followers_url":"https://api.github.com/users/alfinkel/followers","following_url":"https://api.github.com/users/alfinkel/following{/other_user}","gists_url":"https://api.github.com/users/alfinkel/gists{/gist_id}","starred_url":"https://api.github.com/users/alfinkel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alfinkel/subscriptions","organizations_url":"https://api.github.com/users/alfinkel/orgs","repos_url":"https://api.github.com/users/alfinkel/repos","events_url":"https://api.github.com/users/alfinkel/events{/privacy}","received_events_url":"https://api.github.com/users/alfinkel/received_events","type":"User","site_admin":false},"created_at":"2015-06-15T11:33:59Z","updated_at":"2015-06-15T11:33:59Z","body":"Thanks @gadamc but you're not listed as one of the reviewers. :)"}}