-
Notifications
You must be signed in to change notification settings - Fork 10
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
Improve fileset migration task #860
Conversation
…eport errors, and set thumbnails
lib/tasks/jupiter.rake
Outdated
end | ||
|
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.
Layout/EmptyLinesAroundBlockBody: Extra empty line detected at block body end. (https://github.com/bbatsov/ruby-style-guide#empty-lines-around-bodies)
lib/tasks/jupiter.rake
Outdated
rescue StandardError => e | ||
puts | ||
puts "error migrating #{item.class}: #{item.id} -- reported error was '#{e.message}'" | ||
puts "moving on to next item" |
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.
Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols. (https://github.com/bbatsov/ruby-style-guide#consistent-string-literals)
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.
LGTM 👍
And the issue we just talked about, would be just the default behavior of the migrate_fileset_item? assigning the first fileset for the thumbnail?
Assigning the first item in the fileset as the thumbnail is already in there. |
No description provided.