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(playground): compare invocationName and canonical name in all places where we try to find invocation params #5428

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Parker-Stafford
Copy link
Contributor

resolves #5409

The bug was happening because the parameter invocationName was stop, on the instance in the front end and the parameter invocationName was stop_sequence coming from the api. Until the values were filtered and coerced to match our api. (happened on first opening but did not cause an update to the form). Not sure why the form wasn't updating when the value got coerced however.

  • makes invocation parameter comparison uniform
Screen.Recording.2024-11-18.at.5.25.00.PM.mov

@dosubot dosubot bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Nov 19, 2024
@@ -275,7 +276,7 @@ export const InvocationParametersForm = ({
updateInstanceModelInvocationParameters({
instanceId: instance.id,
invocationParameters: instance.model.invocationParameters.map(
(p) => (p.invocationName === field.invocationName ? input : p)
(p) => (areInvocationParamsEqual(p, field) ? input : p)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@cephalization we might need to rethink the effect right above this, i think it should have caused a refresh of the form but did not when the stop parameter got its name updated. which i think it should have rerendered the form with the correct value at that point?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:L This PR changes 100-499 lines, ignoring generated files.
Projects
Status: 📘 Todo
1 participant