After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 695335 - Driver download blocks media menu
Driver download blocks media menu
Status: RESOLVED FIXED
Product: gnome-boxes
Classification: Applications
Component: wizard
3.7.x
Other Linux
: Normal major
: 3.22
Assigned To: GNOME Boxes maintainer(s)
GNOME Boxes maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2013-03-07 00:50 UTC by Zeeshan Ali
Modified: 2016-03-31 13:22 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
installer: Don't automatically download drivers for all media (9.77 KB, patch)
2013-03-07 17:29 UTC, Zeeshan Ali
committed Details | Review
installer: Drop now redundant async declarations (4.52 KB, patch)
2013-03-07 17:29 UTC, Zeeshan Ali
committed Details | Review

Description Zeeshan Ali 2013-03-07 00:50:32 UTC
Driver (pre-)download happens during listing of user's media in wizard's menu. While its good to be nice to user and save his/her time during preparation step by pre-downloading all drivers, there is no reason to block population of media menu for achieving that.

I'm working on solution for this bug, stay tuned!
Comment 1 Christophe Fergeau 2013-03-07 09:55:09 UTC
(In reply to comment #0)
> Driver (pre-)download happens during listing of user's media in wizard's menu.

When was this predownload added? Is that a fallout of bug #694428?
Comment 2 Zeeshan Ali 2013-03-07 17:29:11 UTC
Created attachment 238324 [details] [review]
installer: Don't automatically download drivers for all media

With this patch, we no longer start to download drivers as part of
UnattendedInstaller construction but rather do it as part of a new
general InstallerMedia.prepare method that is called as part of wizard's
'preparation' stage.

The reason for this change is that us automatically downloading all
drivers for all ISOs/medias users have, could easily congest a slow
network. So now we only download drivers for a media/OS when users
create their first VM against the media/OS in question.

This also fixes the issue of population of wizard's media menu getting
blocked by driver downloads.
Comment 3 Zeeshan Ali 2013-03-07 17:29:15 UTC
Created attachment 238325 [details] [review]
installer: Drop now redundant async declarations

Some of the methods no longer do any async stuff so no need for them to
be async. Declaring a sync method as async only complicates things for
caller for no benefit.
Comment 4 Alexander Larsson 2013-03-07 17:45:42 UTC
Review of attachment 238324 [details] [review]:

looks ok
Comment 5 Alexander Larsson 2013-03-07 17:46:07 UTC
Review of attachment 238325 [details] [review]:

ack
Comment 6 Zeeshan Ali 2013-03-07 17:51:27 UTC
Attachment 238324 [details] pushed as 5236c82 - installer: Don't automatically download drivers for all media
Attachment 238325 [details] pushed as 65b1f0d - installer: Drop now redundant async declarations