Skip to content

Cannot see all conflicts #6213

Closed
Closed

Description

@decabeza

Please describe the problem you think should be solved
When you merge a branch with conflicts in previous version you could check all files with conflicts. Now appears a no closable popup with the list of all conflicted files and you have to open one by one on text editor instead of see them on Github Desktop.

Example:

conflicts

Also when you resolve all the conflicts you can't review all changed files before merge 😅

merge

merge

Do you have any potential solutions in mind?
I think this popup should have a close button to hide it an can check all files (as before) without have to open one by one.

Activity

  1. j-f1 commented on Nov 16, 2018

    @j-f1
    Contributor

    The dialog could be dismissed into a banner saying “X conflicts remaining. Resolve →” that could be clicked to reopen the dialog.

  2. billygriffin commented on Nov 16, 2018

    @billygriffin
    Contributor

    Thanks @decabeza! One of the things we still want to validate is whether there's some group of people who will prefer to just be able to see the conflicted files differentiated and be able to resolve them however you decide to instead of going through the more guided flow. Your description and the screenshots are really helpful there.

    One note is that you can click "Open in Sublime Text" on one of the files and just navigate within Sublime to each of the others and come back to Desktop at the end so you're not having to bounce back and forth. The conflict resolution dialog will update as each of the conflicts is resolved so you don't have to come back to Desktop each time unless you want to.

    On your second observation, can you unpack that a bit more for us? Are you saying that you want to be able to see a final diff of each of the files before completing the merge? We heard pretty convincingly from users in our usability tests that people felt like the extra step of viewing the final diff was burdensome and not particularly valuable, but we can obviously revisit that if it's something people are struggling with.

    cc: @desktop/design

  3. billygriffin commented on Nov 16, 2018

    @billygriffin
    Contributor

    @decabeza We're discussing your issue internally and I wanted to clarify one additional thing. Are the first and second screenshots in the same flow? In other words, after you resolved the conflicts from the first screenshot, did you then see the second screenshot with only one file displayed?

  4. webmayak commented on Nov 17, 2018

    @webmayak

    Subcribed. New merge flow is uncomfortable

  5. manas-kulkarni commented on Nov 17, 2018

    @manas-kulkarni

    New merge flow is annoying. I dont have any of the supported merge editors. So I do it through TortoiseMerge using git mergetool from command line. This adds a .ORIG file and I am forced to commit it since I cant review the changes

  6. chrispday commented on Nov 19, 2018

    @chrispday

    Agree that new merge flow has issues. If anything goes wrong with the merge and can't commit there doesn't seem to be an option to close and manually fix yourself. Only option is to abort which rolls back all merges done so far. Agree with @j-f1 that there should at least be an option to just close the dialog and leave things as is.

  7. decabeza commented on Nov 19, 2018

    @decabeza
    Author

    Hi @billygriffin,

    I understand the benefits to see all conflicted files. The main problem I see is for example if you merge two branches there is two types of files: the conflicted ones and other files, I would like can review all files to check the merge is correct.

    About your second question, yes the screenshots are in the same flow, I start with 93 conflicted files I was resolving them and the number was going down. When there was only file left first appear the "0 conflictes files" message, after go to Sublime Text and back the message refresh to "All conflicts resolved" but I still can't view the rest of the files before merging.

    I attach some screenshot with some ideas about how to improve this flow (I think all are compatible with each other):

    1. Make popup closable
    1_closable_popup

    2. List changed files separate of conflicted ones
    2_separate_files

    3. Add a link to reopen the popup
    3_link_to_conflicted

  8. billygriffin commented on Nov 19, 2018

    @billygriffin
    Contributor

    @decabeza Thank you, really helpful and appreciate the thoughtful response.

    Separate from the questions of how to view all the files and ensure everything is good before committing the merge (and your explanation makes complete sense), I'm curious about the flow in your initial screenshots. It appears that you had 93 conflicts, but after resolving each one they should all show up with checkmarks next to them to indicate that each file has been resolved. So it should be a scrollable list of resolved files, and I'm concerned that your second screenshot only had config/application.rb in it. I'd just like to verify that you went through the following steps:

    1. Click merge
    2. See a scrollable list of 93 conflicted files.
    3. Go through each file and resolve the conflicts in Sublime.
    4. Come back to Desktop.
    5. See the modal with only one file listed as resolved (config/application.rb) and the options to either abort or commit merge.

    If that's right, it's a bug that would be pretty bad. So I just want to verify that separately from the larger questions that we're discussing internally. Thanks again!

  9. decabeza commented on Nov 19, 2018

    @decabeza
    Author

    @billygriffin I think it's not a bug, it's my flow 😅 I mean...

    1. I merge a branch with conflicts
      step_1

    2. I going resolving and all appear as resolved on a scrollable list.
      step_2

    3. I add the file on command line with (for example) git add .hound.yml, so the file disappear from the list
      step_3

    I'm used to work between Github Desktop UI and command line, sorry for the confusion 🙏 😌

  10. billygriffin commented on Nov 19, 2018

    @billygriffin
    Contributor

    @decabeza Ah! Perfect, thank you for clarifying, that makes me feel better. 😄 We'll keep you updated on how we're thinking about the original problems, and thanks again.

  11. ampinsk commented on Nov 19, 2018

    @ampinsk
    Contributor

    Hi everyone! Thanks so much for sharing your thoughts. Based on everyone's feedback here, we're considering this as an iteration on the current flow:

    We'll add a close button to the modal:

    modal

    We'll also add a dropdown option to the open buttons:

    dropdown-open-options

    Closing the modal will take you to this state:

    manual state 2x

    • You would reopen the modal from the banner at the top
    • The file list will update with a green check as you remove conflict markers
    • We will always enable the commit button, but we will show a warning dialog if you commit files with conflict markers

    Let us know if you have any more feedback! If this feels like a good direction, we'll work on implementing it soon.

  12. billygriffin commented on Nov 19, 2018

    @billygriffin
    Contributor

    Thanks @ampinsk, looks really nice and hopefully helps to give people an escape hatch if they want to see the diff and/or the additional files that were not conflicted. And it's nice that they can easily get back to it.

    A couple considerations in implementation:

    • We'll need to make sure the title stops before the close button, and that you can tab to it for accessibility.
    • If we do go this direction, I'd also like to instrument metrics to find out what % of time people are closing the dialog, and also how frequently people are reopening it. If we implement something like this and a trivially small portion of people are closing the dialog, maybe we re-evaluate. And if a large portion of people are closing it, maybe we reconsider our original happy-path implementation.
  13. chrispday commented on Nov 19, 2018

    @chrispday

    To try and add some more constructivity, it might also be helpful to add an "Open all in (editor of choice)" button. The dialogue is not very big and I had more than a dozen merge conflicts and scrolling and clicking each could have been a better experience.

    The other reasons I would like to close this dialog without commiting (or aborting) is that I like to review my conflicted merges as a diff just before committing to double check I've done it right.

    Merging conflicts is probably the hardest thing to do, so I think this effort is a good idea. But it's also where flexibility in workflow is required. Most of the time it can be followed but still provides an escape hatch for when things don't want to work cleanly. Especially when you are doing long and complicated merges where clicking the wrong button could lose a lot of effort.

  14. j-f1 commented on Nov 19, 2018

    @j-f1
    Contributor

    How about replacing the commit button with a button that re-opens the resolution dialog?

  15. billygriffin commented on Nov 19, 2018

    @billygriffin
    Contributor

    To try and add some more constructivity, it might also be helpful to add an "Open all in (editor of choice)" button.

    Thanks for the feedback @chrispday! That feels like a somewhat separate issue that we're definitely keeping an eye on the feedback. A couple things stand out. First, our hypothesis is that the vast majority of merge conflicts have only 1-3 files conflicted so we think for most cases this won't be an issue. Additionally, most editors should allow you to navigate to the files themselves and not have to come back to Desktop each time, and when you get back to Desktop at the end you're in better shape. But if there's a dozen or more, I totally get how that could be tough to figure out where they all are and it's helpful to provide an escape hatch.

  16. 43 remaining items

  17. modified the milestones: 1.6.0, 1.5.1 on Dec 12, 2018
  18. deleted a comment from Swarzkopf314 on Dec 18, 2018
  19. lee-dohm commented on Dec 18, 2018

    @lee-dohm
    Contributor

    @Swarzkopf314 your comment was deleted as a violation of the Desktop Code of Conduct as it was insulting or derogatory. You may consider this an official warning.

  20. Swarzkopf314 commented on Dec 18, 2018

    @Swarzkopf314

    Why wasn't the close button in the initial release of this feature? It breaks my workflow as I have the same problem as mentioned here: #6311.

    It seems a really bad and annoying practice to force users to change their workflow and I'm increasingly worried about the course you're taking with the app (it started with the decision to remove "magic stashing" entirely instead of making it an opt-in option, but let's forget that for now).

  21. billygriffin commented on Dec 18, 2018

    @billygriffin
    Contributor

    Hi @Swarzkopf314, thanks for the updated response. Prior to the last release, we did usability testing with several people and everyone indicated that closing the modal or getting back to the diff added an extra level of complexity that didn't feel necessary. However, we understand after the feedback we've received here that there are some percentage of people who prefer to more manual workflow during conflict resolution for a variety of reasons. We know when we release things that each individual thing isn't going to be perfect, but that's why we listen to feedback, try to unpack the underlying problems, and iterate from there.

    With respect to magic stashing, I totally understand the frustration having used the previous Mac app and liking that feature. As you saw, we're working on that in #6107 and it's on the roadmap for the next few big things we're working on. Because the current app was entirely new from the previous apps and only the Mac app had magic stashing (and it was relatively unreliable and sometimes got people into bad spots), we decided to prioritize other things. But we do think it's important and we are starting to work on it. Appreciate the feedback and hope this helps explain our process a bit more.

  22. Swarzkopf314 commented on Dec 18, 2018

    @Swarzkopf314
  23. billygriffin commented on Dec 18, 2018

    @billygriffin
    Contributor

    Since you are not doing that it just feels that somebody out there just thinks he knows better and wants to bring salvation upon the app's misguided and uneducated users by force.

    That's a totally fair way to feel. I think in retrospect we calibrated too far on the side of being too opinionated here and didn't leave enough room for other workflows. Candidly, we hadn't heard feedback from people who were like, "this merge conflicts error and just leaving me on my own in Desktop is really working for me." Feedback we've heard has always been that it was confusing and unclear as to what the state was and what to do next. So we're always trying to improve our own way of doing things, but we definitely don't think we know best and we're learning as we go. And yep, that's exactly why your feedback is valuable. So thank you. ❤️

  24. shiftkey commented on Dec 18, 2018

    @shiftkey
    Member

    This issue has covered a lot of things, which we spun off into #6379 #6380 #6381. We're aiming to ship these improvements out to everyone with 1.5.1 tomorrow, so I'm in favour of closing this out in favour of more specific feedback based on those changes.

    @billygriffin let me know if there's anything else we should be tracking in separate issues based on this discussion.

  25. billygriffin commented on Dec 18, 2018

    @billygriffin
    Contributor

    That sounds right @shiftkey, thanks! 1.5.1 is scheduled to ship (🤞 tomorrow), and feel free to follow up here with product feedback. There are still a few small iterative things we're working on in 1.6 but overall the bulk of this is already on beta and will be released to production in 1.5.1. Thank you to everyone for the thoughtful feedback!

  26. removed their assignment
    on Dec 18, 2018
  27. billygriffin commented on Dec 19, 2018

    @billygriffin
    Contributor

    Thanks everyone for all the great feedback and @decabeza for opening this issue in the first place. 1.5.1 is out and includes most of the planned iteration here. Thanks again for helping us improve it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions