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 circular relationships validation #2204

Merged
merged 2 commits into from
Sep 9, 2024
Merged

Conversation

fealho
Copy link
Member

@fealho fealho commented Sep 5, 2024

CU-86b21jrjd, Resolve #2205.

@fealho fealho self-assigned this Sep 5, 2024
@sdv-team
Copy link
Contributor

sdv-team commented Sep 5, 2024

@fealho fealho force-pushed the fix-circular-relationships branch 2 times, most recently from e4385f8 to 28c4ab2 Compare September 5, 2024 16:50
@fealho fealho marked this pull request as ready for review September 5, 2024 17:43
@fealho fealho requested a review from a team as a code owner September 5, 2024 17:43
Copy link
Contributor

@amontanez24 amontanez24 left a comment

Choose a reason for hiding this comment

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

Good catch! One suggested renaming then :shipit:

@@ -138,7 +138,7 @@ def _validate_circular_relationships(

for child in children:
if child in parents:
Copy link
Contributor

Choose a reason for hiding this comment

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

minor: can we rename parents to visited? I was confused reading this thinking that we were checking the parents of only the current node, when this list actually keeps growing.

@fealho fealho merged commit b0c0bf8 into main Sep 9, 2024
39 checks passed
@fealho fealho deleted the fix-circular-relationships branch September 9, 2024 16:42
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.

The _validate_circular_relationships method may fail to detect circular relationships
4 participants