Possible regression: Issues lazy loading deep relations that are soft-deleted#11
Open
patrickspensieri wants to merge 5 commits intoebean-orm-examples:masterfrom
Conversation
This commit demonstrates - Deeply relations that are soft-deleted not loaded if lazy loading - But they are loaded when eager loading is used via .fetch()
| // then: soft-deleted environments not loaded | ||
| assert(lazyUsage.size() == 2); | ||
| assert(lazyUsage.stream().allMatch(accountLoaded())); | ||
| assert(lazyUsage.stream().filter(environmentLoaded()).count() == 1); |
Author
There was a problem hiding this comment.
When running 12.12.3, soft-deleted environments are all loaded
Author
|
Relevant trace-level logs with And trace-level logs with |
Author
|
Changes in lazy loading soft deleted relations occur as of v13.6.6, might be expected given #2750: Stateless update populates OneToMany with softdeleted records during serializing |
Author
|
Closing this since
|
Author
|
Actually, I'll leave it open because the bug refers to this PR for unit test proving the issue |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
👉 keeping this open because these test cases back this issue
Issue
When upgrading from 12.12.3 to 13.8.0, we noticed deep relations were not being lazy-loaded when soft-deleted. See thread in Ebean ORM group.
13.8.0, but will fail with12.12.3indicating some change in behaviour between versionsNext steps
13.8.0and12.12.3Overview of results (2)
1. Resolved:
setIncludeSoftDeletes()does not fetch deep relations that are soft deleted:.fetch()or.fetchLazy()to explicitly define how deep the.setIncludesSoftDelete()should go2. Bug: Queries with several
fetchLazydo not return complete path