Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Unable to import a bulkrax record #204

Closed
1 task
Tracked by #203
ShanaLMoore opened this issue Apr 26, 2024 · 2 comments
Closed
1 task
Tracked by #203

🐛 Unable to import a bulkrax record #204

ShanaLMoore opened this issue Apr 26, 2024 · 2 comments
Assignees
Labels
bug something isn't working high priority Hyku Prime

Comments

@ShanaLMoore
Copy link
Contributor

ShanaLMoore commented Apr 26, 2024

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

  • A user should be able to import CSVs without the above error

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 ShanaLMoore added the bug something isn't working label Apr 26, 2024
@ShanaLMoore ShanaLMoore changed the title Unable to import a bulkrax record 🐛 Unable to import a bulkrax record Apr 26, 2024
@ShanaLMoore ShanaLMoore self-assigned this May 1, 2024
@ShanaLMoore
Copy link
Contributor Author

ShanaLMoore commented May 1, 2024

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
Copy link
Contributor Author

QA RESULTS: Pass ✅

Tested on: Staging

Image

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something isn't working high priority Hyku Prime
Projects
None yet
Development

No branches or pull requests

1 participant