{"action":"created","issue":{"url":"https://api.github.com/repos/jetbasrawi/go.geteventstore/issues/2","repository_url":"https://api.github.com/repos/jetbasrawi/go.geteventstore","labels_url":"https://api.github.com/repos/jetbasrawi/go.geteventstore/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/jetbasrawi/go.geteventstore/issues/2/comments","events_url":"https://api.github.com/repos/jetbasrawi/go.geteventstore/issues/2/events","html_url":"https://github.com/jetbasrawi/go.geteventstore/issues/2","id":175577750,"number":2,"title":"NextVersion","user":{"login":"samidalouche","id":142329,"avatar_url":"https://avatars.githubusercontent.com/u/142329?v=3","gravatar_id":"","url":"https://api.github.com/users/samidalouche","html_url":"https://github.com/samidalouche","followers_url":"https://api.github.com/users/samidalouche/followers","following_url":"https://api.github.com/users/samidalouche/following{/other_user}","gists_url":"https://api.github.com/users/samidalouche/gists{/gist_id}","starred_url":"https://api.github.com/users/samidalouche/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samidalouche/subscriptions","organizations_url":"https://api.github.com/users/samidalouche/orgs","repos_url":"https://api.github.com/users/samidalouche/repos","events_url":"https://api.github.com/users/samidalouche/events{/privacy}","received_events_url":"https://api.github.com/users/samidalouche/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-09-07T18:49:11Z","updated_at":"2016-09-08T11:40:52Z","closed_at":"2016-09-07T20:27:01Z","body":"Hi,\r\n\r\nfor some reason, calling NextVersion does not seem to start reading at the given offset.\r\n\r\nLet's say I have 5 events in a stream (EventStore 3.8.x), and I execute\r\n\r\n```go\r\n     requestReader := commandListener.EventStoreClient.NewStreamReader(requestsStreamName)\r\n     requestReader.NextVersion(3)\r\n\r\n     for requestReader.Next() {\r\n         if requestReader.Err() != nil {\r\n             panic(\"error\")\r\n\t} else {\r\n            log.WithFields(logrus.Fields{\r\n\t\t\"currentEvent\": requestReader.EventResponse().Event.EventNumber,\r\n\t }).Info(\"Current Event\")\r\n        }\r\n     }\r\n```\r\n\r\n\r\nI get the output :\r\n\r\n```\r\nCurrent Event currentEvent=0\r\nCurrent Event currentEvent=1\r\nCurrent Event currentEvent=2\r\nCurrent Event currentEvent=3\r\n```\r\n\r\nIn addition, if I pick a `NextVersion` higher than the default page size (`20`), it is not restarting from 0.\r\n\r\nI can see that there is an automated test asserting that this works, but for some reason running the tests complains on my machine about the internal uuid package. "},"comment":{"url":"https://api.github.com/repos/jetbasrawi/go.geteventstore/issues/comments/245571654","html_url":"https://github.com/jetbasrawi/go.geteventstore/issues/2#issuecomment-245571654","issue_url":"https://api.github.com/repos/jetbasrawi/go.geteventstore/issues/2","id":245571654,"user":{"login":"jetbasrawi","id":127211,"avatar_url":"https://avatars.githubusercontent.com/u/127211?v=3","gravatar_id":"","url":"https://api.github.com/users/jetbasrawi","html_url":"https://github.com/jetbasrawi","followers_url":"https://api.github.com/users/jetbasrawi/followers","following_url":"https://api.github.com/users/jetbasrawi/following{/other_user}","gists_url":"https://api.github.com/users/jetbasrawi/gists{/gist_id}","starred_url":"https://api.github.com/users/jetbasrawi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jetbasrawi/subscriptions","organizations_url":"https://api.github.com/users/jetbasrawi/orgs","repos_url":"https://api.github.com/users/jetbasrawi/repos","events_url":"https://api.github.com/users/jetbasrawi/events{/privacy}","received_events_url":"https://api.github.com/users/jetbasrawi/received_events","type":"User","site_admin":false},"created_at":"2016-09-08T11:40:52Z","updated_at":"2016-09-08T11:40:52Z","body":"Hi sami, sorry I was travelling and only just seen your issue. \r\n\r\nGlad you got it sorted. \r\n\r\nTo run unit tests, you will need to get the dependencies. \r\n\r\nhttps://github.com/jetbasrawi/go.geteventstore.testfeed\r\nand \r\nhttps://gopkg.in/check.v1\r\n\r\nAfter that it should be just the usual go test\r\n\r\n"}}
{"actor":{"display_login":"jetbasrawi"}}