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

1099 label symbols in obo sentences #1123

Merged
merged 6 commits into from
Dec 6, 2014

Conversation

0robustus1
Copy link
Contributor

Shall fix #1099.

However a test on develop.ontohub.org for the migration was not possible, as the obo-ontologies there seem broken.

This is solved by just calling set_display_text! on the
sentences at the right time (after the display_name for
the symbol has been updated).
Add the migration the update the display_text
of already existing obo sentences.
@@ -2,17 +2,18 @@ module Sentence::Readability
extend ActiveSupport::Concern

def set_display_text!
new_text = self.text.dup
if text

Choose a reason for hiding this comment

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

Style/GuardClause: Use a guard clause instead of wrapping the code inside a conditional expression.

@0robustus1 0robustus1 force-pushed the 1099-label_symbols_in_obo_sentences branch from 054ce42 to 8d5ebe2 Compare November 23, 2014 10:39
@eugenk eugenk self-assigned this Dec 6, 2014
@eugenk
Copy link
Member

eugenk commented Dec 6, 2014

👍 as soon as travis is green

0robustus1 added a commit that referenced this pull request Dec 6, 2014
…nces

1099 label symbols in obo sentences
@0robustus1 0robustus1 merged commit 23b7c48 into staging Dec 6, 2014
@0robustus1 0robustus1 deleted the 1099-label_symbols_in_obo_sentences branch December 6, 2014 10:46
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.

nice symbols in OBO sentences
3 participants