-
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
G2P-418 and G2P-432 #98
base: main
Are you sure you want to change the base?
Conversation
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.
I tried to insert a panel we already have but the endpoint failed with IntegrityError
.
Input data:
{
"name": "Prenatal",
"description": "Prenatal",
"is_visible": 1
}
The endpoint first updated is_visible
from 0 to 1 and the description
to the one I inserted in the input data, then it returned a failure:
IntegrityError at /gene2phenotype/api/create/panel/
(1062, "Duplicate entry 'Prenatal' for key 'panel.name'")
The endpoint tried to insert the panel again.
If the panel is already in the database the endpoint should return the message "Can not create an existing panel". We don't want to update an existing panel when creating a new one - this could lead to us updating a panel by mistake.
No description provided.