UCSCLibrary / dams_project_mgmt

DAMS purpose is to provide access to digitized and born-digital UCSC Special Collections content. This repository is used for project planning. It holds the task tickets and roadmap for the different projects under DAMS.
2 stars 0 forks source link

Fix RecordNotUnique error when minting local authorities #513

Closed bkiahstroud closed 2 years ago

bkiahstroud commented 2 years ago

Summary

Prevents this error from happening on Bulkrax entries when creating local authority entries:

Show Entry Digital Collections Online 2022-03-28 at 5 42 58 PM

Testing Instructions

  1. Login as an admin
  2. Navigate to Dashboard > Importers > New
  3. Fill out the required fields. Upload a CSV that has the same value in multiple controlled fields (refer to example below)
  4. Click "Create and Import"
  5. Navigate to the importer's show page. After a couple minutes, refresh the page
  6. Verify that no records threw an ActiveRecord::RecordNotUnique error

Example CSV (partial)

subjectName subjectTitle subjectTopic
ScoobySnacks ScoobySnacks ScoobySnacks
snehagunduraoUL commented 2 years ago
Screen Shot 2022-05-13 at 12 45 10 PM

Importer succeeded with the above csv. This ticket can be closed.