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

1211 fix ref locids for subdirectories #1214

Merged
merged 8 commits into from
Feb 20, 2015

Conversation

0robustus1
Copy link
Contributor

Shall fix #1211. Additionally provides the migration to update existing data with locids.


before do
ontology_version
allow_any_instance_of(Hets::ParseCaller).to receive(:call) do |iri, *args|

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]

@0robustus1 0robustus1 force-pushed the 1211-fix_ref_locids_for_subdirectories branch from 0e89c99 to 22c6455 Compare February 17, 2015 19:39

before do
ontology_version
allow_any_instance_of(Hets::ParseCaller).to receive(:call) do |iri, *_args|

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

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.

@eugenk
Copy link
Member

eugenk commented Feb 20, 2015

Travis fails because of spechub/Hets#1455. This can be merged 👍

0robustus1 added a commit that referenced this pull request Feb 20, 2015
…ctories

1211 fix ref locids for subdirectories
@0robustus1 0robustus1 merged commit 934dc87 into staging Feb 20, 2015
@0robustus1 0robustus1 deleted the 1211-fix_ref_locids_for_subdirectories branch February 20, 2015 12:25
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.

loc_ids do not work with subdirectories
3 participants