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

Resolve several panics, incorrect reflection uses, and eager bugs #680

Merged
merged 13 commits into from
Dec 10, 2021

Conversation

aeneasr
Copy link
Member

@aeneasr aeneasr commented Dec 8, 2021

Resolves a panics, incorrect eager loading, and reflection bugs.

Resolves a panic where `EagerPreload` tried to set `reflect.Struct` for a `reflect.Pointer` on 1.. associations.

Signed-off-by: aeneasr <[email protected]>
@aeneasr aeneasr changed the title Resolve EagerPreload panic caused for pointer references Resolve EagerPreload panic caused by pointer references Dec 8, 2021
@aeneasr aeneasr requested a review from fasmat December 8, 2021 10:20
Resolves a panic where `EagerPreload` was trying to set UUID into NullUUID.

Signed-off-by: aeneasr <[email protected]>
Resolves an issue where n+1 eager associations would error with a double pointer in `associations.ForStruct`.

Signed-off-by: aeneasr <[email protected]>
@aeneasr aeneasr marked this pull request as draft December 9, 2021 16:23
@aeneasr aeneasr changed the title Resolve EagerPreload panic caused by pointer references Resolve several panics, incorrect reflection uses, and eager bugs Dec 9, 2021
@aeneasr aeneasr force-pushed the fix-panics-preload branch from 81ed83b to bbf58e6 Compare December 9, 2021 22:39
@aeneasr aeneasr force-pushed the fix-panics-preload branch from bbf58e6 to f877758 Compare December 9, 2021 22:42
@aeneasr aeneasr marked this pull request as ready for review December 10, 2021 14:52
@aeneasr
Copy link
Member Author

aeneasr commented Dec 10, 2021

Ready for 👀

Copy link
Member

@fasmat fasmat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@fasmat fasmat merged commit d148b95 into development Dec 10, 2021
@fasmat fasmat deleted the fix-panics-preload branch December 10, 2021 17:25
@sio4 sio4 added the f: associations the associations feature in pop label Sep 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
f: associations the associations feature in pop
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants