denshoproject / namesdb-editor

Other
0 stars 0 forks source link

Modify importer to work like ddrimport #12

Closed gjost closed 1 year ago

gjost commented 2 years ago

mod import to get an NRID if absent (add switch) (similar to how ddrimport works re DDR ids) (if ID present, use it, otherwise mint a new NRID if not disabled) don't update missing columns ignore links (i.e. Person->Location, Person->WRA, Person->FAR)

gjost commented 2 years ago

Slight tweaks to behave similarly to ddrimport:

namesdb dump [OPTIONS] MODEL CSV_PATH -l/--limit TEXT -c/--cols TEXT -d/--debug It's possible to dump only certain columns

namesdb load [OPTIONS] MODEL CSV_PATH USERNAME Only columns present in the CSV will be modified; columns missing from the CSV will not be modified.

Loading linking data e.g. personfacility,farrecordperson,wrarecordperson is more restrictive (cols cannot be deleted) but then all the data is necessary for those connections.

gjost commented 2 years ago

Got the NRID minting in namesdb load for rows with missing NRIDs almost working. It works in theory but I'm hooking up my local IDservice instance.

gjost commented 2 years ago

Added as of commit 70c7b42, merged into develop in commit 2cb7f4c