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 700777 - order change in overview
order change in overview
Status: RESOLVED FIXED
Product: gnome-boxes
Classification: Applications
Component: general
unspecified
Other Linux
: Normal normal
: 3.22
Assigned To: GNOME Boxes maintainer(s)
GNOME Boxes maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2013-05-21 12:36 UTC by Matthias Clasen
Modified: 2016-03-31 13:22 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Make sure newly created VMs are marked as used recently (1.19 KB, patch)
2013-05-21 15:40 UTC, Christophe Fergeau
committed Details | Review
Make sure new remote VMs are marked as used recently (1.15 KB, patch)
2013-05-27 12:45 UTC, Christophe Fergeau
committed Details | Review

Description Matthias Clasen 2013-05-21 12:36:39 UTC
I started an express install of xp
the installing box appeared after all the other boxes in the overview
at some point, I clicked it to see what was happening
when going back to the overview, it was suddenly the first in the list

How is the order of boxes in the overview defined ?
Comment 1 Christophe Fergeau 2013-05-21 12:54:29 UTC
It should put the most recently used boxes first, but there was a bug with that: https://bugzilla.gnome.org/show_bug.cgi?id=700284
However I think there's still one remaining bug in that new boxes under express install should also be sorted first rather, which may not be the case at the moment (I'd have to test again).
Comment 2 Christophe Fergeau 2013-05-21 15:40:22 UTC
Created attachment 244937 [details] [review]
Make sure newly created VMs are marked as used recently

When creating a VM for an unattended install, we don't connect
to its display automatically but run it minimized. This means
it never gets marked as recently used automatically as this is
done in the Display class. This commit sets Machine::access_last_time
when starting a VM through VMCreator::launch_vm() to ensure
the newly created VM appears first in the collection view even
if it's an express install.
Comment 3 Zeeshan Ali 2013-05-21 18:48:04 UTC
Review of attachment 244937 [details] [review]:

ACK
Comment 4 Zeeshan Ali 2013-05-21 18:50:30 UTC
Shouldn't we do the same for remote boxes?
Comment 5 Christophe Fergeau 2013-05-22 09:16:55 UTC
Comment on attachment 244937 [details] [review]
Make sure newly created VMs are marked as used recently

Attachment 244937 [details] pushed as 9974d70 - Make sure newly created VMs are marked as used recently
Comment 6 Christophe Fergeau 2013-05-22 09:19:42 UTC
(In reply to comment #4)
> Shouldn't we do the same for remote boxes?

We don't want to mark all remote boxes as recently used (think of a RHEV instance with 10 VMs that you never use). Ideally, we'd be able to set boxes access_last_time remotely, with a fallback to storing that value locally, but remote boxes with unknown access_last_time should only be marked as recently used when the user connects to it imo.
Comment 7 Zeeshan Ali 2013-05-22 13:17:21 UTC
(In reply to comment #6)
> (In reply to comment #4)
> > Shouldn't we do the same for remote boxes?
> 
> We don't want to mark all remote boxes as recently used (think of a RHEV
> instance with 10 VMs that you never use). Ideally, we'd be able to set boxes
> access_last_time remotely, with a fallback to storing that value locally, but
> remote boxes with unknown access_last_time should only be marked as recently
> used when the user connects to it imo.

No, I meant like when you add a single remote machine through URI in the wizard. Its very likely that you want to start using it immediately.
Comment 8 Christophe Fergeau 2013-05-22 13:55:31 UTC
(In reply to comment #7)
> No, I meant like when you add a single remote machine through URI in the
> wizard. Its very likely that you want to start using it immediately.

Ah yeah, I'll try to look into that.
Comment 9 Christophe Fergeau 2013-05-27 12:45:42 UTC
Created attachment 245384 [details] [review]
Make sure new remote VMs are marked as used recently

When creating a VM for a remote connection (SPICE/VNC) we don't
connect to its display automatically but run it minimized. This means
it never gets marked as recently used automatically as this is
done in the Display class. This commit sets Machine::access_last_time
when creating a RemoteMachine instance to ensure the newly created VM
appears first in the collection view.
Comment 10 Christophe Fergeau 2013-05-27 12:48:29 UTC
Review of attachment 245384 [details] [review]:

In addition to that, we should automatically display the VM when adding a remote box rather than just adding it to the overview, but I'll open another bug for that.
Comment 11 Zeeshan Ali 2013-05-27 13:46:32 UTC
Review of attachment 245384 [details] [review]:

ACK
Comment 12 Zeeshan Ali 2013-05-27 13:51:12 UTC
(In reply to comment #10)
> Review of attachment 245384 [details] [review]:
> 
> In addition to that, we should automatically display the VM when adding a
> remote box rather than just adding it to the overview, but I'll open another
> bug for that.

Sorry, I didn't get that. Display the VM when adding remote box? You mean we should launch the (remote) box after adding it just like we do with VM boxes that are not express installed?
Comment 13 Christophe Fergeau 2013-05-27 13:53:28 UTC
(In reply to comment #12)
> (In reply to comment #10)
> > Review of attachment 245384 [details] [review] [details]:
> > 
> > In addition to that, we should automatically display the VM when adding a
> > remote box rather than just adding it to the overview, but I'll open another
> > bug for that.
> 
> Sorry, I didn't get that. Display the VM when adding remote box? You mean we
> should launch the (remote) box after adding it just like we do with VM boxes
> that are not express installed?

Yes, except that it's not really 'launching' as it's already running, but yeah, connect to it as we do for non-express installations indeed.
Comment 14 Christophe Fergeau 2013-05-28 14:34:00 UTC
Attachment 245384 [details] pushed as 5c29967 - Make sure new remote VMs are marked as used recently