Skip to content

Commit 5351d1b

Browse files
committed
fix backend
1 parent 95aa5e9 commit 5351d1b

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

backend/src/main/kotlin/org/loculus/backend/controller/SubmissionControllerDescriptions.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package org.loculus.backend.controller
22

3+
import org.loculus.backend.model.FASTA_ID_HEADER
34
import org.loculus.backend.model.METADATA_ID_HEADER
45

56
const val SUBMIT_RESPONSE_DESCRIPTION = """
@@ -22,14 +23,14 @@ The field '$METADATA_ID_HEADER' is required and must be unique within the provid
2223
It is used to associate metadata to the sequences in the sequences fasta file.
2324
"""
2425

25-
// TODO: update description
2626
const val SEQUENCE_FILE_DESCRIPTION = """
2727
A fasta file containing the unaligned nucleotide sequences of the submitted sequences.
2828
The file may be compressed with zstd, xz, zip, gzip, lzma, bzip2 (with common extensions).
2929
If the underlying organism has a single segment,
3030
the headers of the fasta file must match the '$METADATA_ID_HEADER' field in the metadata file.
3131
If the underlying organism has multiple segments,
32-
the headers of the fasta file must be of the form '>[$METADATA_ID_HEADER]_[segmentName]'.
32+
the headers of the fasta file must be added in a space-separated list to the '$FASTA_ID_HEADER'
33+
field in the metadata file.
3334
"""
3435

3536
const val FILE_MAPPING_DESCRIPTION = """

backend/src/main/resources/db/migration/V1.21__refactor_aux_tables.sql

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
DO $$
2+
BEGIN
3+
IF EXISTS (
4+
SELECT 1
5+
FROM sequence_upload_aux_table
6+
) THEN
7+
RAISE EXCEPTION
8+
'Cannot alter sequence_upload_aux_table: table is not empty. Wait for submissions to finish processing before running this migration.';
9+
END IF;
10+
END $$;
11+
112
ALTER TABLE metadata_upload_aux_table
213
ADD COLUMN fasta_ids jsonb DEFAULT '[]'::jsonb;
314

0 commit comments

Comments
 (0)