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

get partitioning measures: 229 #249

Merged
merged 35 commits into from
Sep 4, 2024

Conversation

TebaleloS
Copy link
Collaborator

@TebaleloS TebaleloS commented Aug 20, 2024

Release notes:

  • Endpoint functionality to get partitioning measures by partitioning ID.
  • Defined SQL function to get the measures by ID.
  • Defined and implemented the class to call the DB function.
  • Implemented the endpoint functionality all the way from the repository to the endpoint.
  • Added integration and unit tests.

@TebaleloS TebaleloS self-assigned this Aug 20, 2024
Copy link

github-actions bot commented Aug 20, 2024

JaCoCo model module code coverage report - scala 2.13.11

Overall Project 63.64% 🍏

There is no coverage information present for the Files changed

Copy link

github-actions bot commented Aug 20, 2024

JaCoCo agent module code coverage report - scala 2.13.11

Overall Project 85.84% 🍏

There is no coverage information present for the Files changed

Copy link

github-actions bot commented Aug 20, 2024

JaCoCo server module code coverage report - scala 2.13.11

Overall Project 76.47% -1.11% 🍏
Files changed 87.6% 🍏

File Coverage
PartitioningRepositoryImpl.scala 100% 🍏
PartitioningServiceImpl.scala 100% 🍏
PartitioningControllerImpl.scala 80.9% -12.36%
GetPartitioningMeasuresById.scala 80% -28.82% 🍏

# Conflicts:
#	server/src/main/scala/za/co/absa/atum/server/api/controller/PartitioningController.scala
#	server/src/main/scala/za/co/absa/atum/server/api/controller/PartitioningControllerImpl.scala
#	server/src/main/scala/za/co/absa/atum/server/api/repository/PartitioningRepositoryImpl.scala
#	server/src/main/scala/za/co/absa/atum/server/api/service/PartitioningServiceImpl.scala
#	server/src/test/scala/za/co/absa/atum/server/api/repository/PartitioningRepositoryUnitTests.scala
# Conflicts:
#	server/src/main/scala/za/co/absa/atum/server/api/controller/PartitioningController.scala
#	server/src/main/scala/za/co/absa/atum/server/api/controller/PartitioningControllerImpl.scala
#	server/src/main/scala/za/co/absa/atum/server/api/http/Endpoints.scala
#	server/src/main/scala/za/co/absa/atum/server/api/http/Routes.scala
#	server/src/main/scala/za/co/absa/atum/server/api/repository/PartitioningRepository.scala
#	server/src/main/scala/za/co/absa/atum/server/api/repository/PartitioningRepositoryImpl.scala
#	server/src/main/scala/za/co/absa/atum/server/api/service/PartitioningService.scala
#	server/src/main/scala/za/co/absa/atum/server/api/service/PartitioningServiceImpl.scala
#	server/src/test/scala/za/co/absa/atum/server/api/repository/PartitioningRepositoryUnitTests.scala
#	server/src/test/scala/za/co/absa/atum/server/api/service/PartitioningServiceUnitTests.scala
@TebaleloS TebaleloS added Server Issues touching the server part of the project work in progress Work on this item is not yet finished (mainly intended for PRs) labels Aug 30, 2024
@TebaleloS
Copy link
Collaborator Author

TebaleloS commented Aug 30, 2024

Release notes:

  • Endpoint functionality to get partitioning measures by partitioning ID.
  • Defined SQL function to get the measures by ID.
  • Defined and implemented the class to call the DB function.
  • Implemented the endpoint functionality all the way from the repository to the endpoint.
  • Added integration and unit tests.

Copy link

github-actions bot commented Sep 2, 2024

JaCoCo reader module code coverage report - scala 2.13.11

Overall Project 100% 🍏

There is no coverage information present for the Files changed

@TebaleloS TebaleloS marked this pull request as ready for review September 2, 2024 18:40
@TebaleloS TebaleloS removed the work in progress Work on this item is not yet finished (mainly intended for PRs) label Sep 2, 2024
@@ -71,7 +71,8 @@ trait BaseEndpoints {
oneOf[ErrorResponse](
badRequestOneOfVariant,
generalErrorOneOfVariant,
internalServerErrorOneOfVariant
internalServerErrorOneOfVariant,
notFoundErrorOneOfVariant
Copy link
Collaborator

@salamonpavel salamonpavel Sep 4, 2024

Choose a reason for hiding this comment

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

Not here in the base endpoint, add this to the getPartitioningMeasuresEndpointV2. The base endpoint should provide only things common to every single endpoint. Looking at the getPartitioningMeasuresEndpointV2 it's actually already there so what was the reason to add it here as well?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I actually didn't check it. Thank you for the alert, I will remove it.

failsWithA[NotFoundDatabaseError]
)
},
test("Returns expected DatabaseError") {
Copy link
Collaborator

Choose a reason for hiding this comment

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

GeneralDatabaseError

# Conflicts:
#	server/src/main/scala/za/co/absa/atum/server/api/controller/PartitioningControllerImpl.scala
salamonpavel
salamonpavel previously approved these changes Sep 4, 2024
TebaleloS and others added 2 commits September 4, 2024 13:12
…tioningMeasuresByIdV2IntegrationTests.scala

Co-authored-by: David Benedeki <14905969+benedeki@users.noreply.github.com>
…tioningMeasuresByIdV2IntegrationTests.scala

Co-authored-by: David Benedeki <14905969+benedeki@users.noreply.github.com>
Copy link
Contributor

@benedeki benedeki left a comment

Choose a reason for hiding this comment

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

  • code reviewed
  • pulled
  • built
  • run

@TebaleloS TebaleloS merged commit d31eded into master Sep 4, 2024
10 checks passed
@TebaleloS TebaleloS deleted the feature/229-get-partitioning-measures branch September 4, 2024 11:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Server Issues touching the server part of the project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants