-
Notifications
You must be signed in to change notification settings - Fork 0
#133 Fix doobie error when status is not OK and data is missing #137
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
#133 Fix doobie error when status is not OK and data is missing #137
Conversation
JaCoCo
|
| Overall Project | 57.47% -1.71% |
🍏 |
|---|---|---|
| Files changed | 73.53% | ❌ |
| File | Coverage | |
|---|---|---|
| StandardStatusHandling.scala | 100% | 🍏 |
| DBFunction.scala | 4.01% | 🍏 |
| UserDefinedStatusHandling.scala | 0% | ❌ |
JaCoCo
|
| Overall Project | 70.17% -24.2% |
🍏 |
|---|---|---|
| Files changed | 66.26% | ❌ |
| File | Coverage | |
|---|---|---|
| StatusWithData.scala | 100% -475% |
❌ |
| DoobieEngine.scala | 100% | 🍏 |
| DoobieQuery.scala | 100% | 🍏 |
| DoobieFunction.scala | 73.72% -5.95% |
❌ |
JaCoCo
|
| Overall Project | 91.42% | 🍏 |
|---|---|---|
| Files changed | 100% | 🍏 |
| File | Coverage | |
|---|---|---|
| SlickQuery.scala | 100% | 🍏 |
| SlickFunction.scala | 88.97% | 🍏 |
| r.map { | ||
| case statusWithData @ StatusWithData(_, _, Some(data)) => statusWithData.copy(data = Some(Some(data))) | ||
| case statusWithData @ StatusWithData(_, _, None) => statusWithData.copy(data = None) | ||
| } |
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.
this segment is very nice, including the doc and backward compatibility big - thank you!
lsulak
left a comment
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.
I really couldn't find a single thing, not even minor / naming. Really good job, you have a great ability to understand and involve yourself into anything & quickly.
Perhaps wait for @salamonpavel and/or @benedeki for some further review/opinions, but basically something like this I had in my mind, for some reasons I found a bit more complicated way and didn't finish it :D
salamonpavel
left a comment
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.
Good job. Thank you.
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.
Nice work, thank you.
Fixes #133
Release Notes
StatusHandlingnow requires only actualFunctionStatusto be providedNULLread at column..." error when function with status is not returning the data if status is not OK