-
Notifications
You must be signed in to change notification settings - Fork 3
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
BugFix: Common Name Parsing #246
Conversation
Openshift URLs for the PR Deployment: |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## dev #246 +/- ##
==========================================
+ Coverage 68.64% 68.71% +0.06%
==========================================
Files 194 194
Lines 4794 4794
Branches 637 637
==========================================
+ Hits 3291 3294 +3
+ Misses 1369 1368 -1
+ Partials 134 132 -2 ☔ View full report in Codecov by Sentry. |
Quality Gate passedIssues Measures |
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.
🐅
Links to Jira Tickets
n/a
Description of Changes
Rename
itis-sort.ts
toitis-utils.ts
Add shared util function for parsing common names: correctly handles case where commonNames field is missing from itis response. Updated itis response interface to mark commonNames as optional.
Testing Notes
BioHub taxon endpoints return taxon records as expected, with an emphasis on the commonNames portion containing the expected values.
In SIMS, when adding a taxon to a survey that has no common names (like a higher rank taxon), when you go to edit the survey, the taxon should correctly be returned and show up in the UI. Before this fix, taxons with no common names were not returned at all from one of the biohub taxon endpoints.