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

prevent reference cycles in complex forms #1401

Merged
merged 5 commits into from
Jan 23, 2025

Conversation

hahn-kev
Copy link
Collaborator

this will avoid issues syncing with Fw where lcm will throw if you attempt to make a reference cycle

@hahn-kev hahn-kev mentioned this pull request Jan 22, 2025
34 tasks
Copy link

github-actions bot commented Jan 22, 2025

C# Unit Tests

104 tests   104 ✅  5s ⏱️
 16 suites    0 💤
  1 files      0 ❌

Results for commit da576bc.

♻️ This comment has been updated with latest results.

Copy link
Contributor

@myieye myieye left a comment

Choose a reason for hiding this comment

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

LGTM! Very elegant algorithm. 🤓
I suppose we should figure out how to bubble this up to the UI if it actually happens while working in the app. Otherwise, nothing will happen and there will be no explanation as to why not. Though fortunately for the activity view you should be able to figure it out somewhat easily.

Copy link
Contributor

@myieye myieye left a comment

Choose a reason for hiding this comment

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

Actually, there's a problem: deleted Components seem to still get used when looking for cycles. That's just what I'm observing as I try it.
I'm guessing that should be solved upstream? I.e. Harmony shouldn't return deleted objects?

@hahn-kev
Copy link
Collaborator Author

yeah we should ignore them here. But no I don't think we should change harmony we just need to take that into account, though there's an argument for having that be a filter parameter which defaults to false which is what we usually want.

@hahn-kev hahn-kev merged commit 25f3a9f into develop Jan 23, 2025
18 checks passed
@hahn-kev hahn-kev deleted the chore/prevent-reference-cycles branch January 23, 2025 06:49
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.

3 participants