diff --git a/backend/src/main/kotlin/org/loculus/backend/api/SubmissionTypes.kt b/backend/src/main/kotlin/org/loculus/backend/api/SubmissionTypes.kt index 0c34e620a..9c9918f08 100644 --- a/backend/src/main/kotlin/org/loculus/backend/api/SubmissionTypes.kt +++ b/backend/src/main/kotlin/org/loculus/backend/api/SubmissionTypes.kt @@ -113,6 +113,7 @@ data class SequenceEntryVersionToEdit( "Issues where data is not necessarily wrong, but the user might want to look into those warnings.", ) val warnings: List? = null, + val submissionId: String, ) : AccessionVersionInterface typealias SegmentName = String 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 d58832503..20be9fa5a 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 @@ -876,6 +876,7 @@ class SubmissionDatabaseService( SequenceEntriesView.errorsColumn, SequenceEntriesView.warningsColumn, SequenceEntriesView.isRevocationColumn, + SequenceEntriesView.submissionIdColumn ) .where { SequenceEntriesView.accessionVersionEquals(accessionVersion) } .first() @@ -901,8 +902,9 @@ class SubmissionDatabaseService( ), errors = selectedSequenceEntry[SequenceEntriesView.errorsColumn], warnings = selectedSequenceEntry[SequenceEntriesView.warningsColumn], + submissionId = selectedSequenceEntry[SequenceEntriesView.submissionIdColumn] ) - } +} fun streamOriginalMetadata( authenticatedUser: AuthenticatedUser,