feat!(backend): add column in backend for raw original data that should never be modified#6254
feat!(backend): add column in backend for raw original data that should never be modified#6254anna-parker merged 4 commits intomainfrom
Conversation
|
Claude encountered an error —— View job I'll analyze this and get back to you. |
…he backend now exposes unprocessed metadata and stores original metadata internally)
maverbiest
left a comment
There was a problem hiding this comment.
Looks good!
Connected to the DB via port forwarding. Checked that this query returns all rows:
SELECT * FROM public.sequence_entries
WHERE original_data = unprocessed_data;And that this query returns no rows:
SELECT * FROM public.sequence_entries
WHERE original_data != unprocessed_data;I also did spot checks on the preview web page and data seems to be coming up fine, with all the data as expected in the sequence details view I checked.
|
I guess it could now be a tad confusing the the prepro pipeline calls This is a preexisting naming issue, but might need a second thought, @theosanderson what do you think? |
#3262
Adds a new field to the database called
unprocessed_data. It is for now populated with a copy of theoriginal_datajsonb column.unprocessed_datawill be used instead oforiginal_datafor calls to preprocessing/requests for original data.original_dataon the other hand will not be used and serves only as a backup/storage of the initial metadata we recieved. This will simplify the reprocessing process as we can migrateunprocessed_datain a db migration which is not stored in the code but still keep a record of the data originally submitted to us.The biggest code change is the subsequent field renaming that I did to make the distrinction between original and unprocessed data clearer in the code.
Breaking change
The
get-original-dataendpoint is now calledget-unprocessed-dataendpoint.Screenshot
PR Checklist
Preview comes up, revision (which uses affected endpoint) via the webpage is WAI: LOC_00001V8.2
🚀 Preview: https://add-new-column.loculus.org