From 59df48a11bec26b6a592c8a2c89a49ed5424eb97 Mon Sep 17 00:00:00 2001 From: Felix Hennig Date: Thu, 12 Dec 2024 11:35:42 +0100 Subject: [PATCH] Add 'pipelineVersion' to RawProcessedData --- .../backend/service/submission/SubmissionDatabaseService.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backend/src/main/kotlin/org/loculus/backend/service/submission/SubmissionDatabaseService.kt b/backend/src/main/kotlin/org/loculus/backend/service/submission/SubmissionDatabaseService.kt index 330a9de33..a37949244 100644 --- a/backend/src/main/kotlin/org/loculus/backend/service/submission/SubmissionDatabaseService.kt +++ b/backend/src/main/kotlin/org/loculus/backend/service/submission/SubmissionDatabaseService.kt @@ -583,6 +583,7 @@ class SubmissionDatabaseService( SequenceEntriesView.submittedAtTimestampColumn, SequenceEntriesView.releasedAtTimestampColumn, SequenceEntriesView.submissionIdColumn, + SequenceEntriesView.pipelineVersionColumn, DataUseTermsTable.dataUseTermsTypeColumn, DataUseTermsTable.restrictedUntilColumn, ) @@ -610,6 +611,7 @@ class SubmissionDatabaseService( null -> emptyProcessedDataProvider.provide(organism) else -> processedDataPostprocessor.retrieveFromStoredValue(processedData, organism) }, + pipelineVersion = it[SequenceEntriesView.pipelineVersionColumn], submittedAtTimestamp = it[SequenceEntriesView.submittedAtTimestampColumn], releasedAtTimestamp = it[SequenceEntriesView.releasedAtTimestampColumn]!!, dataUseTerms = DataUseTerms.fromParameters( @@ -1206,5 +1208,6 @@ data class RawProcessedData( val releasedAtTimestamp: LocalDateTime, val submissionId: String, val processedData: ProcessedData, + val pipelineVersion: Long, val dataUseTerms: DataUseTerms, ) : AccessionVersionInterface