Replace All for Variables

Can we get a ‘replace all’ feature for variables?

My team is consistently adding new features to our apps that require updating the data coming in through our Connector Functions. This means that any time we do an update we are spending hours finding and replacing old object variables with the new one. Sometimes the variables are used 100’s of times and the process is quite tedious and risks adding bugs into our apps.

My suggestion is for a feature where we can replace all occurrences of a variable with a new variable.

Thanks,

Jacob

Hey Jacob -

Thanks for flagging this, and great to hear you’ve been able to start iterating more flexibly on Connector Functions with our recent connector versioning work.

You’ve actually pinpointed what we expected to be the next weakest link. Now that editing connector shapes is possible, updating all the downstream usages is the obvious next pain point, and we need to do some investigation on what it would take to make a true “replace all” possible for variables.

In the meantime, one thing that may help: from the variables modal you can see all usages of a given variable, which lets you quickly jump to and update each place it’s referenced rather than hunting through the app manually. Screenshot below.

Will keep this thread posted as we make progress.

Best, Pete

Glad to hear you’re working on it, and i do use the app variable modal to act as a checklist when i go replacing. I have not used connector function versioning, not sure we have that on our instances? I will typically copy a function and name the function v2, v3, etc.