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

Fix missing relations #446

Closed
wants to merge 1 commit into from

Conversation

metmirr
Copy link
Contributor

@metmirr metmirr commented Jul 4, 2021

This PR fixes #443.

Problem
Relation generator adds visited fields into a Set in the field.name:relatedField.name. So if there are two relationships with the same name across entities one of them will be missing due to the bug.

Fix
The bug is fixed by including entity and related entity names in the unique key generation: entity.name-relatedEntity.name:field.name-relatedField.name

affects: @joystream/hydra-cli

@metmirr metmirr closed this Feb 10, 2023
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.

Missing model relations when two different one-to-many entity relationships use the same field names
2 participants