Skip to content

Commit

Permalink
feat(backend): return the group id in /get-data-to-edit
Browse files Browse the repository at this point in the history
  • Loading branch information
chaoran-chen committed Apr 5, 2024
1 parent 5d5b82c commit 82530ac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ data class SequenceEntryVersionToEdit(
override val accession: Accession,
override val version: Version,
val status: Status,
val groupId: Int,
val processedData: ProcessedData<GeneticSequence>,
val originalData: OriginalData<GeneticSequence>,
@Schema(description = "The preprocessing will be considered failed if this is not empty")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -723,6 +723,7 @@ class SubmissionDatabaseService(
val selectedSequenceEntry = SequenceEntriesView.slice(
SequenceEntriesView.accessionColumn,
SequenceEntriesView.versionColumn,
SequenceEntriesView.groupIdColumn,
SequenceEntriesView.statusColumn,
SequenceEntriesView.processedDataColumn,
SequenceEntriesView.originalDataColumn,
Expand All @@ -747,6 +748,7 @@ class SubmissionDatabaseService(
accession = selectedSequenceEntry[SequenceEntriesView.accessionColumn],
version = selectedSequenceEntry[SequenceEntriesView.versionColumn],
status = Status.fromString(selectedSequenceEntry[SequenceEntriesView.statusColumn]),
groupId = selectedSequenceEntry[SequenceEntriesView.groupIdColumn],
processedData = compressionService.decompressSequencesInProcessedData(
selectedSequenceEntry[SequenceEntriesView.processedDataColumn]!!,
organism,
Expand Down

0 comments on commit 82530ac

Please sign in to comment.