-
Notifications
You must be signed in to change notification settings - Fork 2
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
Todo app example #16
Todo app example #16
Conversation
case None => Right(()) | ||
} | ||
) | ||
_ <- SqlQueryT.liftQuery[ErrorOrResult, Unit]( |
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.
Ça serait bien d'avoir des exemples où les résultats servent (sont pas discarded), là c'est jamais le cas du coup ça illustre pas trop les avantages de composition.
environment: | ||
PGDATA: data | ||
ports: | ||
- 5432:5432 |
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.
Si la DB ne sert que à l'autre container, pas besoin d'exposer le port, à condition de mettre un link approprié
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.
Non la todo app tape directement dessus. En plus adminer
ne me convainc pas vraiment, je vais l'enlever je pense.
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.
Si c'est accès par un autre container, pas besoin d'exposer les ports sur l'hôte
|
||
private def builder[B]( | ||
bodyParser: BodyParser[B] | ||
): ActionBuilder[ConnectedUserRequest, B] = |
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.
Il y a t'il réellement besoin d'un ActionBuilder
pour ça ?
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.
Je voulais éviter un empilement d'actions sur les endpoints.
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.
Une simple composition ?
18641d9
to
9b5a246
Compare
40c7d18
to
d1ae7a2
Compare
0ee3491
to
bb64772
Compare
bb64772
to
76896b0
Compare
ed4da4c
to
a9c80af
Compare
9b5a246
to
92e7191
Compare
- Add more checks for POST actions - Better business case error handling - Add route to list todos - Add postman collection for api usage
92e7191
to
59dc4e2
Compare
Pull Request Checklist
Purpose
This PR aim is to add an example so that newcomers could grasp more easily how the query monad could be use on a real project.