-
Notifications
You must be signed in to change notification settings - Fork 79
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
Deleting a resource with a restrict on_delete gives an unknown error #433
Comments
Hmm...this definitely is a bug, somewhere in |
No I did not change it manually, this is what it says in the latest migration:
|
Gotcha. So I unfortunately won't have time to look at this in the near future, but the place to look will be in the for anyone who wants to help with this issue would be here: (ash_postgres 2.4.14) lib/data_layer.ex:2903 I'm not sure if we have code or not to detect this scenario to provide a good error, but if not we should add it. If we do, it seems to be missing a case. In the meantime @jeroen11dijk a reproduction repo would be really useful for whoever decides to tackle this (or myself when I get time). |
Describe the bug
had a chat about the error here: https://discord.com/channels/711271361523351632/1069610909296766998/1308825724760752270
So we have a matching table with these relations
And then timeslot has the following:
And lastly entry:
But now when I try to delete a matching table which has a timeslot which has an entry I get the following error:
Yet I expect that like I one had before I get an error that says "would leave records behind" and is also an actual error. Both restrict and nothing give me the same result.
Feel free to ask more questions on discord.
To Reproduce
See above
Expected behavior
An actual error with the message "would leave records behind" which I have seen before.
The text was updated successfully, but these errors were encountered: