Closed willdunklin closed 5 months ago
Addresses #34
This isn't sufficient. The code here: https://github.com/DigitalSlideArchive/import-tracker/blob/main/import_tracker/web_client/views/reImport.js#L20-L22 still checks if the import id is within the paged request of the last 50.
Thanks for the catch
Changed the mongo query for
assetstore/{id}/imports
{unique: true}
endpoint to store the_id
of the first element in unique grouping; which avoids the manual filter-based search I was previously doing to find_id
. This_id
is needed as a reference for re-import-editing unique imports as we need a reference to an individual import record to copy.