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

#7: Move the code from atum-service into this repository #10

Conversation

benedeki
Copy link
Contributor

Transfer of the code from Atum repo PR

Closes #7

@benedeki benedeki added the work in progress Work on this item is not yet finished (mainly intended for PRs) label Nov 22, 2023
Copy link
Collaborator

@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
  • code reviewed
  • unit test design - work in progress
  • Integration test design - work in progress

.gitignore Outdated Show resolved Hide resolved
build.sbt Show resolved Hide resolved
balta/src/main/scala/za/co/absa/balta/DBTestSuite.scala Outdated Show resolved Hide resolved
Co-authored-by: miroslavpojer <miroslav.pojer@absa.africa>
@benedeki
Copy link
Contributor Author

  • pulled
  • built
  • code reviewed
  • unit test design - work in progress
  • Integration test design - work in progress

Do we need/expect integration tests for this support library? 🤔

@miroslavpojer
Copy link
Collaborator

  • pulled
  • built
  • code reviewed
  • unit test design - work in progress
  • Integration test design - work in progress

Do we need/expect integration tests for this support library? 🤔

Only write it down to be part of design process. Integration test will each usage of this library for test creation.

@miroslavpojer
Copy link
Collaborator

See related PR - adding support of JaCoCo - #12.

@benedeki benedeki removed the work in progress Work on this item is not yet finished (mainly intended for PRs) label Dec 4, 2023
@benedeki benedeki self-assigned this Dec 5, 2023

package object implicits {

implicit def tableOwnerConnection(in: DBConnection): Connection = in.connection
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand this name. I think it's too context specific, but what this does it just an implicit conversion from one type of DB connection to another one

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix coming

* @param params - the list of parameters
*/
sealed abstract class DBFunction private(functionName: String,
params: ListMap[Either[Int, String], SetterFnc]) extends DBQuerySupport {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
params: ListMap[Either[Int, String], SetterFnc]) extends DBQuerySupport {
params: ParamsMap) extends DBQuerySupport {

you also need to import ParamsMap so that it's visible in this scope

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice spot

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.

It would be good to document some usages / supported types etc into README, but otherwise really good work, I like the Either approach you chose, apart from many other things :)

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.

LGTM, pulled, built, reviewed 👍

@benedeki benedeki merged commit 8778d5f into master Dec 8, 2023
2 checks passed
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.

Move the code from atum-service into this repository
3 participants