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

Server-side validation of Rank name and/or level #6

Open
dingosky opened this issue Jan 27, 2025 · 4 comments
Open

Server-side validation of Rank name and/or level #6

dingosky opened this issue Jan 27, 2025 · 4 comments
Assignees

Comments

@dingosky
Copy link
Collaborator

Although the front-end restricts the input values for both fields, there is no server-side validation. Client code is unlikely to submit an invalid value, but it does allow for DB corruption to occur if there is no server-side restriction.

@hohonuuli hohonuuli self-assigned this Jan 27, 2025
@hohonuuli
Copy link
Member

hohonuuli commented Jan 27, 2025

@hohonuuli
Copy link
Member

mbari-org/oni 3a24411

@hohonuuli
Copy link
Member

Valid combinations of rank-levels and rank-names are listed here. I scraped these from https://en.wikipedia.org/wiki/Taxonomic_rank

hohonuuli added a commit to mbari-org/oni that referenced this issue Jan 27, 2025
@hohonuuli
Copy link
Member

hohonuuli commented Jan 27, 2025

Added an endpoint to fetch valid taxonomic ranks: /v1/concept/ranks. Don't forget to run docker pull mbari/oni

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

No branches or pull requests

2 participants