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

#245 Add the ability to query REST endpoints from Reader module #297

Conversation

benedeki
Copy link
Contributor

@benedeki benedeki commented Nov 1, 2024

  • Implemented Reader and PartitioningIdProvider base classes for all readers - they are to bringAtum server connectivity/querying ability
  • Created 'ServerConfig' case class representing values needed to connect to an Atum Server
  • RequestResult[R] represents an Atum server query response.
  • Offered implicits for MonadError type class needed for Reader and ReaderWithPartitioningId - there are Future, Cats IO
  • AtumPartitions and AdditionalData moved from Agent to Module
  • ErrorResponse received a method to decode from Json based on http status code

Closes #245

Depends on #300

Release Notes:

  • Reader module now supports connection to Atum server.

@benedeki benedeki added the work in progress Work on this item is not yet finished (mainly intended for PRs) label Nov 1, 2024
@benedeki benedeki self-assigned this Nov 1, 2024
Copy link

github-actions bot commented Nov 1, 2024

JaCoCo model module code coverage report - scala 2.13.11

Overall Project 58.76% -34.41% 🍏
Files changed 66.75%

File Coverage
JsonSyntaxExtensions.scala 94.34% -5.66% 🍏
ErrorResponse.scala 89.66%
basic.scala 47.17%

Copy link

github-actions bot commented Nov 1, 2024

JaCoCo agent module code coverage report - scala 2.13.11

Overall Project 78.2% 🍏
Files changed 100% 🍏

File Coverage
AtumAgent.scala 97.13% 🍏
AtumContext.scala 91.79% 🍏

Copy link

github-actions bot commented Nov 1, 2024

JaCoCo reader module code coverage report - scala 2.13.11

Overall Project 90.86% 🍏
Files changed 40.31%

File Coverage
FlowReader.scala 100% -35.71%
PartitioningReader.scala 100%
Reader.scala 100% -6.56% 🍏
PartitioningIdProvider.scala 100% 🍏
io.scala 100% 🍏
future.scala 100% 🍏
ServerConfig.scala 88.24%
RequestResult.scala 12.5%

Copy link

github-actions bot commented Nov 1, 2024

JaCoCo server module code coverage report - scala 2.13.11

Overall Project 68.39% 🍏

There is no coverage information present for the Files changed

@benedeki benedeki marked this pull request as ready for review November 6, 2024 12:12
README.md Outdated Show resolved Hide resolved
Copy link

Choose a reason for hiding this comment

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

Should we not add some failure tests as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The test now doesn't really test anything. They just ensure coverage numbers 🙄 .
The whole class is just a shell now, content will come in future tickets.

Copy link

Choose a reason for hiding this comment

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

Should we not add some failure tests as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ditto, just a shell of class.

salamonpavel
salamonpavel previously approved these changes Dec 4, 2024
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 didn't go very very deep and didn't try this on my localhost, but it looks good to me, approving

@benedeki benedeki merged commit fec3db4 into master Dec 4, 2024
9 checks passed
@benedeki benedeki deleted the feature/245-add-the-ability-to-query-rest-endpoints-from-info-module branch December 4, 2024 16:53
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.

Add the ability to query REST endpoints from Reader module
4 participants