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 Atum Context, by getting existing partitioning from DB - retrieve Measures and AdditionalData for a given partitioning #120

Closed
lsulak opened this issue Nov 13, 2023 · 1 comment · Fixed by #167
Assignees
Labels
enhancement New feature or request Server Issues touching the server part of the project

Comments

@lsulak
Copy link
Collaborator

lsulak commented Nov 13, 2023

Background

It's needed that the endpoint returns actual data.

Feature

What the ticket says, see the endpoint related to create partitioning event.

Proposed Solution [Optional]

Solution Ideas:

  1. Create Fa-DB classes for runs.get_partitioning_measures and runs.get_partitioning_additional_data DB functions
  2. Call them in PartitioningController (PartitioningController.createPartitioningIfNotExists)

Depends on #169

@lsulak lsulak added enhancement New feature or request DB Issues touching the Database part of the project Server Issues touching the server part of the project labels Nov 13, 2023
@benedeki benedeki removed the DB Issues touching the Database part of the project label Mar 6, 2024
TebaleloS added a commit that referenced this issue Mar 11, 2024
TebaleloS added a commit that referenced this issue Mar 12, 2024
TebaleloS added a commit that referenced this issue Mar 12, 2024
…nd-AdditionalData-for-a-given-partitioning' into feature/#120-retrieve-Measures-and-AdditionalData-for-a-given-partitioning
@benedeki benedeki added the dependent The item depends on some other open item (Issue or PR) label Mar 13, 2024
TebaleloS added a commit that referenced this issue Mar 19, 2024
TebaleloS added a commit that referenced this issue Mar 19, 2024
TebaleloS added a commit that referenced this issue Mar 19, 2024
TebaleloS added a commit that referenced this issue Mar 20, 2024
…nalData-for-a-given-partitioning

# Conflicts:
#	server/src/main/scala/za/co/absa/atum/server/Main.scala
#	server/src/main/scala/za/co/absa/atum/server/api/controller/PartitioningController.scala
#	server/src/main/scala/za/co/absa/atum/server/api/repository/PartitioningRepository.scala
#	server/src/main/scala/za/co/absa/atum/server/api/service/PartitioningService.scala
TebaleloS added a commit that referenced this issue Mar 20, 2024
TebaleloS added a commit that referenced this issue Apr 2, 2024
TebaleloS added a commit that referenced this issue Apr 2, 2024
TebaleloS added a commit that referenced this issue Apr 2, 2024
TebaleloS added a commit that referenced this issue Apr 4, 2024
TebaleloS added a commit that referenced this issue Apr 4, 2024
@benedeki benedeki removed the dependent The item depends on some other open item (Issue or PR) label Apr 4, 2024
@benedeki
Copy link
Contributor

benedeki commented Apr 4, 2024

TebaleloS added a commit that referenced this issue Apr 11, 2024
TebaleloS added a commit that referenced this issue Apr 11, 2024
TebaleloS added a commit that referenced this issue Apr 15, 2024
TebaleloS added a commit that referenced this issue Apr 17, 2024
TebaleloS added a commit that referenced this issue Apr 17, 2024
TebaleloS added a commit that referenced this issue Apr 17, 2024
TebaleloS added a commit that referenced this issue Apr 17, 2024
TebaleloS added a commit that referenced this issue Apr 18, 2024
TebaleloS added a commit that referenced this issue Apr 18, 2024
TebaleloS added a commit that referenced this issue Apr 19, 2024
TebaleloS added a commit that referenced this issue Apr 19, 2024
TebaleloS added a commit that referenced this issue Apr 25, 2024
lsulak added a commit that referenced this issue Apr 25, 2024
… by current fa-db version (but will be soon)
TebaleloS added a commit that referenced this issue Apr 26, 2024
TebaleloS added a commit that referenced this issue Apr 26, 2024
TebaleloS added a commit that referenced this issue Apr 26, 2024
TebaleloS added a commit that referenced this issue Apr 26, 2024
TebaleloS added a commit that referenced this issue Apr 26, 2024
TebaleloS added a commit that referenced this issue Apr 26, 2024
lsulak added a commit that referenced this issue Apr 26, 2024
…#120-retrieve-Measures-and-AdditionalData-for-a-given-partitioning

