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
fix: resolve not returning soft deleted relations with withDeleted find option #8017
fix: resolve not returning soft deleted relations with withDeleted find option #8017
Conversation
…/typeorm into fix/not-returning-soft-deleted
wow, teamwork 💯 |
Is it possible to include the tests under |
…/typeorm into fix/not-returning-soft-deleted
…/typeorm into fix/not-returning-soft-deleted
Yes, of course. It's done ;) |
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.
This is a bit of a breaking behavior.
Given it's reversing another breaking behavior I'm fine with it.
It's all undefined and I don't particularly think either is correct at this point.
Well that's odd. The build was fine in the PR but after merging it failed. |
Seems to not be operating well with embeds. Duplicates some data outside the embed. Going to do some research & do my best to not revert - but if I don't find the cause today I'll revert. @nicosefer If you're able to as well that'd be great. Or any of the folks that approved this PR |
@imnotjames i'm sorry to hear that. Do you have any specific test case where we should look at?. |
|
@imnotjames I found something weird. The error was no caused by the change on the |
@imnotjames I can update the test case and add a new one with another entities, but i guess a new bug was born 😆 |
If it wasn't caused by this change why did it show up when your PR was merged? If I revert the PR it seems to correct the failing test. |
It was caused by adding the |
@imnotjames I just uploaded a new PR with the changes that I mentioned recently in the tests |
Description of change
This pull request includes a fix for find entities with soft deleted relations when using .find method passing
withDeleted
option.Fix: Not returning soft deleted nested entities using withDeleted:true 7490
Pull-Request Checklist
master
branchnpm run lint
passes with this changenpm run test
passes with this changeFixes #7490