@@ -81,75 +81,75 @@ The new rows have an incremented version number (see diagram in the "Initial sub
8181
8282In following, the changes of the databases are shown given a series of example events.
8383
84- Note that although the column is omitted here for ease of reading there is also an ` original_submission_data ` column. This is initially set as a copy of the ` submission_data ` column, and is intended to be used as an immutable history of the original submission. Due to subsequent data migrations administrators might be forced to modify ` submission_data ` in order for newer pipelines to successfully reprocess older data. For example, if host validation is added at a later time point old ` submission_data ` entries with the metadata field ` host:human ` must be renamed to ` host: homo sapiens ` for validation to succeed, but ` original_submission_data ` would store the originally submitted field ` host:human ` . When revising sequences we expose only the ` submission_data ` to users as ` original_submission_data ` might no longer be accepted by the current pipeline.
84+ Note that although the column is omitted here for ease of reading there is also an ` archive_of_submitted_data ` column. This is initially set as a copy of the ` submitted_data ` column, and is intended to be used as an immutable history of the original submission. Due to subsequent data migrations administrators might be forced to modify ` submitted_data ` in order for newer pipelines to successfully reprocess older data. For example, if host validation is added at a later time point old ` submitted_data ` entries with the metadata field ` host:human ` must be renamed to ` host: homo sapiens ` for validation to succeed, but ` archive_of_submitted_data ` would store the originally submitted field ` host:human ` . When revising sequences we expose only the ` submitted_data ` to users as ` archive_of_submitted_data ` might no longer be accepted by the current pipeline.
8585
8686** Event 1:** The user submits ` [{data: d1}, {data: d2}] ` .
8787
88- | accession | version | submitter | submitted_at | started_processing_at | finished_processing_at | approved_at | status | is_revocation | submission_data | processed_data | errors | warnings |
88+ | accession | version | submitter | submitted_at | started_processing_at | finished_processing_at | approved_at | status | is_revocation | submitted_data | processed_data | errors | warnings |
8989| --------- | ------- | --------- | ------------ | --------------------- | ---------------------- | ----------- | -------- | ------------- | ------------- | -------------- | ------ | -------- |
9090| 1 | 1 | user1 | t1 | | | | RECEIVED | false | d1 | | | |
9191| 2 | 1 | user1 | t1 | | | | RECEIVED | false | d2 | | | |
9292
9393** Event 2:** The preprocessing pipeline processes the two sequence entries and found no errors.
9494
95- | accession | version | submitter | submitted_at | started_processing_at | finished_processing_at | approved_at | status | is_revocation | submission_data | processed_data | errors | warnings |
95+ | accession | version | submitter | submitted_at | started_processing_at | finished_processing_at | approved_at | status | is_revocation | submitted_data | processed_data | errors | warnings |
9696| --------- | ------- | --------- | ------------ | --------------------- | ---------------------- | ----------- | ----------------- | ------------- | ------------- | -------------- | ------ | -------- |
9797| 1 | 1 | user1 | t1 | t2 | t3 | | PROCESSED | false | d1 | ... | [ ] | [ ] |
9898| 2 | 1 | user1 | t1 | t2 | t3 | | PROCESSED | false | d2 | ... | [ ] | [ ] |
9999
100100** Event 3:** The user approves accession 1 and rejects accession 2.
101101
102- | accession | version | submitter | submitted_at | started_processing_at | finished_processing_at | approved_at | status | is_revocation | submission_data | processed_data | errors | warnings |
102+ | accession | version | submitter | submitted_at | started_processing_at | finished_processing_at | approved_at | status | is_revocation | submitted_data | processed_data | errors | warnings |
103103| --------- | ------- | --------- | ------------ | --------------------- | ---------------------- | ----------- | -------------------- | ------------- | ------------- | -------------- | ------ | -------- |
104104| 1 | 1 | user1 | t1 | t2 | t3 | t4 | APPROVED_FOR_RELEASE | false | d1 | ... | [ ] | [ ] |
105105
106106** Event 4:** The user revises: ` [{accession: 1, data: d3}] `
107107
108- | accession | version | submitter | submitted_at | started_processing_at | finished_processing_at | approved_at | status | is_revocation | submission_data | processed_data | errors | warnings |
108+ | accession | version | submitter | submitted_at | started_processing_at | finished_processing_at | approved_at | status | is_revocation | submitted_data | processed_data | errors | warnings |
109109| --------- | ------- | --------- | ------------ | --------------------- | ---------------------- | ----------- | -------------------- | ------------- | ------------- | -------------- | ------ | -------- |
110110| 1 | 1 | user1 | t1 | t2 | t3 | t4 | APPROVED_FOR_RELEASE | false | d1 | ... | [ ] | [ ] |
111111| 1 | 2 | user1 | t5 | | | | RECEIVED | false | d3 | | | |
112112
113113** Event 5:** The preprocessing pipeline process the sequence entries and found no errors.
114114
115- | accession | version | submitter | submitted_at | started_processing_at | finished_processing_at | approved_at | status | is_revocation | submission_data | processed_data | errors | warnings |
115+ | accession | version | submitter | submitted_at | started_processing_at | finished_processing_at | approved_at | status | is_revocation | submitted_data | processed_data | errors | warnings |
116116| --------- | ------- | --------- | ------------ | --------------------- | ---------------------- | ----------- | -------------------- | ------------- | ------------- | -------------- | ------ | -------- |
117117| 1 | 1 | user1 | t1 | t2 | t3 | t4 | APPROVED_FOR_RELEASE | false | d1 | ... | [ ] | [ ] |
118118| 1 | 2 | user1 | t5 | t6 | t7 | | PROCESSED | false | d3 | ... | [ ] | [ ] |
119119
120120** Event 6:** The user approves the revision.
121121
122- | accession | version | submitter | submitted_at | started_processing_at | finished_processing_at | approved_at | status | is_revocation | submission_data | processed_data | errors | warnings |
122+ | accession | version | submitter | submitted_at | started_processing_at | finished_processing_at | approved_at | status | is_revocation | submitted_data | processed_data | errors | warnings |
123123| --------- | ------- | --------- | ------------ | --------------------- | ---------------------- | ----------- | -------------------- | ------------- | ------------- | -------------- | ------ | -------- |
124124| 1 | 1 | user1 | t1 | t2 | t3 | t4 | APPROVED_FOR_RELEASE | false | d1 | ... | [ ] | [ ] |
125125| 1 | 2 | user1 | t5 | t6 | t7 | t8 | APPROVED_FOR_RELEASE | false | d3 | ... | [ ] | [ ] |
126126
127127** Event 7:** The user revokes accession 1.
128128
129- | accession | version | submitter | submitted_at | started_processing_at | finished_processing_at | approved_at | status | is_revocation | submission_data | processed_data | errors | warnings |
129+ | accession | version | submitter | submitted_at | started_processing_at | finished_processing_at | approved_at | status | is_revocation | submitted_data | processed_data | errors | warnings |
130130| --------- | ------- | --------- | ------------ | --------------------- | ---------------------- | ----------- | -------------------- | ------------- | ------------- | -------------- | ------ | -------- |
131131| 1 | 1 | user1 | t1 | t2 | t3 | t4 | APPROVED_FOR_RELEASE | false | d1 | ... | [ ] | [ ] |
132132| 1 | 2 | user1 | t5 | t6 | t7 | t8 | APPROVED_FOR_RELEASE | false | d3 | ... | [ ] | [ ] |
133133| 1 | 3 | user1 | t9 | | | | PROCESSED | true | | | | |
134134
135135** Event 8:** The user rejects the revocation of accession 1.
136136
137- | accession | version | submitter | submitted_at | started_processing_at | finished_processing_at | approved_at | status | is_revocation | submission_data | processed_data | errors | warnings |
137+ | accession | version | submitter | submitted_at | started_processing_at | finished_processing_at | approved_at | status | is_revocation | submitted_data | processed_data | errors | warnings |
138138| --------- | ------- | --------- | ------------ | --------------------- | ---------------------- | ----------- | -------------------- | ------------- | ------------- | -------------- | ------ | -------- |
139139| 1 | 1 | user1 | t1 | t2 | t3 | t4 | APPROVED_FOR_RELEASE | false | d1 | ... | [ ] | [ ] |
140140| 1 | 2 | user1 | t5 | t6 | t7 | t8 | APPROVED_FOR_RELEASE | false | d3 | ... | [ ] | [ ] |
141141
142142** Event 9:** The user revokes accession 1 again.
143143
144- | accession | version | submitter | submitted_at | started_processing_at | finished_processing_at | approved_at | status | is_revocation | submission_data | processed_data | errors | warnings |
144+ | accession | version | submitter | submitted_at | started_processing_at | finished_processing_at | approved_at | status | is_revocation | submitted_data | processed_data | errors | warnings |
145145| --------- | ------- | --------- | ------------ | --------------------- | ---------------------- | ----------- | -------------------- | ------------- | ------------- | -------------- | ------ | -------- |
146146| 1 | 1 | user1 | t1 | t2 | t3 | t4 | APPROVED_FOR_RELEASE | false | d1 | ... | [ ] | [ ] |
147147| 1 | 2 | user1 | t5 | t6 | t7 | t8 | APPROVED_FOR_RELEASE | false | d3 | ... | [ ] | [ ] |
148148| 1 | 3 | user1 | t10 | | | | PROCESSED | true | | | | |
149149
150150** Event 10:** The user approves the revocation.
151151
152- | accession | version | submitter | submitted_at | started_processing_at | finished_processing_at | approved_at | status | is_revocation | submission_data | processed_data | errors | warnings |
152+ | accession | version | submitter | submitted_at | started_processing_at | finished_processing_at | approved_at | status | is_revocation | submitted_data | processed_data | errors | warnings |
153153| --------- | ------- | --------- | ------------ | --------------------- | ---------------------- | ----------- | -------------------- | ------------- | ------------- | -------------- | ------ | -------- |
154154| 1 | 1 | user1 | t1 | t2 | t3 | t4 | APPROVED_FOR_RELEASE | false | d1 | ... | [ ] | [ ] |
155155| 1 | 2 | user1 | t5 | t6 | t7 | t8 | APPROVED_FOR_RELEASE | false | d3 | ... | [ ] | [ ] |
0 commit comments