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 lineage checks in UI #2494

Merged
merged 8 commits into from Jan 22, 2024
Merged

Conversation

RunDevelopment
Copy link
Member

Fixes #2266.

This PR fixes the lineage checks for nodes. They should just work now, even in more difficult cases. I also added lineage checks to checkNodeValidity which ensures that a chain with invalid lineage never makes it to the backend. This also means that we now see lineage errors in the footer.

Note: It is still possible to create invalid connections using the context node selector. I haven't touched that part of the code yet. However, invalid connections will be correctly detected as such. I'll fix the context selector in a follow-up PR.

Examples:
image
image
image

@joeyballentine
Copy link
Member

Maybe this would be better suited to a follow up PR, but I kinda wonder if we should change the verbiage we use to use a more user-friendly term rather than iterator. From a user perspective, any iterator/iterable is just a sequence, list, batch, etc rather than something that iterates over some data. Perhaps we can explain it that way? I'm not super sure about that though

src/common/nodes/checkNodeValidity.ts Outdated Show resolved Hide resolved
src/common/nodes/checkNodeValidity.ts Outdated Show resolved Hide resolved
RunDevelopment and others added 4 commits January 22, 2024 19:53
Co-authored-by: Joey Ballentine <34788790+joeyballentine@users.noreply.github.com>
Co-authored-by: Joey Ballentine <34788790+joeyballentine@users.noreply.github.com>
@joeyballentine joeyballentine merged commit 10a2e2a into chaiNNer-org:main Jan 22, 2024
4 checks passed
@RunDevelopment RunDevelopment deleted the issue2266 branch January 22, 2024 21:59
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.

Fix lineage
2 participants