Portion of refactoring and adjustments: - #1
Conversation
|
Hello, thank you for your contribution! This PR seems to contain a lot of improvements, including better stage initialization mechanism, which is important for the users. However, it introduces several substantial changes, which I need to review thoroughly. At the present moment, I have a few suggestions to improve this contribution. Firstly, it is mandatory to make the tests passing. Mechanical Tsar benefits a lot of Travis CI integration while the contributed code in its current state causes the tests to fail: https://travis-ci.org/mtsar/mtsar/builds/131091250. You could consider the .travis.yml file and run the test suite on your own computer. For example, check out my local test.yml. Secondly, using the Thirdly, although, I have not reviewed the entire PR yet, I am not sure it is necessary to substitute all the Lastly, please ensure the code is formatted as the IntelliJ IDEA does, and also run a static code analysis tool like |
|
Hello! Done everything you've said except for last one - don't really know how to easily shrink already existing commits. Please check |
|
Great job! Currently, I do not understand one thing. For instance, in KOSAggregator now it appears two constructors: one accepts three arguments (stage and DAOs), another accepts two arguments (only DAOs). Why do we need both? Could we leave only one? Well, it is possible to squash the existing commits using rebase and forced push. Since that you will push to your own fork, it will not break anything (and nobody will notice ☺). Merging this PR will not include the commits avoided by the forced push. |
* Made stages map synschronized with DB * Added opportunity to add new/edit stage (via API) Portion of refactoring and adjustments: * Made stages map synschronized with DB * Added opportunity to add new stage (via API): http://localhost:8080/stages/new?id=testStage1&workerRanker=mtsar.processors.meta.ZenCrowd&taskAllocator=mtsar.processors.task.RandomAllocator&answerAggregator=mtsar.processors.answer.MajorityVoting&description=test Added opportunity to update stage Refactored code to fix tests, injection
It's being used in tests (to not to bother with injection there) |
|
Done squashing into single commit |
|
Got it. I will review the changes today again. In case everything is fine, this pull request will be merged no later than tomorrow's morning. |
http://localhost:8080/stages/new?id=testStage1&workerRanker=mtsar.processors.meta.ZenCrowd&taskAllocator=mtsar.processors.task.RandomAllocator&answerAggregator=mtsar.processors.answer.MajorityVoting&description=test