curationexperts / mahonia

Oregon Health & Science Repository
Apache License 2.0
6 stars 0 forks source link

Add importer configuration for creator and file_path #273

Closed no-reply closed 6 years ago

no-reply commented 6 years ago

RecordImporter needs to know which User to treat as the creator for imported objects, and where on the file system to look for referenced file names. These configuration options are added to .env, config/importer.yml, and Importer.config. They are passed to RecordImporter by default on creation.

This work could be extended to allow overriding the configuration in the import rake task by allowing that task to build a custom RecordImporter. For now, the supporeted configuration is through .env.

Connected to #170.

coveralls commented 6 years ago

Coverage Status

Coverage increased (+0.03%) to 98.143% when pulling 01724989a017f72cdbf5ae7ee10178347c8a3cea on record-importer-config into 5311d1fb56390b9020aa94931091781bcc4586f2 on master.