Skip to content

WorkflowHub fixes #2194

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

Merged
merged 4 commits into from
May 2, 2025
Merged

WorkflowHub fixes #2194

merged 4 commits into from
May 2, 2025

Conversation

fbacall
Copy link
Contributor

@fbacall fbacall commented May 1, 2025

  • Fixes issue parsing RO-Crate metadata with authors that have affiliation as an array
  • Fixes issue where old files would not be cleared out when submitting new version as an RO-Crate

Copy link
Member

@stuzart stuzart left a comment

Choose a reason for hiding this comment

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

just a comment as a tip, that you probably alread knew, but no blockers

@@ -78,8 +78,12 @@ def extract_author(obj)
if affiliation.is_a?(String)
author[:affiliation] = affiliation
else
affiliation = affiliation.dereference if affiliation.respond_to?(:dereference)
author[:affiliation] = affiliation['name'] if affiliation && affiliation['name'].present?
affiliation = [affiliation] unless affiliation.is_a?(Array)
Copy link
Member

Choose a reason for hiding this comment

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

you can actually just do affiliation = Array(affiliation) to acheive the same thing, but I don't think it matters

@fbacall fbacall merged commit 5fe03ac into main May 2, 2025
24 checks passed
@fbacall fbacall deleted the workflowhub-fixes branch May 2, 2025 13:23
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.

2 participants