Description
Description
Closing the guided conflicts modal reveals that additional merges (or even the same merge again) can be attempted, but results in GIT errors. I suspect that undo or revert could be bad ideas at this time too. Error messages are given (hinting conflicts need resolved first), and nothing bad seems to happen.
UNDO could be worse, as it just automatically merges the undo in to your working tree, with the conflict banner remaining on screen, but no conflicts present (via icons) though the original conflicted file remains as if it were conflicted. (see below)
Version
- GitHub Desktop: 1.5.1-beta5 (but self-built using Node 10)
- Operating system: Win 10 18298 preview
Steps to Reproduce
- close the merge conflict modal
- attempt another merge because all the merge buttons are still enabled.
Expected Behavior
I might expect only finishing or aborting the current merge would be possible, or that doing some things should bring up the 'abort conflicted merge' flow (confirmation that is really want you want to do, then unwind the conflicted merge) before continuing.
Actual Behavior
The merge buttons attempt to merge more changes, or even the same changes again, but results in GIT errors.
Additional Information
Keep in mind that my understanding of conflict resolution is limited as I have not dealt a lot with it. I was testing the latest beta since it added the 'close guided conflict modal' feature.
merge button enabled for the exact same merge I just attempted that I am still in conflict resolution for.

Merge conflict markers not treated special, is it not supposed to be?

After pressing 'undo'... yikes, how am I going to fix this? (good its just a sandbox!)
The conflict banner went away when I closed Desktop and reopened it, and the guided conflict modal did not reopen either.

Activity
shiftkey commentedon Dec 17, 2018
@outofambit @iAmWillShepherd I see you were both involved with #6382 - want to have a read of this and see if it's something you're aware of?
outofambit commentedon Dec 17, 2018
#6428 should help with this, but i’m not sure that it’s a complete solution
tierninho commentedon Dec 17, 2018
Xthe merge conflict modal, and attempt to merge another branch, a git error is shown telling the user that there are unresolved conflicts.Seems correct 🤔
Xthe merge conflict modal, and clickundothe merge banner is still there but disappears if you clickview conflicts. Not sure what is supposed to happen in this case.tierninho commentedon Dec 17, 2018
Areas of Desktop that could be disabled when the Merge Conflict banner is present are:
Undobutton (note: if you were to partially fix conflict and commit, you might need this button...)Questionable ones to disable:
error: Entry '.gitignore' not uptodate. Cannot merge. fatal: Could not reset index file to revision 'HEAD'.)billygriffin commentedon Dec 18, 2018
I wanted to also be sure to track this here as it's related to the state you're in during a conflict: #6428 (comment)
billygriffin commentedon Jan 14, 2019
@desktop/design Would you mind taking a look at this and helping us align on what users should or should not be able to do during a merge conflict?
ampinsk commentedon Jan 14, 2019
Since we've been considering this state the "manual" mode, I'd lean towards letting people do more, even if they get errors. But agreed we should include guardrails, especially around merges. Going off of @tierninho's list, I think:
Disable when the Merge Conflict banner is present:
Do not disable when merge conflict banner is present:
I feel pretty loosely about most of this so please feel free to push back!
billygriffin commentedon Jan 23, 2019
Let's start with @ampinsk's suggestions above and go from there. cc: @outofambit as I know we discussed the scope on this one.
outofambit commentedon Feb 7, 2019
I've been digging into this more and I'd like to propose an alternate approach where we don't disable these buttons but we show an error popup when they're executed to clearly describe the situation. (Basically that merging is not possible until they finish or abort the conflicted merge already in progress.)
I think this would be a better experience because it would provide more context to the user for the issue and its current state. Also, it would allow us to more easily catch all places you can initiate a merge from (one places missing from the above list is the branch dropdown).
Thoughts?
billygriffin commentedon Feb 7, 2019
I'd be happy with this approach @outofambit. It has the same downsides as the other approach (if we detect the state improperly, for example), but provides more feedback.
outofambit commentedon Feb 20, 2019
Hi, we're going to drop this from current milestones until we have a clearer sense on how often this issue occurs for people. If anyone wants to dive into this to flesh out a design and/or implement a solution in the meantime, that would be welcomed!
Block merge and rebase while a conflict is unresolved
Block merge and rebase while a conflict is unresolved
Block merge and rebase while a conflict is unresolved