Bug 506432 - [ui] p2 install dialog shouldn't be modal
Summary: [ui] p2 install dialog shouldn't be modal
Status: RESOLVED FIXED
Alias: None
Product: Equinox
Classification: Eclipse Project
Component: p2 (show other bugs)
Version: 4.7.0 Oxygen   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: Oxygen M4   Edit
Assignee: Lars Vogel CLA
QA Contact:
URL:
Whiteboard:
Keywords: noteworthy
Depends on:
Blocks: 520717
  Show dependency tree
 
Reported: 2016-10-24 08:29 EDT by Mickael Istria CLA
Modified: 2017-10-13 16:44 EDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mickael Istria CLA 2016-10-24 08:29:57 EDT

    
Comment 1 Mickael Istria CLA 2016-10-24 08:31:19 EDT
The p2 install dialog can sometimes take very long (depending on network performance). It would be better to have it non-model so user could still spend time on their editors while p2 is doing stuff.
Comment 2 Eclipse Genie CLA 2016-10-24 13:05:41 EDT
New Gerrit change created: https://git.eclipse.org/r/83807
Comment 4 Lars Vogel CLA 2016-11-07 14:10:47 EST
Thanks Stefan for the merge. 

This will also allow to open the dialog multiple times, so that the user can load and browse several repositories at the same time.

N&N entry upcoming.
Comment 5 Eclipse Genie CLA 2016-11-07 14:12:14 EST
New Gerrit change created: https://git.eclipse.org/r/84613
Comment 7 Eclipse Genie CLA 2016-11-07 17:32:34 EST
New Gerrit change created: https://git.eclipse.org/r/84630
Comment 9 Markus Keller CLA 2016-11-10 05:32:01 EST
(In reply to Lars Vogel from comment #4)
> This will also allow to open the dialog multiple times, so that the user can
> load and browse several repositories at the same time.

How did you ensure that all the p2 infrastructure is ready to deal with concurrent changes to the installed features?
Was this properly tested, or was it an unreflected change?
Comment 10 Lars Vogel CLA 2016-11-10 07:10:20 EST
(In reply to Markus Keller from comment #9)
> How did you ensure that all the p2 infrastructure is ready to deal with
> concurrent changes to the installed features?

p2 can only install from one update side, this was not changed. 

You could  do this already before this change, by opening two Eclipse instances and trying to run an install. The second one will fail and report an error. With this change you can browser two or more repositories at the same time. 

If you found issues the involved parties in this bug have not found, please report them. If necessary this fix might have to reverted.
Comment 11 Lars Vogel CLA 2016-11-10 07:40:10 EST
Mickael / Stefan what do you think about having the option to open the installation dialog several times? Maybe to keep the change to users minimal we should start with only making the dialog non-blocking but disallow opening it several times?
Comment 12 Mickael Istria CLA 2016-11-10 07:47:49 EST
(In reply to Lars Vogel from comment #11)
> Mickael / Stefan what do you think about having the option to open the
> installation dialog several times? Maybe to keep the change to users minimal
> we should start with only making the dialog non-blocking but disallow
> opening it several times?

I don't think an issue is likely to happen here. Even if doable, I imagine users won't often start multiple install dialog; and even if they do, I don't think it's really an issue and user would easily understand what happened, why and how to avoid or troubleshoot that. AFAIK, p2 has the mechanics to deal with multiple installations with a transaction mechanism, so multiple concurrent wizards would not break it.
That said, having a singe installation dialog would probably be a bit nicer, but it's INO not a blocker in term of usability, and AFAIK it's not a technical issue neither.
Comment 13 Markus Keller CLA 2016-11-10 12:05:13 EST
It sounds like concurrent installs have not been tested and would likely fail, so that part of the N&N should be removed.
Comment 14 Lars Vogel CLA 2016-11-10 12:17:51 EST
(In reply to Markus Keller from comment #13)
> It sounds like concurrent installs have not been tested and would likely
> fail, so that part of the N&N should be removed.

Done.
Comment 15 Lars Vogel CLA 2016-11-11 07:42:53 EST
(In reply to Mickael Istria from comment #12)
> That said, having a singe installation dialog would probably be a bit nicer

Lets go for nicer. Gerrit review is upcoming.
Comment 16 Eclipse Genie CLA 2016-11-11 07:45:40 EST
New Gerrit change created: https://git.eclipse.org/r/84875
Comment 18 Thomas Watson CLA 2016-12-08 08:36:43 EST
(In reply to Eclipse Genie from comment #17)
> Gerrit change https://git.eclipse.org/r/84875 was merged to [master].
> Commit:
> http://git.eclipse.org/c/equinox/rt.equinox.p2.git/commit/
> ?id=ec0e89de420e1c0c3bce490799a7eba44338b294

Based on this review I am closing as fixed.
Comment 19 Thomas Watson CLA 2017-10-10 11:19:28 EDT
This appears to cause bug 520717.  I'm thinking we should back this change out.
Comment 20 Eclipse Genie CLA 2017-10-13 09:34:08 EDT
New Gerrit change created: https://git.eclipse.org/r/110039
Comment 21 Eclipse Genie CLA 2017-10-13 09:34:11 EDT
New Gerrit change created: https://git.eclipse.org/r/110041
Comment 22 Eclipse Genie CLA 2017-10-13 09:34:14 EDT
New Gerrit change created: https://git.eclipse.org/r/110040
Comment 23 Lars Vogel CLA 2017-10-13 10:21:45 EDT
(In reply to Thomas Watson from comment #19)
> This appears to cause bug 520717.  I'm thinking we should back this change
> out.

I have no objections against the revert.
Comment 24 Eclipse Genie CLA 2017-10-13 11:21:23 EDT
New Gerrit change created: https://git.eclipse.org/r/110060
Comment 25 Eclipse Genie CLA 2017-10-13 11:21:26 EDT
New Gerrit change created: https://git.eclipse.org/r/110059
Comment 26 Eclipse Genie CLA 2017-10-13 11:21:28 EDT
New Gerrit change created: https://git.eclipse.org/r/110058
Comment 30 Eclipse Genie CLA 2017-10-13 16:44:37 EDT
Gerrit change https://git.eclipse.org/r/110040 was merged to [R4_7_maintenance].
Commit: http://git.eclipse.org/c/equinox/rt.equinox.p2.git/commit/?id=509a4f86f675935e0a1f5ca19ff11521777c5eb4
Comment 31 Eclipse Genie CLA 2017-10-13 16:44:40 EDT
Gerrit change https://git.eclipse.org/r/110039 was merged to [R4_7_maintenance].
Commit: http://git.eclipse.org/c/equinox/rt.equinox.p2.git/commit/?id=fbad4b2ac966a55634f61236416f1b700730929d
Comment 32 Eclipse Genie CLA 2017-10-13 16:44:46 EDT
Gerrit change https://git.eclipse.org/r/110041 was merged to [R4_7_maintenance].
Commit: http://git.eclipse.org/c/equinox/rt.equinox.p2.git/commit/?id=2069f2dc0349fd67ac0250346684f547240fcce5