hepdata icon indicating copy to clipboard operation
hepdata copied to clipboard

importer: ensure metadata in DB matches prod DB rather than elasticsearch

Open alisonrclarke opened this issue 2 years ago • 0 comments

The metadata in elasticsearch has enhanced fields (see document_enhancers.py) including first_author and summary_authors. It seems that imported records end up with the enhanced metadata in the DB records_metadata table, rather than what's in the production DB.

This means that imported records in our dev environment do not match what's in production, so we can miss issues when we've retrieved data from the DB instead of ES, but used the enhanced fields (e.g. #428).

alisonrclarke avatar Nov 24 '21 12:11 alisonrclarke