Skip to content

Dereferencing abstract documents correctly from reference fields and from_son#1801

Open
mmoonport wants to merge 5 commits intoMongoEngine:masterfrom
mmoonport:master
Open

Dereferencing abstract documents correctly from reference fields and from_son#1801
mmoonport wants to merge 5 commits intoMongoEngine:masterfrom
mmoonport:master

Conversation

@mmoonport
Copy link
Copy Markdown

Solves issue #1332. We run a very abstract relationship structure and ran into this issue many times. It turns out dereference wasn't honoring the cls attribute set on DBRefs when we make abstract documents. Also added the same checks into LazyReferenceField.

Hope this helps

@erdenezul erdenezul requested a review from touilleMan September 4, 2018 13:31
Copy link
Copy Markdown
Collaborator

@erdenezul erdenezul left a comment

Choose a reason for hiding this comment

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

lgtm

@mmoonport
Copy link
Copy Markdown
Author

Any idea on when this might get merged in. I would love to get off of my fork.

@bagerard
Copy link
Copy Markdown
Collaborator

bagerard commented Nov 5, 2018

Hi @mmoonport, first of all thanks for the contribution. If possible, I think adding some test could help to have this merged

@bagerard
Copy link
Copy Markdown
Collaborator

@mmoonport Kind reminder about this PR, I'm still looking forward to see a test (that was failing before and that would now pass) for validating this change. The description from the Issue ticket isn't explicit enough

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants