{"action":"closed","issue":{"url":"https://api.github.com/repos/crits/crits/issues/44","repository_url":"https://api.github.com/repos/crits/crits","labels_url":"https://api.github.com/repos/crits/crits/issues/44/labels{/name}","comments_url":"https://api.github.com/repos/crits/crits/issues/44/comments","events_url":"https://api.github.com/repos/crits/crits/issues/44/events","html_url":"https://github.com/crits/crits/issues/44","id":34022221,"number":44,"title":"Mapreduces need some love","user":{"login":"mgoffin","id":260873,"avatar_url":"https://avatars.githubusercontent.com/u/260873?v=3","gravatar_id":"","url":"https://api.github.com/users/mgoffin","html_url":"https://github.com/mgoffin","followers_url":"https://api.github.com/users/mgoffin/followers","following_url":"https://api.github.com/users/mgoffin/following{/other_user}","gists_url":"https://api.github.com/users/mgoffin/gists{/gist_id}","starred_url":"https://api.github.com/users/mgoffin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mgoffin/subscriptions","organizations_url":"https://api.github.com/users/mgoffin/orgs","repos_url":"https://api.github.com/users/mgoffin/repos","events_url":"https://api.github.com/users/mgoffin/events{/privacy}","received_events_url":"https://api.github.com/users/mgoffin/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/crits/crits/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/crits/crits/milestones/2","html_url":"https://github.com/crits/crits/milestones/Miscellaneous","labels_url":"https://api.github.com/repos/crits/crits/milestones/2/labels","id":663570,"number":2,"title":"Miscellaneous","description":"Issues that can be worked on at any time and will not hold up any particular release.","creator":{"login":"mgoffin","id":260873,"avatar_url":"https://avatars.githubusercontent.com/u/260873?v=3","gravatar_id":"","url":"https://api.github.com/users/mgoffin","html_url":"https://github.com/mgoffin","followers_url":"https://api.github.com/users/mgoffin/followers","following_url":"https://api.github.com/users/mgoffin/following{/other_user}","gists_url":"https://api.github.com/users/mgoffin/gists{/gist_id}","starred_url":"https://api.github.com/users/mgoffin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mgoffin/subscriptions","organizations_url":"https://api.github.com/users/mgoffin/orgs","repos_url":"https://api.github.com/users/mgoffin/repos","events_url":"https://api.github.com/users/mgoffin/events{/privacy}","received_events_url":"https://api.github.com/users/mgoffin/received_events","type":"User","site_admin":false},"open_issues":41,"closed_issues":29,"state":"open","created_at":"2014-05-19T17:59:35Z","updated_at":"2016-08-05T17:22:13Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2014-05-21T20:42:38Z","updated_at":"2016-08-05T17:22:13Z","closed_at":"2016-08-05T17:22:13Z","body":"I'm noticing some of the mapreduces not behaving properly. For example, the output of the mapreduce for `campaign_date_stats()` does not jive with this aggregate query:\r\n\r\n```\r\ndb.email.aggregate([\r\n\t{ $unwind: \"$campaign\" },\r\n\t{ $project: { campaign: \"$campaign.name\" } },\r\n\t{ $group: { _id: { campaign: \"$campaign\" }, number: { $sum: 1 } } },\r\n\t{ $sort: { \"_id.campaign\": 1 } }\r\n])\r\n```\r\n\r\nWe've changed a lot of code and the mapreduces are still very archaic and messy. Might be worth looking them over and cleaning them up."}}
{"actor":{"display_login":"mgoffin"}}