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 endpoint v2 implementation #226: #240

Merged

Conversation

TebaleloS
Copy link
Collaborator

@TebaleloS TebaleloS commented Aug 6, 2024

Release notes:

  • Define and implemented PL/PG SQL function to retrieve partitioning by id.
  • Implement the endpoint functionality to retrieve partitioning by id.
  • Added Unit and integration tests.

Closes #226

@TebaleloS TebaleloS self-assigned this Aug 6, 2024
@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 6, 2024
@TebaleloS
Copy link
Collaborator Author

Release notes:

Get partitioning endpoint implementation.

@TebaleloS TebaleloS removed the work in progress Work on this item is not yet finished (mainly intended for PRs) label Aug 20, 2024
Base automatically changed from feature/232-post-checkpoint to master August 21, 2024 06:19
…implementation

# Conflicts:
#	server/src/main/scala/za/co/absa/atum/server/Main.scala
#	server/src/main/scala/za/co/absa/atum/server/api/controller/BaseController.scala
#	server/src/main/scala/za/co/absa/atum/server/api/controller/CheckpointController.scala
#	server/src/main/scala/za/co/absa/atum/server/api/controller/CheckpointControllerImpl.scala
#	server/src/main/scala/za/co/absa/atum/server/api/database/runs/functions/WriteCheckpointV2.scala
#	server/src/main/scala/za/co/absa/atum/server/api/exception/AppError.scala
#	server/src/main/scala/za/co/absa/atum/server/api/http/BaseEndpoints.scala
#	server/src/main/scala/za/co/absa/atum/server/api/http/Endpoints.scala
#	server/src/main/scala/za/co/absa/atum/server/api/repository/BaseRepository.scala
#	server/src/main/scala/za/co/absa/atum/server/api/repository/CheckpointRepository.scala
#	server/src/main/scala/za/co/absa/atum/server/api/repository/CheckpointRepositoryImpl.scala
#	server/src/main/scala/za/co/absa/atum/server/api/service/BaseService.scala
#	server/src/main/scala/za/co/absa/atum/server/api/service/CheckpointService.scala
#	server/src/main/scala/za/co/absa/atum/server/api/service/CheckpointServiceImpl.scala
#	server/src/main/scala/za/co/absa/atum/server/model/CheckpointFromDB.scala
#	server/src/test/scala/za/co/absa/atum/server/api/TestData.scala
#	server/src/test/scala/za/co/absa/atum/server/api/controller/CheckpointControllerUnitTests.scala
#	server/src/test/scala/za/co/absa/atum/server/api/controller/PartitioningControllerUnitTests.scala
#	server/src/test/scala/za/co/absa/atum/server/api/database/runs/functions/WriteCheckpointV2IntegrationTests.scala
#	server/src/test/scala/za/co/absa/atum/server/api/http/PostCheckpointEndpointV2UnitTests.scala
#	server/src/test/scala/za/co/absa/atum/server/api/repository/CheckpointRepositoryUnitTests.scala
#	server/src/test/scala/za/co/absa/atum/server/api/service/CheckpointServiceUnitTests.scala
#	server/src/test/scala/za/co/absa/atum/server/api/service/PartitioningServiceUnitTests.scala
Copy link

github-actions bot commented Aug 23, 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

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 23, 2024

JaCoCo server module code coverage report - scala 2.13.11

Overall Project 75.95% -8.99% 🍏
Files changed 70.65%

File Coverage
PartitioningFromDB.scala 100% -1364.29%
PartitioningServiceImpl.scala 100% 🍏
BaseController.scala 100% 🍏
PartitioningControllerImpl.scala 92.21% 🍏
PartitioningRepositoryImpl.scala 85.95% 🍏
GetPartitioningById.scala 42.9% -91.09%

import za.co.absa.db.fadb.status.{FunctionStatus, Row}
import zio._
import zio.interop.catz.asyncInstance
import zio.test.Assertion.failsWithA
import zio.test._
import zio.test.{assertZIO, _}
Copy link
Collaborator

Choose a reason for hiding this comment

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

import zio.test._

mapToSingleSuccessResponse(
serviceCall[PartitioningWithIdDTO, PartitioningWithIdDTO](
partitioningService.getPartitioning(partitioningId),
identity
Copy link
Contributor

Choose a reason for hiding this comment

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

Small:
Can be omitted, as identity is now default.

benedeki
benedeki previously approved these changes Aug 28, 2024
Copy link

JaCoCo reader module code coverage report - scala 2.13.11

Overall Project 100% 🍏

There is no coverage information present for the Files changed

@benedeki
Copy link
Contributor

The failing test coverage has bee investigated. It's caused by inaccurate measuring by JaCoco. Nothing to do about it now.

@benedeki benedeki merged commit 48a7a32 into master Aug 30, 2024
9 of 10 checks passed
@benedeki benedeki deleted the feature/#226-get-partitioning-endpoint-V2-implementation branch August 30, 2024 06:44
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.

GET /partitionings/{partId}
3 participants