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

#59: create adjust endpoint for reading checkpoint defintion of partioning #96

Conversation

TebaleloS
Copy link
Collaborator

@TebaleloS TebaleloS commented Oct 25, 2023

Retrieve checkpoint endpoint

  • Defined endpoint for creating partitioning.
  • Prepared the service method that will be used to create parting if it doesn't exist.
  • Added a case class that defines the fields that will be used to retrieve the checkpoint definition when creating the partitioning.

Closes #59

TebaleloS and others added 23 commits September 14, 2023 10:06
…ver-adjustments' into feature/#50-Create-or-adjust-endpoint-for-accepting-and-saving-checkpoint-data

# Conflicts:
#	server/src/main/scala/za/co/absa/atum/web/model/Checkpoint.scala
…ver-adjustments' into feature/#50-Create-or-adjust-endpoint-for-accepting-and-saving-checkpoint-data

# Conflicts:
#	project/plugins.sbt
@TebaleloS TebaleloS changed the title create adjust endpoint for reading checkpoint defintion of partioning: 59 #59: create adjust endpoint for reading checkpoint defintion of partioning Oct 25, 2023
@TebaleloS TebaleloS force-pushed the feature/#59-Create-adjust-endpoint-for-reading-checkpoint-defintion-of-partioning branch from 7bda244 to 2db07ba Compare November 3, 2023 13:17
@TebaleloS TebaleloS force-pushed the feature/#59-Create-adjust-endpoint-for-reading-checkpoint-defintion-of-partioning branch from e16e9d0 to ed5a6bf Compare November 8, 2023 10:33
Copy link

github-actions bot commented Nov 8, 2023

JaCoCo agent module code coverage report - spark:2 - scala 2.12.12

There is no coverage information present for the Files changed

Total Project Coverage 83.26% 🍏

Copy link

github-actions bot commented Nov 8, 2023

JaCoCo server module code coverage report - scala 2.12.12

File Coverage [70%]
AtumConfig.scala 100% 🍏
TestService.scala 100% 🍏
PostgresAccessProvider.scala 95.45% 🍏
BaseConfig.scala 66.67%
DatabaseService.scala 25.81%
Partition.scala 0%
Total Project Coverage 17.16%

@TebaleloS TebaleloS force-pushed the feature/#59-Create-adjust-endpoint-for-reading-checkpoint-defintion-of-partioning branch from 4bd6d03 to a92e1ba Compare November 9, 2023 12:31
@lsulak lsulak added the work in progress Work on this item is not yet finished (mainly intended for PRs) label Nov 10, 2023
/**
* Function to retrieve checkpoint based on the provided fields
*
* @param filterCriteria JSON object containing the fields for filtering the checkpoint
Copy link
Collaborator

Choose a reason for hiding this comment

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

what is this filterCriteria about? I saw it elsewhere 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.

It has being changed to partitioningInfo.


test("testReadCheckpoint") {}

test("testPostgresAccessProvider") {}
Copy link
Collaborator

Choose a reason for hiding this comment

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

this doesn't really test anything, is it still in progress?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, it was just a preparation and I forgot to remove them because the implementation was totally wrong.

@lsulak
Copy link
Collaborator

lsulak commented Nov 10, 2023

I really need this so I fixed the merge conflicts and did some refactoring. Apologies @TebaleloS, I know that it's not a good practice to do this, but I want to work on the #23 during the weekend a bit.

I also removed the Partitioning Created DTO you created, because PartitioningDTO is perfectly suitable for the job now I think. If something is missing, we can add it there, not creating a new DTO that is almost the same as the old one.

@lsulak
Copy link
Collaborator

lsulak commented Nov 10, 2023

The build is failing because of the unit tests in DatabaseServiceTest - when I commented it out, it was fully working

@lsulak lsulak closed this Nov 14, 2023
@lsulak
Copy link
Collaborator

lsulak commented Nov 14, 2023

Closing, replaced by #121 and future PR related to the DB tests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
work in progress Work on this item is not yet finished (mainly intended for PRs)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create (adjust) endpoint for reading checkpoint defintion of partioning
2 participants