We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug DELETE /api/v1/tenant/:produces foreign key constraint error in person table
person
To Reproduce Steps to reproduce the behavior:
Additional context
Apr 21 09:36:29 packetfence packetfence: pfperl-api(2813) ERROR: Database query failed with non retryable error: Cannot delete or update a parent row: a foreign key constraint fails (`pf`.`person`, CONSTRAINT `person_tenant_id` FOREIGN KEY (`tenant_id`) REFERENCES `tenant` (`id`)) (errno: 1451) [DELETE FROM `tenant` WHERE ( `tenant`.`id` = ? )]{2} (pf::dal::db_execute)
The text was updated successfully, but these errors were encountered:
Perl unit tests failed: https://gitlab.com/inverse-inc/packetfence/-/jobs/1201417909#L559.
Related to #6239
Sorry, something went wrong.
What should be the expected behavior when you attempt to remove a tenant that still has resource tied to it?
@satkunas Hide the button for now. We'll handle that cleanly later.
workaround(admin(js,vue)): temporarily hide tenant delete button, wor…
3f9007a
…karound #6310
For now - if no data is tied to a tenant, we delete it. If there is, we disable it.
977fa3f
jrouzierinverse
No branches or pull requests
Describe the bug
DELETE /api/v1/tenant/:produces foreign key constraint error in
person
tableTo Reproduce
Steps to reproduce the behavior:
Additional context
The text was updated successfully, but these errors were encountered: