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

Traverse nested PolymorphicEmbed errors #78

Closed
wants to merge 2 commits into from

Conversation

LouisMT
Copy link

@LouisMT LouisMT commented Mar 14, 2023

It seems that traverse_errors/2 currently does not work, if the polymorphic_embeds_* is nested inside an Ecto-native *-to-one or *-to-many association. These errors are never processed.

This PR adds support for this.

Fixes #72

@LouisMT
Copy link
Author

LouisMT commented Mar 14, 2023

I'm a bit confused because of this line in the project's README:

  • Support for nested embeds_one/embeds_many embeds

Does this mean that it should already support polymorphic_embeds_* nested in an embeds_*? Or is it the other way around?

If it's the other way around, I can update this PR to add support for nested embeds_one/embeds_many too.

@Reinder1213
Copy link

@mathieuprog is there any chance you could follow up on this PR? I'm running into the same issue. Thanks!

(Great work on the library btw)

@mathieuprog
Copy link
Owner

This has been added. Awesome work. Sorry it took so much time. Couldn't merge as there were conflicts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants