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

#305 Get-Ancestors-Server Functionality #312

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ABLL526
Copy link

@ABLL526 ABLL526 commented Jan 21, 2025

Added the getAncestors Functionality for the Server Portion

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.
Copy link

JaCoCo model module code coverage report - scala 2.13.11

Overall Project 58.76% 🍏

There is no coverage information present for the Files changed

Copy link

JaCoCo agent module code coverage report - scala 2.13.11

Overall Project 78.2% 🍏

There is no coverage information present for the Files changed

Copy link

JaCoCo reader module code coverage report - scala 2.13.11

Overall Project 90.86% 🍏

There is no coverage information present for the Files changed

Copy link

JaCoCo server module code coverage report - scala 2.13.11

Overall Project 68.76% -6.62% 🍏
Files changed 62.68%

File Coverage
PartitioningRepositoryImpl.scala 100% 🍏
PartitioningServiceImpl.scala 100% 🍏
PartitioningControllerImpl.scala 92.72% 🍏
GetAncestors.scala 70.96%

@ABLL526 ABLL526 self-assigned this Jan 21, 2025
@ABLL526 ABLL526 added enhancement New feature or request good first issue Good for newcomers DB Issues touching the Database part of the project Server Issues touching the server part of the project labels Jan 21, 2025
@ABLL526 ABLL526 changed the title 305-Get-Ancestors-Server $305 Get-Ancestors-Server Functionality Jan 21, 2025
@ABLL526 ABLL526 changed the title $305 Get-Ancestors-Server Functionality #305 Get-Ancestors-Server Functionality Jan 21, 2025
@@ -0,0 +1,121 @@
/*
Copy link
Collaborator

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


object GetAncestorsResult {

@tailrec def resultsToPartitioningWithIdDTOs(
Copy link
Collaborator

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.

@@ -40,6 +40,8 @@ object ApiPaths {
final val Flows = "flows"
final val Measures = "measures"
final val MainFlow = "main-flow"
final val Ancestors = "ancestors"
final val Parents = "parents"
Copy link
Collaborator

Choose a reason for hiding this comment

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

not used

PartitioningController.getAncestors(partitioningId, limit, offset)
}
),
// createServerEndpoint[
Copy link
Collaborator

@salamonpavel salamonpavel Jan 28, 2025

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...

Copy link
Collaborator

@salamonpavel salamonpavel left a 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DB Issues touching the Database part of the project enhancement New feature or request good first issue Good for newcomers 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}/parents -> returns all ancestors, not just direct ones
2 participants