-
Notifications
You must be signed in to change notification settings - Fork 0
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
Conversation
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) |
There was a problem hiding this comment.
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'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rubocop fixes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updates bulkrax
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
Are the spec failures valid? Or are they known flaky specs on this repo? |
they're known flakes. feature spec |
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