-
Notifications
You must be signed in to change notification settings - Fork 1
Kirill Topchy ctco task/1 #42
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
base: KirillTopchyCtco
Are you sure you want to change the base?
Conversation
Test Results0 tests 0 ✅ 0s ⏱️ Results for commit 750da21. ♻️ This comment has been updated with latest results. |
| .getAllTodos() | ||
| .stream() | ||
| .filter(todo -> !todo.completed()) | ||
| .toList(); |
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.
As well as we need only count, you can calculate it directly in the stream
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.
fixed
| .filter(todo -> !todo.completed()) | ||
| .toList(); | ||
|
|
||
| return "Hello from Spring! You have " + activeTodos.size() + " open tasks."; |
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.
It is ok, but for the sake of tutorial, use String.format here
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.
fixed
…rillTopchyCtco-task/1
…rillTopchyCtco-task/1
…rillTopchyCtco-task/1
As i do not have access to Docker, I have changed tests to work with local mongo db instance on port 27017