Skip to content

"Push" menu item should say "Force Push" when you can only force push #7138

Closed

Description

@tierninho

When a force push origin is inflight, the pull menu option is available to be clicked. Not sure what the correct resolution is, perhaps disable the menu option or do we allow the user to stash? I defer to the dev team for this as the error messaging is conflicting.

Otherwise the end result is:
image

Edit (5/1): We're going to keep the menu items enabled for now, but we have #7017 tracking those more specifically as we iterate on this. For this issue to be closed specifically, we need to update the "Push" menu item to "Force Push" when the user is in that state after rebase.

24c697c, mac

Activity

  1. added this to the 1.7.0 milestone on Mar 22, 2019
  2. added
    investigation-needed
    on Mar 22, 2019
  3. self-assigned this
    on Mar 22, 2019
  4. added
    bug
    priority-3
    and removed
    investigation-needed
    on Mar 22, 2019
  5. shiftkey commented on Mar 22, 2019

    @shiftkey
    Member

    I'd be 👍 to exploring the work required to do this when you are about to force push:

    • bugfix: disable pull when you are expected to Force Push because it can put you back into a confusing space
    • polish: show Force push (as well as the ... if the confirmation dialog is enabled by the user)

    The polish could be deferred to after 1.7.0, but it might be helpful guidance to the user.

    EDIT: oops, didn't read the context and focused on the wrong menu item.

  6. modified the milestone: 1.7.0 on Mar 22, 2019
  7. changed the title [-]Allowing a Pull during a rebase[/-] [+]user can pull when "force push" is the next action after a rebase [/+] on Mar 22, 2019
  8. removed their assignment
    on Mar 22, 2019
  9. tierninho commented on Mar 23, 2019

    @tierninho
    ContributorAuthor

    Also, if you edit an existing file, and then try to rebase into current branch, you get a similar error message.

    Screen Shot 2019-03-22 at 2 53 06 PM

  10. changed the title [-]user can pull when "force push" is the next action after a rebase [/-] [+]user can pull from menu when "force push" is the push/pull button state[/+] on Mar 25, 2019
  11. changed the title [-]user can pull from menu when "force push" is the push/pull button state[/-] [+]"Push" menu item should say "Force Push" when you can only force push[/+] on Apr 1, 2019
  12. billygriffin commented on Apr 1, 2019

    @billygriffin
    Contributor

    Updated the initial issue and issue title after talking with @shiftkey and @nerdneha today to indicate that to close this issue, we'll only need to update the "Push" menu item to "Force push" when a user is in that state.

  13. shiftkey commented on Apr 1, 2019

    @shiftkey
    Member

    The other feedback in this issue will be incorporated into #7017

  14. self-assigned this
    on Apr 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugpriority-3

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions