Repository navigation
show "force push" label after rebase which requires it - #7243
Conversation
07a7071 to
c5a78c4
Compare
780ffd8 to
d0306dc
Compare
Co-Authored-By: Dan McCarthy <[email protected]>
b723be1 to
639afe7
Compare
12ea76d to
4611317
Compare
|
Tested the changes and here are my notes:
|
What dialog do you see here? I think this is related to what happens when the menu button fires - I haven't touched the underlying implementation, which just emits an event from the main process: Lines 293 to 294 in 6d241b0 Which is associated with this function in the renderer: Lines 293 to 294 in 6d241b0 That explains the second bit of feedback:
This error occurs because we don't pass
Good find! I'll see if I can reproduce this on my end.
I think you're seeing the "Push failed" error message - let's revisit this after I've tweaked the main process to send a |
|
I've pushed two commits to this branch to address @tierninho's feedback:
|
There was a problem hiding this comment.
this looks good to me! @tierninho can you verify the menu item label issue you found is fixed?
The problem here is that we don't refresh the menu items after a Git operation - this isn't a scenario we've really had to think about before. If we keep those in sync, it should revert to There's a bit here that's unclear to me:
The menu label here seems correct if we're not updating the menu labels, but the action itself seems to be doing a push without the Going to see if I can understand this mismatch this morning and wrap this up - thanks for being so methodical @tierninho! |
|
@tierninho I haven't been able to trip the issue you noticed here:
After force pushing to a protected branch (and seeing it fail) the menu item should be back in sync with the push/pull button state. |
|
@shiftkey So I tested this again and here are the steps:
Is this a normal use case, as I should be pulling instead of pushing? |
No, and yes. This is not the typical use case because we suspect most users will click the push/pull button - which will "pull with merge" or "pull with rebase" depending on your setting. The dialog is from #6610 which might not seem as intuitive as it could be, but having improved Protected Branches support here would make this less of an issue. |
outofambit
left a comment
There was a problem hiding this comment.
one little thing left but otherwise looks good to me!




Overview
This also pulls in the work from #6489 because I believe some changes around
AppStore._selectRepositorynow mean we no longer have aAppStore.refreshRepositorythat isn'tawait-ed.I also want to add the
...to theForce Pushlabel if the user has configured their preferences to warn them before they force push.Closes #4976
Closes #7138
Closes #7231
Current
developmentbranch:This PR:
And the
...characters are omitted if you have disable the "Confirm..." settings in your preferences:Description
pushLabelthat reflects whether the next action is a push or a force pushRelease notes
Notes: no-notes