-
Notifications
You must be signed in to change notification settings - Fork 0
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
#5: Traits to support status_code reaction #32
#5: Traits to support status_code reaction #32
Conversation
* New exceptions for status code related failures * Documentation describing the standard status codes, how they have been agreed by the team * Mix-in trait for `DBFunction` for handling the status codes * `trait DBFunctionFabric` created to easy the creation of `DBFunction` mixing traits * `SlickPgFunction` refactored somewhat for easier `StatusHandling` trait integration
JaCoCo code coverage report - scala 2.11.12
|
JaCoCo code coverage report - scala 2.12.17
|
* Added UT
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.
Just read the code. Look good
.../src/test/scala/za/co/absa/fadb/statushandling/fadbstandard/StandardStatusHandlingTest.scala
Outdated
Show resolved
Hide resolved
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.
- pulled
- built
- test ran
- code review
.../src/test/scala/za/co/absa/fadb/statushandling/fadbstandard/StandardStatusHandlingTest.scala
Outdated
Show resolved
Hide resolved
examples/src/main/scala/za/co/absa/fadb/examples/enceladus/DatasetSchema.scala
Outdated
Show resolved
Hide resolved
…d/StandardStatusHandlingTest.scala Co-authored-by: miroslavpojer <[email protected]>
…asetSchema.scala Co-authored-by: miroslavpojer <[email protected]>
Yeah I noticed myself. I am in a middle of a bigger refactoring (which actually affects the class structure). And if I solve that - it's complicated - I will include the fix for |
core/src/main/scala/za/co/absa/fadb/statushandling/StatusHandling.scala
Outdated
Show resolved
Hide resolved
Co-authored-by: miroslavpojer <[email protected]>
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.
New a changes code could be covered by tests better, but this is part of bigger refactoring.
No QA increment present for origin code.
Technically this is not the refactoring but slowly enhancing the library (but refactoring is coming 😉 ) |
DBFunction
for handling the status codestrait DBFunctionFabric
created to easy the creation ofDBFunction
mixing traitsSlickPgFunction
refactored somewhat for easierStatusHandling
trait integrationThis can still be improved upon, but would be better after particularly #6, #7 and #8. (Some major refactoring might be still in order. But the status code traits will remain (mostly) how introduced here.)
Closes #5