Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 319833

Summary: Import should not be done on the UI thread
Product: [Technology] EGit Reporter: Alex Blewitt <alex.blewitt>
Component: CoreAssignee: Project Inbox <egit.core-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: stefan.lay
Version: 0.8.0   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Alex Blewitt CLA 2010-07-14 07:18:44 EDT
Build Identifier: 0.8.4

When cloning a repository, the 'Import projects' page locks the UI whilst it's cloning. We should really clone in a background task, then prompt the user for importing projects post clone.

There's really two operations being folded into one:
1) Ask the user which repository to clone
2) Ask the user which projects to import from the clone

If 1) takes a long time, then the user is blocked from doing anything until after the clone has completed.

E.g. on a slow network, clone

http://dev.eclipse.org/git/org.eclipse.tm/org.eclipse.tm.rse.git

You'll see the progress bar (albeit with a cancel button) but will be unable to do anything until after the step is complete.

Reproducible: Always

Steps to Reproduce:
* File -> Import Projects from Git
* Clone -> put in http://dev.eclipse.org/git/org.eclipse.tm/org.eclipse.tm.rse.git
* Wait whilst clone occurs

I think there's really two things that need to be done here:

1) Let's get rid of the import-from-existing-knonw-repo step, and jump straight to the 'clone' dialog. We can put in a new button which is 'clone from existing repo' if we want to
2) The clone should occur in the background, if it's a new one
3) After the clone completes, we should pop up a new UI Job which asks the user which project(s) to import

Amongst other things, this would then allow concurrent clones to occur - right now, we're serial by enforcement.
Comment 1 Stefan Lay CLA 2010-09-07 04:24:28 EDT

*** This bug has been marked as a duplicate of bug 318578 ***