# Conflicts:
#	database/src/main/postgres/flows/V1.7.4__flows.alter.ddl
#	database/src/test/scala/za/co/absa/atum/database/runs/GetPartitioningAdditionalDataTest.scala
#	database/src/test/scala/za/co/absa/atum/database/runs/GetPartitioningMeasuresTest.scala
TebaleloS added a commit that referenced this issue Apr 30, 2024
… Measures and AdditionalData for a given partitioning #120 (#167)

* Fixes #120 - Added class to call partitioning measures function

* Fixes #120 - Removed status 16 option from the DB function associated with the partitioning

* Fixes #120 - Changed measures function definitions

* Fixes #120 - defined the class to communicate with get_partitioning_additional_data function

* Fixes #120 - implementing the repository of get_partitioning_additional_data function

* Fixes #120 - Calling getPartioningAdditionalData of the repo in the service

* Fixes #120 - Calling getPartioningAdditionalData of the repo in the service

* Fixes #120 - added value parameters

* Fixes #120 - Merged master

* Fixes #120 - refactored the controller added computation method in the service

* Fixes #120 - refactored the controller added computation method in the service

* Fixes #120 - changed type from error response to service error

* Fixes #120 - Changed inheritance from service trat to implementation

* Fixes #120 - Fixing bugs

* Fixes #120 - Fixing type mismatch

* Fixes #120 - removed unused imports

* Fixes #120 - Adding implicit conversion

* Fixes #120 - Added package object

* implicits needed for Read instance derivation

* Fixes #120 - Fixing bugs in PartitioningRepositorySpec

* Fixes #120 - removed dead code in PartitioningRepositorySpec

* Fixes #120 - fixing type mismatch in PartitioningRepositorySpec

* Fixes #120 - Adding test cases in PartitioningRepositorySpec

* Fixes #120 - Adding test cases

* Fixes #120 - Adding test cases for db function

* Fixes #120 - Adding and fixing test cases for db function

* Fixes #120 - removing dead code

* Fixes #120 - refactoring function name

* Fixes #120 - Applying GitHub comments

* Fixes #120 - Applying GitHub comments

* Fixes #120 - Fixing bugs

* Fixes #120 - Fixing repository test cases bugs

* Fixes #120 - removing println

* Fixes #120 - Fixing bugs from ControllerSpec

* Fixes #120 - Adding more items to measure sequence

* Fixes #120 - Removing dead code

* Closes #120

* Close #120 - Applying GitHub comments

* Close #120 - Addressing GitHub comments

* Testing #120 db integration

* Closes #120 - Cleaning unwanted code lines

* Closes #120 - Fixing the build

* Closes #120 - Fixing the build

* Closes #120 - Fixing the tests

* Closes #120 - Fixing the tests

* Closes #120 - Fixing the tests cases

* fixing the balta tests

* * Fixing jacoco_check.yml setup (hopefully)

* * Decreasing overall coverage req

* jacoco excludes

* added tests, decreased coverage level, added jacoco exclusions

---------

Co-authored-by: Pavel Salamon <salamonpavel@gmail.com>
Co-authored-by: Ladislav Sulak <laco.sulak@gmail.com>
Co-authored-by: David Benedeki <benedeki@volny.cz>
TebaleloS added a commit that referenced this issue May 7, 2024
…#191)

* Fixes #189 - Define and implemented a db function to return the checkpoint

* Fixes #189 - Modifying a db function

* Fixes #189 - Modifying a db function

* Fixes #189 - Adding test cases

* Fixes #189 - Added two input fields to the db function

* Fixes #189 - Fixing type mismatch

* Testing #120 db integration

* Fixes #189 - Adding test cases

* Fixes #189 - Changing back the details of flows.flows

* Fixes #189 - Implementing GitHub comments

* Update database/src/main/postgres/runs/V1.8.3__get_partitioning_checkpoint.sql

Co-authored-by: David Benedeki <14905969+benedeki@users.noreply.github.com>

* Update database/src/main/postgres/runs/V1.8.3__get_partitioning_checkpoint.sql

Co-authored-by: David Benedeki <14905969+benedeki@users.noreply.github.com>

* Update database/src/main/postgres/runs/V1.8.3__get_partitioning_checkpoint.sql

Co-authored-by: David Benedeki <14905969+benedeki@users.noreply.github.com>

* Update database/src/main/postgres/runs/V1.8.3__get_partitioning_checkpoint.sql

Co-authored-by: David Benedeki <14905969+benedeki@users.noreply.github.com>

* Fixes #189 - Addressing GitHub comments

* Closes #189

* Closes #189 - Addressing GitHub comments

* Closes #189 - Addressing GitHub comments

---------

Co-authored-by: David Benedeki <14905969+benedeki@users.noreply.github.com>
TebaleloS added a commit that referenced this issue Jun 13, 2024
…190 (#194)

* Fixes #189 - Define and implemented a db function to return the checkpoint

* Fixes #189 - Modifying a db function

* Fixes #189 - Modifying a db function

* Fixes #189 - Adding test cases

* Fixes #189 - Added two input fields to the db function

* Fixes #189 - Fixing type mismatch

* Testing #120 db integration

* Fixes #189 - Adding test cases

* Fixes #189 - Changing back the details of flows.flows

* Fixes #189 - Implementing GitHub comments

* Fixes #190 - defined the dto to submit

* Update V1.7.1__flows.alter.ddl

* Delete database/src/main/postgres/runs/V1.8.3__get_partitioning_checkpoint.sql

* Update GetPartitioningMeasuresTest.scala

* Delete database/src/test/scala/za/co/absa/atum/database/runs/GetPartitioningCheckpoints.scala

* Fixees #190 - Added checkpoint query resultDTO, GetPartitioningCheckpoints class and its object

* Fixes #190 - implementing get checkpoints functionality in the repository

* Fixes #190 - renamed CheckpointDTO to CheckpointSubmitDTO

* Fixes #190 - Implementing partitioningCheckpoint service

* Fixes #190 - Implementing partitioningCheckpoint in the partitioning related classes.

* Fixes #190 - Implementing partitioningCheckpoint in the partitioning related classes.

* Fixes #190 - fixing controller

* Fixes #190 - Adding layers

* Fixes #190 - Adding doobie implicit

* Fixes #190 - Fixing the build

* Fixes #190 - removing unwanted layer from checkpoint repository

* Fixes #190 - adding mock layer from PartitioningRepositorySpec

* Fixes #190 - adding the implicits for the added dto's and defining the endpoint.

* Fixes #190 - defining current version

* Fixes #190 - Fixing type mismatch

* Fixes #190 - Implementing DTO instances

* Fixes #190 - Implementing DTO instances

* Fixes #190 - adding CheckpointMeasurements model

* Fixes #190 - adding CheckpointMeasurements test

* Read[CheckpointMeasurements]

* Saving changes

* Fixes #190 - Read[CheckpointMeasurements] test

* Fixes #190 - transforming CheckpointMeasurements to CheckpointDTO

* removing default values on output

* partitioning checkpoint test

* partitioning checkpoint test repository

* partitioning checkpoint test for service

* partitioning checkpoint test controller

* partitioning checkpoint test controller

* removed the mapError from getPartitioningCheckpoints

* Fixing getPartitioningCheckpoints test and implements GitHub suggestions

* Fixing merging conflicts

* Removing unused import

* implementing GitHub comments

* implementing GitHub comments in service

* implementing GitHub comments

* Fixing the build

* Fixing V1.8.3__get_partitioning_checkpoints.sql fields

* Fixing service test cases

* Fixing measure_columns to measured_columns

* Changing from object CheckpointFromDBObject to CheckpointFromDB

* Changing from object CheckpointFromDBObject to CheckpointFromDB

* Defining partitioningJson in a common way

* Implementing GitHub comments

---------

Co-authored-by: Pavel Salamon <salamonpavel@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Server Issues touching the server part of the project
Projects
Archived in project
3 participants