gbv / jskos-server

Web service to access JSKOS data
https://coli-conc.gbv.de/api/
MIT License
6 stars 4 forks source link

Import: Add flag to not replace entities on bulk import #166

Closed stefandesu closed 2 years ago

stefandesu commented 2 years ago

Currently, the import script uses bulk import which means that existing entities are replaced ("upserted") if necessary. However, this might not always be the desired behavior.

stefandesu commented 2 years ago

I have added a flag -n/--noreplace (for some reason, having --no-replace did not work even though it should) that enables the alternative behavior on bulk import. This is currently not possible when using bulk import via POST, only via the import script.

I would personally just leave it at that and wait until we've used it in BARTOC to add further documentation or adjust the feature if necessary.