-
Notifications
You must be signed in to change notification settings - Fork 1
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
base: master
Are you sure you want to change the base?
#245 Add the ability to query REST endpoints from Reader module #297
Conversation
* created new module Info * the new modul added to JaCoco and CI routines
* JaCoCo exclusion for model
* created Provider to query the data from server * support for Future, IO, and ZIO based providers * work in progress
* fixed license headers
JaCoCo model module code coverage report - scala 2.13.11
|
JaCoCo agent module code coverage report - scala 2.13.11
|
JaCoCo reader module code coverage report - scala 2.13.11
|
JaCoCo server module code coverage report - scala 2.13.11
|
reader/src/main/scala/za/co/absa/atum/reader/server/GenericServerConnection.scala
Outdated
Show resolved
Hide resolved
This item depends on: |
…endpoints-from-info-module
model/src/main/scala/za/co/absa/atum/model/utils/JsonSyntaxExtensions.scala
Outdated
Show resolved
Hide resolved
model/src/test/scala/za/co/absa/atum/testing/implicits/StringImplicits.scala
Outdated
Show resolved
Hide resolved
reader/src/main/scala-2.13/za/co/absa/atum/reader/implicits/zio.scala
Outdated
Show resolved
Hide resolved
reader/src/main/scala/za/co/absa/atum/reader/implicits/io.scala
Outdated
Show resolved
Hide resolved
reader/src/test/scala-2.13/za/co/absa/atum/reader/basic/Reader_ZIOUnitTests.scala
Outdated
Show resolved
Hide resolved
reader/src/test/scala/za/co/absa/atum/reader/basic/Reader_CatsIOUnitTests.scala
Outdated
Show resolved
Hide resolved
reader/src/main/scala/za/co/absa/atum/reader/basic/Reader.scala
Outdated
Show resolved
Hide resolved
reader/src/main/scala/za/co/absa/atum/reader/basic/ReaderWithPartitioningId.scala
Outdated
Show resolved
Hide resolved
echo "Total 'model' module coverage ${{ steps.jacoco-model.outputs.coverage-overall }}" | ||
echo "Changed files of 'model' module coverage ${{ steps.jacoco-model.outputs.coverage-changed-files }}" | ||
echo "Total 'server' module coverage ${{ steps.jacoco-server.outputs.coverage-overall }}" | ||
echo "Changed files of'server' module coverage ${{ steps.jacoco-server.outputs.coverage-changed-files }}" |
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.
echo "Changed files of'server' module coverage ${{ steps.jacoco-server.outputs.coverage-changed-files }}" | |
echo "Changed files of 'server' module coverage ${{ steps.jacoco-server.outputs.coverage-changed-files }}" |
@@ -247,6 +246,7 @@ Code coverage wil be generated on path: | |||
To make this project runnable via IntelliJ, do the following: | |||
- Make sure that your configuration in `server/src/main/resources/reference.conf` | |||
is configured according to your needs | |||
- When building within the UI be sure to have the option `-language:higherKinds` on in the compiler options |
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.
I don't understand - what UI do you mean?
case Right(value) => value | ||
case Left(error) => throw new RuntimeException(s"Failed to decode JSON: $error") | ||
case Left(error) => throw error |
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.
why removing the prefix of the exception msg? I think it was quite useful, we would exactly know what this is coming from
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.
Should we not add some failure tests as well?
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.
Should we not add some failure tests as well?
@@ -82,9 +84,10 @@ class PartitioningIdProviderUnitTests extends AnyFunSuiteLike { | |||
} | |||
} | |||
|
|||
test("Failure to decode response body") { | |||
test("Failure to decode res " + |
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.
accidental line break maybe?
Reader
andReaderWithPartitioningId
base classes for all readers - they are to bringAtum server connectivity/querying abilityRequestResult[R]
represents an Atum server query response.MonadError
type class needed forReader
andReaderWithPartitioningId
- there areFuture
, CatsIO
and ZioTask
ones (the last one available only in Scala 2.13)AtumPartitions
andAdditionalData
moved from Agent to ModuleErrorResponse
received a method to decode from Json based on http status codeCloses #245
Depends on #300
Release Notes: