New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disable merge rebase commands when branch is local #8517
Disable merge rebase commands when branch is local #8517
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Please add tests
Will do :) |
Please let me know if the this test is not sufficient, could not figure out how to make a scenario where a branch becomes a remote one, so it would set true to Enabled, Checked properties. |
If the default action is Merge or Rebase, the error message still appears, this should also be handled The screenshot After does not have the circle checked, it should be set here. |
Ok, try to see the cases, I removed the circle so it wouldn't confuse that an option is selected, but somehow is disabled. |
For the disabled options, it is good to disable |
Just to be sure, you're talking about "Do not merge, only fetch remote changes"? |
yes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Fixed this. |
Codecov Report
@@ Coverage Diff @@
## master #8517 +/- ##
==========================================
- Coverage 55.07% 55.06% -0.02%
==========================================
Files 899 899
Lines 64708 64742 +34
Branches 11624 11648 +24
==========================================
+ Hits 35639 35650 +11
Misses 26340 26340
- Partials 2729 2752 +23
Flags with carried forward coverage won't be shown. Click here to find out more. |
I'm not sure how to do it properly, I know that you can set default action via: |
We shouldn't touch this, this is a user setting.
I presume what @gerhardol is referring to here is that by disabling the two merge options the 3rd is left unchecked. I'm not saying it has be checked until we understand the new behaviour with your fix. |
So yes, I disabled the 3rd option with my new fix. Now regarding what happens when I press Pull button: |
Updated "After" image on the first comment. |
@gerhardol what do you think of this? To me this feels acceptable. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few naming suggestions (not commented all occurrences) and setting of checked
Otherwise fine
IntegrationTests/UI.IntegrationTests/CommandsDialogs/FormPullTests.cs
Outdated
Show resolved
Hide resolved
Why does the build fail, integration tests are fine from my end? |
They fail for me too, all on |
I'll have a look in a few days |
IntegrationTests/UI.IntegrationTests/CommandsDialogs/FormPullTests.cs
Outdated
Show resolved
Hide resolved
0657d73
to
10e0568
Compare
There's something wrong, you have too many changes, and most aren't yours. |
I removed the changes, but the rebase thing is till valid. |
10e0568
to
a573768
Compare
Fixes #1248
Proposed changes
Like the author of the issue has said, I'm disabling these two buttons when the branch is local.
Screenshots
Before
After
Test methodology
Manual
✒️ I contribute this code under The Developer Certificate of Origin.