-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Fix side panel sometimes ending up with duplicate sets of remotes whe… #6107
Fix side panel sometimes ending up with duplicate sets of remotes whe… #6107
Conversation
…n "Activate & fetch" selected on an inactive remote Problem is that the "fetch" operation would invoke UICommands.RepoChangedNotifier.Notify(), then this same function would get invoked yet again right after. This second call would sometimes cancel the first, which would cancel the repopulation of nodes in the TreeView.
@gerhardol can you try this branch and see if it fixes the problem for you? |
Codecov Report
@@ Coverage Diff @@
## master #6107 +/- ##
==========================================
- Coverage 44.27% 44.26% -0.01%
==========================================
Files 646 646
Lines 49028 49029 +1
Branches 6552 6552
==========================================
- Hits 21707 21705 -2
- Misses 26088 26090 +2
- Partials 1233 1234 +1 |
I'm adding a scaffold for ROT UI tests, we should be able simulate the
issue and write a test to confirm the fix.
…On Tue, Jan 15, 2019, 2:43 PM codecov[bot] ***@***.*** wrote:
Codecov
<https://codecov.io/gh/gitextensions/gitextensions/pull/6107?src=pr&el=h1>
Report
Merging #6107
<https://codecov.io/gh/gitextensions/gitextensions/pull/6107?src=pr&el=desc>
into master
<https://codecov.io/gh/gitextensions/gitextensions/commit/17a779e9e0b674e902fe1e2df87c1431b63ea877?src=pr&el=desc>
will *decrease* coverage by <.01%.
The diff coverage is 0%.
@@ Coverage Diff @@## master #6107 +/- ##
==========================================- Coverage 44.27% 44.26% -0.01%
==========================================
Files 646 646
Lines 49028 49029 +1
Branches 6552 6552
==========================================- Hits 21707 21705 -2 - Misses 26088 26090 +2 - Partials 1233 1234 +1
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#6107 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AEMyXrWHmV6loe04hy9Q0GxpkZtbzaC-ks5vDU58gaJpZM4aALcA>
.
|
Will try tonight |
Maybe, but it was actually very difficult to reproduce, as you can probably see from my comments above. I managed to reproduce it by figuring out what the problem might be. In fact, I modified the code to invoke |
Works fine
Will your pubsub branch improve here? |
Maybe. I think we just have to be careful not to issue more than one refresh from the left panel code itself, since a second refresh cancels the first. Thanks for the review. Can I merge this immediately? |
I do not think that the chief will mind that, go ahead. |
I can see you 😎 |
…n "Activate & fetch" selected on an inactive remote
Problem is that the "fetch" operation would invoke UICommands.RepoChangedNotifier.Notify(), then this same function would get invoked yet again right after. This second call would sometimes cancel the first, which would cancel the repopulation of nodes in the TreeView.
Fixes #6106
Proposed changes
Test methodology
Test environment(s)