Skip to content
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

Merged
merged 7 commits into from
May 31, 2023

Conversation

benedeki
Copy link
Contributor

  • 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

This 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

* 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
@github-actions
Copy link

github-actions bot commented May 29, 2023

JaCoCo code coverage report - scala 2.11.12

File Coverage [64.21%]
StandardStatusHandling.scala 100% 🍏
DBFailException.scala 100% 🍏
StatusException.scala 88.37% 🍏
DBFunction.scala 62.18%
DBFunctionFabric.scala 0%
StatusHandling.scala 0%
SlickPgFunction.scala 0%
Total Project Coverage 65.86% 🍏

@github-actions
Copy link

github-actions bot commented May 29, 2023

JaCoCo code coverage report - scala 2.12.17

File Coverage [61.46%]
StandardStatusHandling.scala 100% 🍏
DBFailException.scala 100% 🍏
StatusException.scala 88.37% 🍏
DBFunction.scala 48.28%
DBFunctionFabric.scala 0%
StatusHandling.scala 0%
SlickPgFunction.scala 0%
Total Project Coverage 62.58% 🍏

* Added UT
Copy link
Contributor

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

Copy link
Contributor

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

@miroslavpojer
Copy link
Contributor

This is not a goal of this PR, but I see that it is not following project name conventions. (Selected int the picture)
image

benedeki and others added 2 commits May 30, 2023 09:29
…d/StandardStatusHandlingTest.scala

Co-authored-by: miroslavpojer <[email protected]>
@benedeki
Copy link
Contributor Author

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 naming_conventions there.

Copy link
Contributor

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

@benedeki
Copy link
Contributor Author

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 😉 )

@benedeki benedeki merged commit 597b449 into master May 31, 2023
@benedeki benedeki deleted the feature/5-traits-to-support-status_code-reaction branch May 31, 2023 08:42
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.

Traits to support status_code reaction
3 participants