-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vocone: refactor Vocone struct as an extension of service.VocdoniService #1129
Conversation
257c778
to
f5ce609
Compare
i'm pushing this trivial fix, so that it can be used (or tested) already. but i'd not merge this PR as-is, i'll try first to make a nicer refactor of voconed init and push that instead |
Pull Request Test Coverage Report for Build 6403401623
💛 - Coveralls |
f5ce609
to
d005ebe
Compare
there you go, nicer refactor of voconed, that as a side effect fixes #1126 and prevents future issues like this when features are implemented |
i need to fix TestVocone but it's probably something trivial, i also thought of replacing that TestVocone with an actual integration test, since voconed binary (and docker image) is totally untested (and this created problems in the past for vocdoni-sdk CI) |
I was testing with this branch with two different tokens:
And for me, the problem continues 🙁. The file is in the downloader queue but the census is not created. |
thanks for the report,
i'm looking into it |
this way, the whole init phase is much similar to what `node` does, avoiding bugs and making it easier to maintain in the future when features are added this refactor was originated by a bug introduced when OffchainDataDownloader feature was merged on `node` but not fully properly in `voconed`, so `voconed` was not doing vs.DataDownloader.Start() that `node` does during init the best solution was to make voconed call the same init function that node calls srv.OffChainDataHandler()
e9c3cc9
to
9091fe3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense, thx
7c320fd
to
9523a07
Compare
9523a07
to
0a35fad
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes are OK for me, but testing the latest version it still fails to download censuses from IPFS, even with the same IPFS connect key in both services (census3 and vocone).
this way, the whole init phase is much similar to what
node
does, avoiding bugsand making it easier to maintain in the future when features are added
this refactor was originated by a bug introduced when OffchainDataDownloader feature
was merged on
node
but not fully properly invoconed
,so
voconed
was not doing vs.DataDownloader.Start() thatnode
does during initthe best solution was to make voconed call the same init function that node calls
srv.OffChainDataHandler()