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 additional data v2 #252

Merged

Conversation

salamonpavel
Copy link
Collaborator

@salamonpavel salamonpavel commented Aug 22, 2024

Introduces GET endpoint for retrieving partitioning's additional data
Closes #227

Release notes:

  • Introduces GET endpoint V2 for retrieval of additional data

@salamonpavel salamonpavel 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 22, 2024
@salamonpavel salamonpavel self-assigned this Aug 22, 2024
Copy link

github-actions bot commented Aug 22, 2024

JaCoCo model module code coverage report - scala 2.13.11

Overall Project 56.06% -2.38%
Files changed 0%

File Coverage
AdditionalDataItemDTO.scala 0% -66.67%

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

JaCoCo server module code coverage report - scala 2.13.11

Overall Project 77.76% -6.07% 🍏
Files changed 63.11%

File Coverage
AdditionalDataItemFromDB.scala 100% -1221.43%
PartitioningServiceImpl.scala 100% 🍏
BaseController.scala 100% 🍏
FlowControllerImpl.scala 100% 🍏
CheckpointControllerImpl.scala 100% 🍏
PartitioningControllerImpl.scala 90.91% 🍏
PartitioningRepositoryImpl.scala 84.43% -15.57%
GetPartitioningAdditionalDataV2.scala 56.41% -49.74%

@salamonpavel
Copy link
Collaborator Author

Release notes:

  • Introduces GET endpoint V2 for retrieval of additional data

@salamonpavel salamonpavel marked this pull request as ready for review August 23, 2024 08:17
@salamonpavel salamonpavel removed the work in progress Work on this item is not yet finished (mainly intended for PRs) label Aug 23, 2024
mapToSingleSuccessResponse(
serviceCall[AdditionalDataDTO, AdditionalDataDTO](
partitioningService.getPartitioningAdditionalDataV2(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.

Just an idea, what about having identity as the default parameter value? 🤔

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yup, good idea. Applied.

@@ -64,18 +64,36 @@ trait TestData {
protected val measureFromDB1: MeasureFromDB = MeasureFromDB(Some("count1"), Some(Seq("col_A1", "col_B1")))
protected val measureFromDB2: MeasureFromDB = MeasureFromDB(Some("count2"), Some(Seq("col_A2", "col_B2")))

// Additional Data
protected val additionalDataDTO1: InitialAdditionalDataDTO = Map(
// Initial Additional Data
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think initial is not descriptive enough (obviously not just here but also in the model's DTO) 🤔

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It's only a temporary name so that I can distinguish between newly created types and existing ones. The code related to InitialAdditionalData will be refactored to use the newly created classes. But it's going to be done in a separate PR in order to not affect scope of individual tickets.

@lsulak
Copy link
Collaborator

lsulak commented Aug 26, 2024

LGTM, just one comment regarding the initial AD (naming wise)

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

@salamonpavel salamonpavel merged commit 696e77f into master Aug 26, 2024
9 of 10 checks passed
@salamonpavel salamonpavel deleted the feature/227-getPartitioningAdditionalDataEndpointV2 branch August 26, 2024 16:07
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}/additional-data
3 participants