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

When you delete a parent checklist, linkages to child checklists are not also deleted #500

Closed
themerekat opened this issue Jun 13, 2023 · 1 comment
Assignees
Labels

Comments

@themerekat
Copy link
Collaborator

This prevents the child checklist from being delete-able.
See this child checklist, for example: https://www.pteridoportal.org/portal/checklists/checklist.php?clid=23376&pid=0

@themerekat themerekat added the bug label Jun 13, 2023
@themerekat themerekat changed the title When you delete a parent checklist, linkages to child checklists is not also deleted When you delete a parent checklist, linkages to child checklists are not also deleted Jun 19, 2023
@egbot
Copy link
Member

egbot commented Aug 2, 2023

Unable to reproduce this issue, and also inspected the code and found no parent/child restrictions in place for deleting a checklist. Furthermore, the schema is defined to automatically delete parent/child linkages whenever a checklist record is removed.

However, I'm guess this is due to that within the PteridoPortal one can't delete a checklist when it contains linked taxa. Doing so produces the following error. This has long been resolved, but the pteridoPortal has not been updated since before June 2022. Updating the code will resolve this issue.

ERROR attempting to delete checklist: Cannot delete or update a parent row: a foreign key constraint fails (symbfern.fmchklsttaxalink, CONSTRAINT FK_chklsttaxalink_cid FOREIGN KEY (CLID) REFERENCES fmchecklists (CLID))

@egbot egbot closed this as completed Aug 2, 2023
@github-project-automation github-project-automation bot moved this from Organize to Done in Symbiota issue triage Aug 2, 2023
@egbot egbot self-assigned this Aug 2, 2023
themerekat pushed a commit that referenced this issue Jan 17, 2025
Update from BioKIC Development
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

No branches or pull requests

2 participants