We will add an option version_dedup to job and pipeline so it will allow us to control if we will get unique version from versions or keep all the versions with redundant data
if we set include_all_versions=true to pipeline or to job and use projectsExportV1 it will export the job/pipeline concerned and export all versions found in the v1. but it will only export different versions automaticaly,we want to control that
How?
[ ] Add property version_dedup to job with false default value
[ ] Add property version_dedup to pipeline with false default value
[ ] wrapp exportPipeline.versions.unique() inside the code with a condition on if version_dedup = true fromgetPipelineAndPipelineVersionDetailToExportV1
[ ] wrapp exportJob.versions.unique() inside the code with a condition on if version_dedup = true fromgetJobAndJobVersionDetailToExportV1
[ ] A case that wasn't took care of in current release, is that it will compare files by name and not by size(). but then if 2 versions have the same name but diffent contains then our tasks will consider it the same. so we need the adress that.
Why ?
We will add an option
version_dedup
to job and pipeline so it will allow us to control if we will get unique version fromversions
or keep all the versions with redundant dataLinks / Ressources
https://github.com/saagie/gradle-saagie-dataops-plugin/issues/256
Actual status / Investigations
if we set
include_all_versions=true
topipeline
or tojob
and useprojectsExportV1
it will export the job/pipeline concerned and export all versions found in the v1. but it will only export different versions automaticaly,we want to control thatHow?
version_dedup
to job withfalse
default valueversion_dedup
to pipeline withfalse
default valueexportPipeline.versions.unique()
inside the code with a condition on ifversion_dedup = true
fromgetPipelineAndPipelineVersionDetailToExportV1
exportJob.versions.unique()
inside the code with a condition on ifversion_dedup = true
fromgetJobAndJobVersionDetailToExportV1
fileSize
to theJobVersionDTO
classfileSize
compareTo
method ofJobVersionDTO
fromTo