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 758128 - Refactor wizard source page into its own class
Refactor wizard source page into its own class
Status: RESOLVED OBSOLETE
Product: gnome-boxes
Classification: Applications
Component: wizard
unspecified
Other Linux
: Normal normal
: --
Assigned To: GNOME Boxes maintainer(s)
GNOME Boxes maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2015-11-15 10:35 UTC by Adrien Plazas
Modified: 2018-01-11 10:28 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
wizard-source: Take bounding box from Wizard (29.21 KB, patch)
2015-11-15 10:36 UTC, Adrien Plazas
accepted-commit_now Details | Review
wizard-source: Don't access wizard window (3.78 KB, patch)
2015-11-15 10:36 UTC, Adrien Plazas
accepted-commit_now Details | Review
Rename WizardSource to WizardSourcePage (13.34 KB, patch)
2015-11-15 10:36 UTC, Adrien Plazas
accepted-commit_now Details | Review

Description Adrien Plazas 2015-11-15 10:35:16 UTC
This is the first step to solve https://bugzilla.gnome.org/show_bug.cgi?id=750784
Comment 1 Adrien Plazas 2015-11-15 10:36:02 UTC
Created attachment 315623 [details] [review]
wizard-source: Take bounding box from Wizard

This moves the box containing the WizardSource out of the Wizard class
and into WizardSource.

This change is needed to make the Wizard class simpler and to ease its
port to GtkAssistant.
Comment 2 Adrien Plazas 2015-11-15 10:36:08 UTC
Created attachment 315624 [details] [review]
wizard-source: Don't access wizard window

This makes the WizardSource class more self-contained by adding the
file_chooser_requested() signal and the select_file() method to remove
the need of accessing the wizard's window.

This change is needed to make the Wizard class simpler and to ease its
port to GtkAssistant.
Comment 3 Adrien Plazas 2015-11-15 10:36:13 UTC
Created attachment 315625 [details] [review]
Rename WizardSource to WizardSourcePage

This change is needed to keep the wizard's pages' name consistent.
Comment 4 Adrien Plazas 2015-11-15 10:37:22 UTC
These commits are the same as found in https://bugzilla.gnome.org/show_bug.cgi?id=750784 but updated and fixed.
Comment 5 Zeeshan Ali 2015-11-27 14:09:25 UTC
Review of attachment 315623 [details] [review]:

ACK still
Comment 6 Zeeshan Ali 2015-11-27 15:10:12 UTC
Review of attachment 315624 [details] [review]:

ack
Comment 7 Zeeshan Ali 2015-11-27 16:18:27 UTC
Review of attachment 315625 [details] [review]:

If it's the same, still ack.
Comment 8 Zeeshan Ali 2015-11-27 16:20:26 UTC
Well keeping in mind that WizardSource was already a separate class, I don't think these changes are independent enough to be merged separately from rest of the changes in bug#750784, I don't see why you put these changes into a separate bug.
Comment 9 Adrien Plazas 2015-11-28 17:46:32 UTC
The whole refactoring is quite big and I unfortunately don't have that much time to spend on it, especially if I regularly have to solve conflicts from changes included in master every time I want to work on it.

I think that splitting the wizard's refactoring into several smaller bugs, one per page, would allow to merge the changes little by little into master: from the first page to the last one so the order of the changes would follow the order in which the data in processed. The first page is that one that need the least changes, hence it clearly isn't the best example.

I think doing so would make the whole refactoring process easier, but I could totally understand if you don't what this to happen as it would introduce partial changes into master.

Any thoughts?
Comment 10 Zeeshan Ali 2015-11-30 13:26:49 UTC
(In reply to Adrien Plazas from comment #9)
> The whole refactoring is quite big and I unfortunately don't have that much
> time to spend on it, especially if I regularly have to solve conflicts from
> changes included in master every time I want to work on it.
> 
> I think that splitting the wizard's refactoring into several smaller bugs,
> one per page, would allow to merge the changes little by little into master:
> from the first page to the last one so the order of the changes would follow
> the order in which the data in processed. The first page is that one that
> need the least changes, hence it clearly isn't the best example.
> 
> I think doing so would make the whole refactoring process easier,

Yes, I can understand how it'll help you but there hasn't been any major changes in git master since 3.18 and there won't be any to cause any major rebasing for you.

> but I
> could totally understand if you don't what this to happen as it would
> introduce partial changes into master.

Yeah, I wouldn't want partial changes.

I would advise you to instead to keep rebasing your changes on git master every week or so (put it in your calendar perhaps). That way, even if you won't have time to work on it, you'll mostly have small rebasing to do, you'll remain in touch with code. When you do get time to actually work on it, you'll be able to start immediately rather than dealing with large rebase or figuring out what were you going for.
Comment 11 GNOME Infrastructure Team 2018-01-11 10:28:38 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gnome-boxes/issues/74.