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

Detect polymorphic associations in generator #3536

Open
adrianthedev opened this issue Dec 16, 2024 · 2 comments
Open

Detect polymorphic associations in generator #3536

adrianthedev opened this issue Dec 16, 2024 · 2 comments
Assignees
Labels
Enhancement Not necessarily a feature, but something has improved Good first issue Good for newcomers Help wanted We could use some help with this Stale exempt Task Something to get done

Comments

@adrianthedev
Copy link
Collaborator

Feature

If a user generates a resource that has polymorphic associations then they will automatically get a error from Avo because actually it's from rails because it does not support to compute the polymorphic association. We should detect if we find an _type and _id attributes and try to make that polymorphic or we can generate it but leave it commented out if we can't compute to which classes it's polymorphic to.

This happens in when they have invited by and invited the attributes.

Current workarounds

Screenshots or screen recordings

Additional context

@adrianthedev adrianthedev added the Enhancement Not necessarily a feature, but something has improved label Dec 16, 2024
Copy link
Contributor

github-actions bot commented Jan 1, 2025

This issue has been marked as stale because there was no activity for the past 15 days.

@github-actions github-actions bot added the Stale label Jan 1, 2025
@adrianthedev adrianthedev added Task Something to get done Help wanted We could use some help with this Good first issue Good for newcomers labels Jan 3, 2025
@Nevelito
Copy link
Contributor

For assignment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement Not necessarily a feature, but something has improved Good first issue Good for newcomers Help wanted We could use some help with this Stale exempt Task Something to get done
Projects
Status: No status
Development

No branches or pull requests

3 participants