Automatically resolved merge conflicts on push to gitea cause local changes to get lost #13188
Labels
area/version-control
Area: Related to version control for files in apps.
kind/bug
Used when there is a defect / something is not working as it should.
solution/studio/designer
Issues related to the Altinn Studio Designer solution.
solution/studio/repos
Issues related to the Altinn Studio Repos solution (Gitea).
Steps to reproduce:
Side1.json
Potential cause?
If a merge conflict is automatically resolved, the merge conflict resolution page will not be shown. VersionControlButtonsContext.tsx:commitAndPushChanges:L57 checks if
hasMergeConflict
is true on the response of a repo pull http request, which might be false in the case of an automatic merge resolution?Maybe an
aheadBy
value above 0 should indicate local changes not present on remote, and allow the user to push the changes?screenshots
Pull http request response:
Studio designer shows no local changes:
Zipfile with just local changes is empty:
Zipfile with whole repo is empty:
The text was updated successfully, but these errors were encountered: