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

[Fix] Simplify taxonomy repository find method #2589

Merged
merged 1 commit into from
Feb 18, 2017

Conversation

tiagoamaro
Copy link
Contributor

  • JIRA: no JIRA ticket assigned

Me and @sfate just decided to quickly refactor the Repositories::Taxonomy.get_taxon_by_name method after one interesting scenario:

  • Tania decided to create a new taxon with spaces and hyphens: "Evening Shop-Gown"
  • Repositories::Taxonomy.get_taxon_by_name wasn't able to find the taxon by its name
    • It was considering only dashes or spaces on taxon names

Now, taxon names are normalized to a default pattern (parameterized) so they can match without any regexes or edge cases.

@tiagoamaro tiagoamaro merged commit 2ebfc86 into master Feb 18, 2017
@tiagoamaro tiagoamaro deleted the fix/allow-spaces-hyphens-on-taxonomy-repository branch February 18, 2017 17:51
gus4no pushed a commit that referenced this pull request Mar 7, 2017
@tiagoamaro tiagoamaro removed their assignment Jul 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants