-
Notifications
You must be signed in to change notification settings - Fork 25
Upgrading to Version 3.0
Benjamin Kiah Stroud edited this page May 18, 2022
·
2 revisions
- New table
Pending Relationships - column name changes in the
Importer Runstable
Please run db:migrate to ensure that these changes get added to your database
** If you were using our beta releases you may need to revert/drop the pending_relationships table before running db:migrate
- The initialization arguments have been changed,
collection_field_mappingis no longer accepted andimporter_run_idis a new argument - The
create_attributesandattribute_updatemethods have been removed please usetransform_attributesinstead. - Collection membership is no longer handled in the object factory. The create relationships job and new pending relationships object handle them now.
- Related to this,
:member_of_collections_attributeshas been removed fromBulkrax::ObjectFactory#permitted_attributes. If you overrode the#permitted_attributesmethod, please remove:member_of_collections_attributesfrom it.
- Related to this,
- New Pending icon
- Collections column has been removed from the importer/exporter show view.
- The
self.data_for_entrymethod now takes in a third parameter 'parser' - The
collection_fieldmethod is nowparent_field - In general, the CSV parser has changed drastically and overrides will likely have to be carefully updated and in some cases completely rewritten.
- The
self.data_for_entrymethod in the entry model now takes in a third parameter 'parser'. This method is usually called from parsers so make sure the method calls in your custom parsers are updated.
- 3 methods:
import_works,import_collections, andimport_file_setshave now been combined into one methodimport_objects. The original methods can still be called, but they just redirect to the new method.
- CreateRelationshipsJob has been completely rewritten to use the new PendingRelationship models
- ScheduleRelationshipsJob is now the only thing that calls the CreateRelationshipsJob
- The
find_recordmethod can now take an importer run id to further specify which entry to retrieve. - The
find_recordmethod now returns an array of two objects[ Entry, ActiveFedora Object ]