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

Create Observation blank Scientific Name #1797

Merged
merged 5 commits into from
Jan 13, 2024

Conversation

JoeCohen
Copy link
Member

Leaving the Scientific Name blank when creating an Observation does not cause a flash error.

- Add test exposing bug when proposing blank name
- Additional assertion for creating Obs with blank Scientific Name
- Add messages to assertions
- Gets rid of spurious, incomplete flash when user leaves Scientific Name blank
I will handle that in a separate branch
- Fixes ABC offense
- Deletes stray commented out code
@JoeCohen JoeCohen linked an issue Jan 12, 2024 that may be closed by this pull request
@coveralls
Copy link
Collaborator

Coverage Status

coverage: 94.602% (+0.001%) from 94.601%
when pulling 8da9f60 on jdc-1778-create-observation-name-blank
into 87def91 on main.

@JoeCohen JoeCohen marked this pull request as ready for review January 12, 2024 21:37
if @name
@naming.name = @name
else
elsif !success
Copy link
Member Author

Choose a reason for hiding this comment

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

@nimmolo: This line is the only substantive change on the app side.

@JoeCohen JoeCohen requested a review from nimmolo January 12, 2024 21:40
@nimmolo nimmolo merged commit 5be3743 into main Jan 13, 2024
5 checks passed
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.

Flash error when creating Observation without Name
3 participants