| Summary: | When adding a 'push' repository, connection is attempted on each char typed | ||
|---|---|---|---|
| Product: | [Technology] EGit | Reporter: | Alex Blewitt <alex.blewitt> |
| Component: | Core | Assignee: | Project Inbox <egit.core-inbox> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | major | ||
| Priority: | P3 | CC: | ashw.kumar, jsujjavanich, Lars.Vogel, malaperle, mathias.kinzler, matthias.sohn, mendrel, mn |
| Version: | 0.8.0 | ||
| Target Milestone: | 0.9.0-M1 | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
|
Description
Alex Blewitt
I second this report. It doesn't make sense to re-test the connection after each character typed in the repo name/uri OK, so here's what's happening: * RepositorySelectionPage.canFlipToNextPage() calls * RepositorySelectionPage.getNextPage(), which calls * RefSpecPage.setSelection(), which calls * RefSpecPage.validate(), which calls * RefSpecPage.revalidateImpl(), which calls * ListRemoteOperation.run(), which calls * Transport.open() This is being called on every keypress. I think the easiest way to do that is remove the check from 'canFlipToNextPage'. On second thoughts, the problem is the way that we set the selection on the RefSpecPage in PushWizard.getNextPage(). We shouldn't be setting the selection at all since it's not ready yet; we should do that on the transition (i.e. when the RefSpecPage is shown, not before) (In reply to comment #1) > I second this report. > > It doesn't make sense to re-test the connection after each character typed in > the repo name/uri +1, the current behavior is crazy and should be fixed *** Bug 318232 has been marked as a duplicate of this bug. *** Code review at http://egit.eclipse.org/r/#change,1037 Fixed with d3da85b78a499ba2607417cb2b6968489729aaf5 *** Bug 324415 has been marked as a duplicate of this bug. *** *** Bug 325073 has been marked as a duplicate of this bug. *** |