I need to do a search and replace of a some code in my retool instance. An api endpoint I am using has changed and I need to change the name of a parameter I am passing. This parameter is used across several dozen retool apps. I am wondering if I can do a git checkout to my local machine, do the search and replace, then commit and push the change to retool.
Will this work and is it dangerous? If I can push it to a branch and test in retool that would be ideal.
Hello @david_tefft,
Thanks for reaching out! There isn’t an officially supported path to make bulk edits across several apps, and it’s generally not recommended to directly modify any Toolscript in your source control repo. That said, if you keep your changes scoped to just this parameter name, your use case is narrow enough that you should able to make these changes safely. I’d also highly recommend testing the changes on a local branch first. To do so:
1. Create a branch in Retool UI (e.g. bulk-api-update)
2. Make your bulk edits to the repo files
3. Push those changes to a remote branch
4. In Retool, commit a small change, then use “Reset Branch” to sync your Retool branch to the remote branch's state
5. Preview/test the apps in Retool on that branch before merging
Anecdotally, sometimes it takes a moment for the Retool UI to reflect the changes, even though the remote changes were pulled. If you see the commits made it down (branch-name > kebab menu > view changes), you could try a hard refresh of your browser. Let me know if this works!