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

bug: Schema: Update on an attribute or relationship on a generic is not being applied to inherited nodes #4004

Closed
dgarros opened this issue Aug 4, 2024 · 0 comments · Fixed by #4005
Labels
group/backend Issue related to the backend (API Server, Git Agent) group/schema Issue related to some schemas type/bug Something isn't working as expected

Comments

@dgarros
Copy link
Collaborator

dgarros commented Aug 4, 2024

Component

API Server / GraphQL

Infrahub version

0.15.2

Current Behavior

In the schema, an update on an attribute or a relationship on a generic is not being applied to all the inherited fields.

If a user update the value of a generic after the schema has already been loaded, the new value of the attributes or the relationships will not be applied to the nodes that have inherited these attributes/relationships.

Expected Behavior

Inherited attributes / relationships should get updated when the original attribute / relationship is being updated

Steps to Reproduce

  • Load the demo schema
  • Update the description on an attribute or a relationship on a generic
  • Re-apply the schema
  • the description on the attribute / relationship that have been inherited from this generic won't be updated

Additional Information

No response

@dgarros dgarros added type/bug Something isn't working as expected group/backend Issue related to the backend (API Server, Git Agent) group/schema Issue related to some schemas labels Aug 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
group/backend Issue related to the backend (API Server, Git Agent) group/schema Issue related to some schemas type/bug Something isn't working as expected
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant