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

Correct empty occurenceID so that it is blank, not urn:catalog::: #148

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

gaurav
Copy link
Member

@gaurav gaurav commented Dec 17, 2024

We previously ignored the occurrenceID if it was an empty string, and "constructed" an occurrenceID from the other components. This PR modifies that behavior so that an occurrenceID set to a blank string will be treated as an empty occurrenceID -- only a specimen missing an occurrenceID entirely will have one constructed based on the other components. It also adds a test for this functionality.

It also replaces one use of substr() (now deprecated) with substring(), updates the OpenTree version in a test that would otherwise fail, and adds the @shinnn/eslint-config package, which is needed now for some reason.

Closes #145.

@gaurav gaurav requested a review from hlapp December 17, 2024 06:35
Copy link
Member

@hlapp hlapp left a comment

Choose a reason for hiding this comment

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

👍

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.

SpecimenWrapper label defaults to urn:catalog:: if occurrence ID is empty
2 participants