{"action":"created","issue":{"url":"https://api.github.com/repos/variety/variety/issues/104","labels_url":"https://api.github.com/repos/variety/variety/issues/104/labels{/name}","comments_url":"https://api.github.com/repos/variety/variety/issues/104/comments","events_url":"https://api.github.com/repos/variety/variety/issues/104/events","html_url":"https://github.com/variety/variety/pull/104","id":119834431,"number":104,"title":"Enumerate type counts for multiple types; enable secondary reads","user":{"login":"predictive","id":2224046,"avatar_url":"https://avatars.githubusercontent.com/u/2224046?v=3","gravatar_id":"","url":"https://api.github.com/users/predictive","html_url":"https://github.com/predictive","followers_url":"https://api.github.com/users/predictive/followers","following_url":"https://api.github.com/users/predictive/following{/other_user}","gists_url":"https://api.github.com/users/predictive/gists{/gist_id}","starred_url":"https://api.github.com/users/predictive/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/predictive/subscriptions","organizations_url":"https://api.github.com/users/predictive/orgs","repos_url":"https://api.github.com/users/predictive/repos","events_url":"https://api.github.com/users/predictive/events{/privacy}","received_events_url":"https://api.github.com/users/predictive/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-12-01T23:42:03Z","updated_at":"2015-12-08T16:56:43Z","closed_at":"2015-12-08T05:39:03Z","pull_request":{"url":"https://api.github.com/repos/variety/variety/pulls/104","html_url":"https://github.com/variety/variety/pull/104","diff_url":"https://github.com/variety/variety/pull/104.diff","patch_url":"https://github.com/variety/variety/pull/104.patch"},"body":"This keeps a count of how many of each type is found for a given field, to assist in making decisions about schema changes.\r\n\r\nThe user can now pass slaveOk=true to mongo when reading from a secondary replica set member. \r\n\r\nNote: This changes the JS type of 'types' from Array to Object, which could break programs parsing the JSON output of Variety:\r\n\r\n```json\r\n[\r\n        {\r\n                \"_id\" : {\r\n                        \"key\" : \"_id\"\r\n                },\r\n                \"value\" : {\r\n                        \"types\" : {\r\n                                \"ObjectId\" : 119\r\n                        }\r\n                },\r\n                \"totalOccurrences\" : 119,\r\n                \"percentContaining\" : 100\r\n        },\r\n        {\r\n                \"_id\" : {\r\n                        \"key\" : \"lat\"\r\n                },\r\n                \"value\" : {\r\n                        \"types\" : {\r\n                                \"Number\" : 119\r\n                        }\r\n                },\r\n                \"totalOccurrences\" : 119,\r\n                \"percentContaining\" : 100\r\n        },\r\n        {\r\n                \"_id\" : {\r\n                        \"key\" : \"lon\"\r\n                },\r\n                \"value\" : {\r\n                        \"types\" : {\r\n                                \"String\" : 1,\r\n                                \"Number\" : 118\r\n                        }\r\n                },\r\n                \"totalOccurrences\" : 119,\r\n                \"percentContaining\" : 100\r\n        }\r\n]\r\n```"},"comment":{"url":"https://api.github.com/repos/variety/variety/issues/comments/162944397","html_url":"https://github.com/variety/variety/pull/104#issuecomment-162944397","issue_url":"https://api.github.com/repos/variety/variety/issues/104","id":162944397,"user":{"login":"JamesCropcho","id":3657,"avatar_url":"https://avatars.githubusercontent.com/u/3657?v=3","gravatar_id":"","url":"https://api.github.com/users/JamesCropcho","html_url":"https://github.com/JamesCropcho","followers_url":"https://api.github.com/users/JamesCropcho/followers","following_url":"https://api.github.com/users/JamesCropcho/following{/other_user}","gists_url":"https://api.github.com/users/JamesCropcho/gists{/gist_id}","starred_url":"https://api.github.com/users/JamesCropcho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JamesCropcho/subscriptions","organizations_url":"https://api.github.com/users/JamesCropcho/orgs","repos_url":"https://api.github.com/users/JamesCropcho/repos","events_url":"https://api.github.com/users/JamesCropcho/events{/privacy}","received_events_url":"https://api.github.com/users/JamesCropcho/received_events","type":"User","site_admin":false},"created_at":"2015-12-08T16:56:43Z","updated_at":"2015-12-08T16:56:43Z","body":"Looking great, you two. Mission accomplished."}}