-
Notifications
You must be signed in to change notification settings - Fork 1
#305 Get-Ancestors-Server Functionality #312
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
Conversation
1. Made the necessary changes as mentioned by the team. 3. Made the necessary changes to the getAncestors Database functionality.
1. Made the necessary changes as mentioned by the team. 3. Made the necessary changes to the getAncestors Server functionality.
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
|
| @@ -0,0 +1,121 @@ | |||
| /* | |||
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 guess this shouldn't even be part of this PR as there is #311
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.
Removed
|
|
||
| object GetAncestorsResult { | ||
|
|
||
| @tailrec def resultsToPartitioningWithIdDTOs( |
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.
The very same code already exists in GetFlowPartitioning, maybe we could introduce some abstraction and reuse it here.
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 like the idea.
| final val Measures = "measures" | ||
| final val MainFlow = "main-flow" | ||
| final val Ancestors = "ancestors" | ||
| final val Parents = "parents" |
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.
not used
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.
Removed
| PartitioningController.getAncestors(partitioningId, limit, offset) | ||
| } | ||
| ), | ||
| // createServerEndpoint[ |
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.
Not part of this PR (the commented-out code). This goes for multiple places. You can remove all the code unrelated to this PR I think...
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.
Removed
salamonpavel
left a comment
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.
Please clean up this PR. It cannot contain unrelated code. You should introduce only code related to the server's part of get ancestor operation if that's what this PR is intended for.
server/src/main/scala/za/co/absa/atum/server/api/repository/PartitioningRepositoryImpl.scala
Outdated
Show resolved
Hide resolved
server/src/main/scala/za/co/absa/atum/server/api/repository/PartitioningRepositoryImpl.scala
Outdated
Show resolved
Hide resolved
server/src/test/scala/za/co/absa/atum/server/api/TestData.scala
Outdated
Show resolved
Hide resolved
- SeqImplicits
- SeqImplicits - ApiPaths
- SeqImplicits - ApiPaths - PartitioningController, PartitioningRepository, PartitioningService
- SeqImplicits - ApiPaths - PartitioningController, PartitioningRepository, PartitioningService, GetFlowPartitionings, GetPartitioningAncestors
- SeqImplicits - ApiPaths - PartitioningController, PartitioningRepository, PartitioningService, GetFlowPartitionings, GetPartitioningAncestors
# Conflicts: # server/src/main/scala/za/co/absa/atum/server/api/database/flows/functions/GetFlowPartitionings.scala # server/src/main/scala/za/co/absa/atum/server/api/http/Routes.scala # server/src/main/scala/za/co/absa/atum/server/api/v2/http/Endpoints.scala # server/src/main/scala/za/co/absa/atum/server/api/v2/repository/PartitioningRepositoryImpl.scala # server/src/test/scala/za/co/absa/atum/server/api/TestData.scala # server/src/test/scala/za/co/absa/atum/server/api/v2/http/GetPartitioningAncestorsEndpointV2UnitTests.scala
…05-Get-Ancestors-Server
This reverts commit e51582c.
Updated Jacoco Ignores
- "za.co.absa.atum.server.api.v2.service.PartitioningService",
- "za.co.absa.atum.server.api.v2.repository.PartitioningRepository",
- "za.co.absa.atum.server.api.v2.controller.PartitioningController"
…05-Get-Ancestors-Server
- Amended the `JacocoSetup.scala` excludes to include the following:
- "za.co.absa.atum.server.api.v2.service.PartitioningService",
- "za.co.absa.atum.server.api.v2.repository.PartitioningRepository",
- "za.co.absa.atum.server.api.v2.controller.PartitioningController"
server/src/main/scala/za/co/absa/atum/server/api/v2/http/Endpoints.scala
Outdated
Show resolved
Hide resolved
server/src/main/scala/za/co/absa/atum/server/model/PartitioningResult.scala
Show resolved
Hide resolved
# Conflicts: # project/JacocoSetup.scala # server/src/main/scala/za/co/absa/atum/server/Main.scala # server/src/main/scala/za/co/absa/atum/server/api/v2/controller/PartitioningController.scala # server/src/main/scala/za/co/absa/atum/server/api/v2/controller/PartitioningControllerImpl.scala # server/src/main/scala/za/co/absa/atum/server/api/v2/http/Endpoints.scala # server/src/main/scala/za/co/absa/atum/server/api/v2/repository/PartitioningRepository.scala # server/src/main/scala/za/co/absa/atum/server/api/v2/repository/PartitioningRepositoryImpl.scala # server/src/main/scala/za/co/absa/atum/server/api/v2/service/PartitioningService.scala # server/src/main/scala/za/co/absa/atum/server/api/v2/service/PartitioningServiceImpl.scala # server/src/test/scala/za/co/absa/atum/server/api/v2/controller/PartitioningControllerUnitTests.scala # server/src/test/scala/za/co/absa/atum/server/api/v2/repository/PartitioningRepositoryUnitTests.scala # server/src/test/scala/za/co/absa/atum/server/api/v2/service/PartitioningServiceUnitTests.scala
- Added a Unit test for `resultsToPartitioningWithIdDTOs` Signed-off-by: ABLL526 <Liam.Leibrandt@absa.africa>
Closes #305
Depends on #311
Release notes:
/api/v2/partitionings/{partitioning_id}/ancestorsto get the partitioning ancestors.