-
Notifications
You must be signed in to change notification settings - Fork 8
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
1211 fix ref locids for subdirectories #1214
Conversation
Also removes duplicate implementation of current_version, as there is already a (better) one in versions.rb.
|
||
before do | ||
ontology_version | ||
allow_any_instance_of(Hets::ParseCaller).to receive(:call) do |iri, *args| |
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.
Unused block argument - args
. If it's necessary, use _
or _args
as an argument name to indicate that it won't be used.
Line is too long. [82/80]
0e89c99
to
22c6455
Compare
|
||
before do | ||
ontology_version | ||
allow_any_instance_of(Hets::ParseCaller).to receive(:call) do |iri, *_args| |
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.
Line is too long. [83/80]
Apparently updating the locid column does not work if the migration is executed on the same run as the creation of the locid column (that at least applies for my machine). So we'll use update_column.
portion = e.name.split('#', 2).last | ||
portion.end_with?('>') ? portion[0..-2] : portion | ||
portion = e.name.end_with?('>') ? e.name[0..-2] : e.name | ||
portion = portion.split('#', 2).last |
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.
Useless assignment to variable - portion
.
Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
Travis fails because of spechub/Hets#1455. This can be merged 👍 |
…ctories 1211 fix ref locids for subdirectories
Shall fix #1211. Additionally provides the migration to update existing data with locids.