Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Can't delete a data source if one of the queries references query result from it but uses a different data source #3843
When you have the following situation:
You will not be able to delete data source A, because it will fail to delete the query results using it.
Steps to Reproduce
The way the above can happen is if:
It's an edge case, but happened already twice for people who reported it.
The correct solution here is to update the
Yeah, I tried playing around with relationship/backref cascades but stumbled on
which I'm guessing is due to the fact that
Anyway, this does the trick. Let me know if you think I missed something and should revisit the ORM approach, or submit the db-level solution PR.
Happened for us.