-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
feat: better graph validation errors #7614
Conversation
e8390f8
to
526158a
Compare
@skunkworxdark Thanks, I've fixed both issues:
For For example, graphs like this should now work, because the collection types are compatible with all iterator outputs: But graphs like this don't work, because we are feeding an integer to a color field: Can you please give this a spin again? @JPPhoto your review is also appreciated here |
My testing for the PR is looking good and works fine for me with |
cbf7d70
to
7e9f0ad
Compare
Summary
InvalidEdgeError
, ensure we use that error message.Any
type fields not accepting collectionsError before:
![image](https://private-user-images.githubusercontent.com/4822129/409372852-f3e21ebd-33a3-47c5-8151-58bec1924b4d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyODIyMTIsIm5iZiI6MTczOTI4MTkxMiwicGF0aCI6Ii80ODIyMTI5LzQwOTM3Mjg1Mi1mM2UyMWViZC0zM2EzLTQ3YzUtODE1MS01OGJlYzE5MjRiNGQucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxMSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTFUMTM1MTUyWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NDRiNjc4YzkwNjhkOWViZDNkMDk1YmI4ZTNhMjczYzczNGU0OGM5ZThlOTI1MGRiYTc1ZDBmNDJmY2JlZTJiZSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.AcGccV_PjQQbEx4mv887CvtThoCrCE3KywdtrYSBTSs)
Error after:
![image](https://private-user-images.githubusercontent.com/4822129/409372928-e4d0e469-fc57-471d-8e01-b6918b8a3972.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyODIyMTIsIm5iZiI6MTczOTI4MTkxMiwicGF0aCI6Ii80ODIyMTI5LzQwOTM3MjkyOC1lNGQwZTQ2OS1mYzU3LTQ3MWQtOGUwMS1iNjkxOGI4YTM5NzIucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxMSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTFUMTM1MTUyWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MjE0Yjc0ZWY4MjZjOTFiMGZiYmEwZTE4YjVjOGZlMWE4MmQzNDdiZTMzZGJiZjA1NDQ0ZGMzYjY2NTk2NjMzNyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.9b7lgIlOWULOxLA22qhjaVzFHjEBv5JqjGTOCXWRZSE)
Related Issues / Discussions
Should help in troubleshooting the issue here https://discord.com/channels/1020123559063990373/1083864753543331981/1334888935242858506
Closes #3956
QA Instructions
@skunkworxdark Could you please try reproducing that issue with this PR? Hopefully it's easier to see what's going on.
For this specific issue, might need to set breakpoints for each of the 3 fail case returns in these two methods in
graph.py
to get the full picture:Graph._is_iterator_connection_valid()
Graph._is_collector_connection_valid()
Merge Plan
n/a
Checklist
What's New
copy (if doing a release after this PR)