Skip to content

Commit

Permalink
get submissionId as part of getting data to edit
Browse files Browse the repository at this point in the history
  • Loading branch information
theosanderson committed Jul 25, 2024
1 parent 945c801 commit 32ae7bb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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<PreprocessingAnnotation>? = null,
val submissionId: String,
) : AccessionVersionInterface

typealias SegmentName = String
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -876,6 +876,7 @@ class SubmissionDatabaseService(
SequenceEntriesView.errorsColumn,
SequenceEntriesView.warningsColumn,
SequenceEntriesView.isRevocationColumn,
SequenceEntriesView.submissionIdColumn
)
.where { SequenceEntriesView.accessionVersionEquals(accessionVersion) }
.first()
Expand All @@ -901,8 +902,9 @@ class SubmissionDatabaseService(
),
errors = selectedSequenceEntry[SequenceEntriesView.errorsColumn],
warnings = selectedSequenceEntry[SequenceEntriesView.warningsColumn],
submissionId = selectedSequenceEntry[SequenceEntriesView.submissionIdColumn]
)
}
}

fun streamOriginalMetadata(
authenticatedUser: AuthenticatedUser,
Expand Down

0 comments on commit 32ae7bb

Please sign in to comment.