I am working on a short-lived feature branch and need to quickly address a bug someone found in our published app.
Steps:
- i create
feature-branch-abcfrommain, make some changes and commit. - bug report from published app comes in, and I need to address quickly.
- i create a
bug-branch-xyzfrommain, fix the bug, commit, create pr, merge to main in github, publish. no more bug in the published app. - i go back to
feature-branch-abc. I click on āMerge main into feature-branch-abcā. It displays the merge modal, no conflicts, and I commit.
After merging main into feature-branch-abc, things arenāt what they should be. If I go to the js query that was fixed in bug-branch-xyz and merged into main, I will see a āblue dotā in the code tab indicating changes have been made, and Iāll see the old version of that query in the code editor. Why is the old version appearing as unsaved changes in the js query? Obviously to move forward I need to save the query (since Retool doesnāt allow āundo changesā). So I save the query , āPreview Changesā and it certainly is removing the change I just merged in from main.
I have 2 workarounds:
- Create a new feature branch off of
main,feature-branch-abc-take2and manually copy/paste my changes fromfeature-branch-abctofeature-branch-abc-take2. And pray that I donāt have to do another āhot-fixā before publishingfeature-branch-abc-take2. - In my existing feature branch,
feature-branch-abc, manually copy/paste my changes that were inbug-branch-xyz. When I do this, that āblue dotā, go aways. This isnāt always possible since Iām not able to modify every possible field that shows up in the commit. Even when possible, itās cumbersome.
Regardless of the workaround, itās not always possible to copy/paste changes since I donāt have access to āall the fieldsā. And when it is possible, javascript often gets converted to a long string with newlines, and extracting that is cumbersome.
This has happened twice in the last day, and rebuilding the feature branch is becoming too time consuming to not report this. I hope Iām doing something wrong or this can be fixed quickly.
Thanks,
Larry