{"action":"created","issue":{"url":"https://api.github.com/repos/couchbase/couchnode/issues/33","labels_url":"https://api.github.com/repos/couchbase/couchnode/issues/33/labels{/name}","comments_url":"https://api.github.com/repos/couchbase/couchnode/issues/33/comments","events_url":"https://api.github.com/repos/couchbase/couchnode/issues/33/events","html_url":"https://github.com/couchbase/couchnode/pull/33","id":58932785,"number":33,"title":"Adding dateToArray to bucket mock.","user":{"login":"tswaters","id":7309368,"avatar_url":"https://avatars.githubusercontent.com/u/7309368?v=3","gravatar_id":"","url":"https://api.github.com/users/tswaters","html_url":"https://github.com/tswaters","followers_url":"https://api.github.com/users/tswaters/followers","following_url":"https://api.github.com/users/tswaters/following{/other_user}","gists_url":"https://api.github.com/users/tswaters/gists{/gist_id}","starred_url":"https://api.github.com/users/tswaters/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tswaters/subscriptions","organizations_url":"https://api.github.com/users/tswaters/orgs","repos_url":"https://api.github.com/users/tswaters/repos","events_url":"https://api.github.com/users/tswaters/events{/privacy}","received_events_url":"https://api.github.com/users/tswaters/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"brett19","id":1621627,"avatar_url":"https://avatars.githubusercontent.com/u/1621627?v=3","gravatar_id":"","url":"https://api.github.com/users/brett19","html_url":"https://github.com/brett19","followers_url":"https://api.github.com/users/brett19/followers","following_url":"https://api.github.com/users/brett19/following{/other_user}","gists_url":"https://api.github.com/users/brett19/gists{/gist_id}","starred_url":"https://api.github.com/users/brett19/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brett19/subscriptions","organizations_url":"https://api.github.com/users/brett19/orgs","repos_url":"https://api.github.com/users/brett19/repos","events_url":"https://api.github.com/users/brett19/events{/privacy}","received_events_url":"https://api.github.com/users/brett19/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-02-25T16:56:40Z","updated_at":"2015-09-17T19:23:57Z","closed_at":"2015-09-17T19:22:53Z","pull_request":{"url":"https://api.github.com/repos/couchbase/couchnode/pulls/33","html_url":"https://github.com/couchbase/couchnode/pull/33","diff_url":"https://github.com/couchbase/couchnode/pull/33.diff","patch_url":"https://github.com/couchbase/couchnode/pull/33.patch"},"body":"The `dateToArray` function is missing from bucket mocks and will raise errors if used within a view.  I borrowed the dateToArray code from the [couchdb source](https://github.com/couchbase/couchdb/blob/cb21b8ff7c77c7fbf67f23c4f59befd59c794783/src/mapreduce/mapreduce.cc#L52-L67) and added it above the `emit` function declaration.\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/couchbase/couchnode/issues/comments/141195342","html_url":"https://github.com/couchbase/couchnode/pull/33#issuecomment-141195342","issue_url":"https://api.github.com/repos/couchbase/couchnode/issues/33","id":141195342,"user":{"login":"brett19","id":1621627,"avatar_url":"https://avatars.githubusercontent.com/u/1621627?v=3","gravatar_id":"","url":"https://api.github.com/users/brett19","html_url":"https://github.com/brett19","followers_url":"https://api.github.com/users/brett19/followers","following_url":"https://api.github.com/users/brett19/following{/other_user}","gists_url":"https://api.github.com/users/brett19/gists{/gist_id}","starred_url":"https://api.github.com/users/brett19/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brett19/subscriptions","organizations_url":"https://api.github.com/users/brett19/orgs","repos_url":"https://api.github.com/users/brett19/repos","events_url":"https://api.github.com/users/brett19/events{/privacy}","received_events_url":"https://api.github.com/users/brett19/received_events","type":"User","site_admin":false},"created_at":"2015-09-17T19:23:57Z","updated_at":"2015-09-17T19:23:57Z","body":"http://review.couchbase.org/55300"}}