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

Improve fileset migration task #860

Merged
merged 4 commits into from
Sep 14, 2018
Merged

Conversation

mbarnett
Copy link
Contributor

No description provided.

end

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)

rescue StandardError => e
puts
puts "error migrating #{item.class}: #{item.id} -- reported error was '#{e.message}'"
puts "moving on to next item"

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)

Copy link
Contributor

@weiweishi weiweishi left a 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?

@mbarnett
Copy link
Contributor Author

Assigning the first item in the fileset as the thumbnail is already in there.

@mbarnett mbarnett merged commit d7efcd6 into ualbertalib:master Sep 14, 2018
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