-
Notifications
You must be signed in to change notification settings - Fork 21
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 Runs
table
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_mapping
is no longer accepted andimporter_run_id
is a new argument - The
create_attributes
andattribute_update
methods have been removed please usetransform_attributes
instead. - 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_attributes
has been removed fromBulkrax::ObjectFactory#permitted_attributes
. If you overrode the#permitted_attributes
method, please remove:member_of_collections_attributes
from it.
- Related to this,
- New Pending icon
- Collections column has been removed from the importer/exporter show view.
- The
self.data_for_entry
method now takes in a third parameter 'parser' - The
collection_field
method 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_entry
method 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_sets
have 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_record
method can now take an importer run id to further specify which entry to retrieve. - The
find_record
method now returns an array of two objects[ Entry, ActiveFedora Object ]