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

🐛 I91 fix importer issues #93

Merged
merged 5 commits into from
Jun 20, 2024
Merged

🐛 I91 fix importer issues #93

merged 5 commits into from
Jun 20, 2024

Conversation

ShanaLMoore
Copy link
Contributor

@ShanaLMoore ShanaLMoore commented Jun 18, 2024

TODO: Update bulkrax for submodule, then update submodule for pals ✅

This corrects the reason why we were unable to import.

split-embargo-pals.zip
basic-pals-import.csv

status_info was deprecated in Bulkrax v6.0.0. It has been updated to set_status_info. We were also receiving an error because of nil values, so record.compact! is needed.
In this commit we remove bulkrax_metadata.yml since there's nothing custom about it; it will inherit settings from Hyku instead.
Additionally we add a search_field key to the bulkrax.rb, for the bulkrax_identifier mapping.
@@ -16,7 +17,7 @@ def valid_import?

file_paths.is_a?(Array)
rescue StandardError => e
status_info(e)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this method was deprecated in Bulkrax v6.0.0. Because of this, the imports would fail silently if there's an issue.

@@ -78,10 +78,10 @@ def base64?(value)
def account_json_string
return @account_json_string if @account_json_string
@account_json_string = if @config['account_json']
base64?(@config['account_json']) ? Base64.decode64(@config['account_json']) : @config['account_json']
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rubocop fixes

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updates bulkrax

@ShanaLMoore ShanaLMoore marked this pull request as ready for review June 19, 2024 16:27
@ShanaLMoore ShanaLMoore marked this pull request as draft June 19, 2024 16:59
@ShanaLMoore ShanaLMoore changed the title I91 fix importer 🐛 I91 fix importer issues Jun 19, 2024
@ShanaLMoore ShanaLMoore marked this pull request as ready for review June 19, 2024 20:28
Copy link
Contributor

@kirkkwang kirkkwang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@laritakr
Copy link
Contributor

Are the spec failures valid? Or are they known flaky specs on this repo?

@ShanaLMoore
Copy link
Contributor Author

Are the spec failures valid? Or are they known flaky specs on this repo?

they're known flakes. feature spec

@ShanaLMoore ShanaLMoore merged commit 92e0667 into main Jun 20, 2024
5 of 6 checks passed
@ShanaLMoore ShanaLMoore deleted the i91-fix-importer branch June 20, 2024 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants