-
Notifications
You must be signed in to change notification settings - Fork 8
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 variadic #620
base: master
Are you sure you want to change the base?
fix variadic #620
Conversation
🦋 Changeset detectedLatest commit: 5673274 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
variadicIndex = existingEdges.length; | ||
} | ||
// if larger => fill placeholders | ||
while (existingEdges.length < variadicIndex) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, lets not do this . Spamming placeholders is not a good idea here. If the issue is that the variadic is causing a problem on load we should rather handle that in the deserialization phase. This will just complicate the system and likely cause more issues
I also need a better description of the actual problem we're fixing here, which is not apparent from the code, it mostly seems to just be a lot more verbose and inefficient for some of the operations |
PR Type
Bug fix, Tests
Description
Fixed variadic input handling in
connect
method.Enhanced edge removal logic for variadic inputs.
Added comprehensive tests for variadic input scenarios.
Updated changeset to document the fix.
Changes walkthrough 📝
graph.ts
Refactor and fix variadic input handling in graph logic
packages/graph-engine/src/graph/graph.ts
connect
method to handle variadic inputs robustly.indices.
consistency.
variadic.test.ts
Add tests for variadic input handling
packages/graph-engine/tests/suites/graph/variadic.test.ts
filling.
fluffy-cups-deny.md
Add changeset for variadic input fix
.changeset/fluffy-cups-deny.md