Joe Atzberger
Joe Atzberger
Not sure I quite follow this. The `files` attrib from [object_factory.rb#L136](https://github.com/samvera-labs/hyku/blob/master/lib/importer/factory/object_factory.rb#L136) goes through: ```ruby def file_attributes files_directory.present? && files.present? ? { files: file_paths } : {} end ... def transform_attributes...
@mjgiarlo That would be fine for me (assuming it would work). We would need to decide how to handle the "identity" of files that start as just local filesystem files....
@mjgiarlo, @jcoyne: trying to use `bin/import_from_csv` suggests all manner of limitations ahead of the Hyrax integration issues forecast here. First, there is no documentation of what the CSV should include....
If I add a `collection` field, I get: ``` RuntimeError: Invalid headers: collection ``` None of this even gets into the Hyrax changes.
OK, cherry-picked 6e4ccf3a11c237fc9ec07d375c0468945a1074ee to get some of Mike's fixes. Now I get: ``` ActiveFedora::ActiveFedoraError: Model mismatch. Expected GenericWork. Got: Collection ``` This is after reverting back to the unaltered fixture...
OK, I isolated the exception to be: ```ruby > ActiveFedora::Base.exists? "wg827ks1643" true > Collection.exists? "wg827ks1643" true > GenericWork.exists? "wg827ks1643" *** ActiveFedora::ActiveFedoraError Exception: Model mismatch. Expected GenericWork. Got: Collection ``` To...
Filed a PR on AF: https://github.com/samvera/active_fedora/pull/1277
Reassigned to another project, so this will fall to somebody else to pick up.
@jcoyne: Is it acceptable to say that `ActiveFedora::Base` is not a valid class_name for the association and raise when it is received?
Yeah, rejecting Base would require the implementer to have some other nominal class (probably extending the same). ```ruby class MyApp::Base < ActiveFedora::Base; end class Novel < MyApp::Base; end class Atlas...