scientist-softserv / hykuup_knapsack

container project for the Hyku Up deploy of Hyku
Apache License 2.0
1 stars 0 forks source link

:bug: Unable to import a bulkrax record #204

Closed ShanaLMoore closed 1 month ago

ShanaLMoore commented 2 months ago

Summary

⚠️ Reference this branch for your base, if it hasn't already been merged into main. ⚠️ [ this branch has since been merged ]

Since merging in this PR, we are unable to import CSVs via Bulkrax.

We get the following error:

"error_message":"RSolr::Error::Http - 400 Bad Request\nError: Unable to index docs with children: the schema must include definitions for both a uniqueKey field and the '_root_' field, using the exact same fieldType\n\nURI: http://solr:SolrRocks@solr:8983/solr/469dd6ad-1f8d-46ef-9b48-933529d5dd24/update?wt=json&softCommit=true\nRequest

SAMPLE FILE: basic_hyku_test.csv

Acceptance Criteria

Testing Instructions

In hyku staging or demo...

Bulkrax CSV import with the following sample file:

basic-based-near.csv

BEFORE

All CSV imports failed. Sidekiq error:

image (62)

AFTER

Screenshot 2024-05-02 at 08-09-54 Show Importer __ Hyku

Screenshot 2024-05-02 at 08-10-06 based near

Screenshot 2024-05-02 at 08-02-06 Solr Admin

Screenshot 2024-05-02 at 08-10-25 no based near

Notes

ShanaLMoore commented 2 months ago

bulkrax succeeds at: bd56d21fce9978c538e8f4a1d58a7bcf8a63110e fails at: 314cf4df438d2b4c110487d86c6d365bf5728699

This seems to be the offending file:

lib/hyrax/controlled_vocabularies/location_decorator.rb of PR

Image

Image

ShanaLMoore commented 1 month ago

QA RESULTS: Pass ✅

Tested on: Staging

Image

Image