Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 319833 - Import should not be done on the UI thread
Summary: Import should not be done on the UI thread
Status: CLOSED DUPLICATE of bug 318578
Alias: None
Product: EGit
Classification: Technology
Component: Core (show other bugs)
Version: 0.8.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-14 07:18 EDT by Alex Blewitt CLA
Modified: 2010-09-07 04:24 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***