Skip to content

Conversation

@jakipatryk
Copy link
Contributor

@jakipatryk jakipatryk commented Feb 10, 2025

Fixes #133

Release Notes

  • core & slick & doobie: StatusHandling now requires only actual FunctionStatus to be provided
  • doobie: fixed "SQL NULL read at column..." error when function with status is not returning the data if status is not OK

@github-actions
Copy link

github-actions bot commented Feb 10, 2025

JaCoCo core module code coverage report - scala 2.13.11

Overall Project 57.47% -1.71% 🍏
Files changed 73.53%

File Coverage
StandardStatusHandling.scala 100% 🍏
DBFunction.scala 4.01% 🍏
UserDefinedStatusHandling.scala 0%

@github-actions
Copy link

github-actions bot commented Feb 10, 2025

JaCoCo doobie module code coverage report - scala 2.13.11

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%

@github-actions
Copy link

github-actions bot commented Feb 10, 2025

JaCoCo slick module code coverage report - scala 2.13.11

Overall Project 91.42% 🍏
Files changed 100% 🍏

File Coverage
SlickQuery.scala 100% 🍏
SlickFunction.scala 88.97% 🍏

@jakipatryk jakipatryk marked this pull request as ready for review February 10, 2025 18:17
r.map {
case statusWithData @ StatusWithData(_, _, Some(data)) => statusWithData.copy(data = Some(Some(data)))
case statusWithData @ StatusWithData(_, _, None) => statusWithData.copy(data = None)
}
Copy link
Collaborator

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!

Copy link
Collaborator

@lsulak lsulak left a 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

Copy link
Contributor

@salamonpavel salamonpavel left a 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.

Copy link
Contributor

@benedeki benedeki left a 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.

@jakipatryk jakipatryk merged commit 347288e into master Feb 18, 2025
6 of 10 checks passed
@jakipatryk jakipatryk deleted the feature/133-fix-doobie-error-when-status-is-not-ok-and-data-is-missing branch February 18, 2025 11:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Don't handle data part on error Status code query results

5 participants