Merge lp:~diegosarmentero/ubuntuone-windows-installer/network-detect into lp:ubuntuone-windows-installer
| Status: | Merged | ||||
|---|---|---|---|---|---|
| Approved by: | Alejandro J. Cura on 2012-01-27 | ||||
| Approved revision: | 122 | ||||
| Merged at revision: | 104 | ||||
| Proposed branch: | lp:~diegosarmentero/ubuntuone-windows-installer/network-detect | ||||
| Merge into: | lp:ubuntuone-windows-installer | ||||
| Diff against target: |
519 lines (+345/-16) 5 files modified
ubuntuone_installer/gui/qt/gui.py (+47/-14) ubuntuone_installer/gui/qt/network_detection.py (+76/-0) ubuntuone_installer/gui/qt/tests/__init__.py (+19/-1) ubuntuone_installer/gui/qt/tests/test_gui.py (+108/-1) ubuntuone_installer/gui/qt/tests/test_network_detection.py (+95/-0) |
||||
| To merge this branch: | bzr merge lp:~diegosarmentero/ubuntuone-windows-installer/network-detect | ||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Alejandro J. Cura (community) | Approve on 2012-01-27 | ||
| Natalia Bidart | 2011-09-26 | Approve on 2012-01-25 | |
|
Review via email:
|
|||
Commit Message
- Fixed: Missing page: No network detected (LP: #804610).
Description of the Change
Fixed: Missing page: No network detected (LP: #804610).
To test in real life, you need to execute the installer with the "--installer param.
And configure the VM enabling the net adaptar for the traditional flow and then disabling the net adapter to see the Network Detection page.
- 74. By Diego Sarmentero on 2011-09-28
-
- Fixed: There is no feedback on captcha loading/refreshing (LP: #852105).
- 75. By Diego Sarmentero on 2011-10-03
-
Fixed: LocalFoldersPag
e.get_info does not hide the overlay on backend error (LP: #828944). - 76. By Manuel de la Peña on 2011-10-04
-
Provides a function that allows the installer to know if the old beta is installed in the system. The technique uses the msi lib and ctypes to check that the uid of the old beta is present in the system.
| Diego Sarmentero (diegosarmentero) wrote : | # |
> Question: does this branch depend on the sso/network-detect branch? Should I
> use that to test this one?
>
> Reviewing it, the branch looks fine. Just one detail:
> Is this copypasta? "Authors: Roberto Alsina <email address hidden>"
Yes, this depends on the other branch.
And i forgot to include myself as an author (Roberto started a branch for this, and i took what he has to keep on this task).
- 77. By Alejandro J. Cura on 2011-10-07
-
Do a HEAD request on the server to get accurate timestamp (LP: #692597).
- 78. By Manuel de la Peña on 2011-10-11
-
Provides a function that can be used to uninstall the old beta of ubuntu one.
- 79. By Diego Sarmentero on 2011-10-11
-
Fixed: When running the wizard from the bundle, the "Skip tour" is the default button (LP: #845778).
Fixed: When running the wizard from the bundle, there is no default button in the first screen (LP: #848016). - 80. By Diego Sarmentero on 2011-10-13
-
Fixed: Wizard is not closed on license agreement screen (LP: #835167).
- 81. By Manuel de la Peña on 2011-10-18
-
Provides a function that allows to migrate the data that was downloed by the previous beta.
- 82. By Manuel de la Peña on 2011-10-21
-
Fix the reactor installation by ensuring that tools does not install the reactor.
- 83. By Diego Sarmentero on 2011-10-28
-
Fixed Tests (LP: #882519).
- 84. By Natalia Bidart on 2011-11-07
-
Bump release for development.
- 85. By Diego Sarmentero on 2011-11-08
-
Fixed: Should call self.backend.
connect_ files as soon as valid credentials are created (LP: #852085). - 86. By Diego Sarmentero on 2011-11-11
-
- Fixed: Process finished successfully (LP: #859743).
- 87. By Diego Sarmentero on 2011-11-11
-
Fixed: Successfull message after login says "TextLabel" (LP: #889255).
- 88. By Natalia Bidart on 2011-11-12
-
- Import qt4reactor properly (LP: #888722).
- 89. By Natalia Bidart on 2011-11-14
-
- Bump release for development.
- 90. By Manuel de la Peña on 2011-11-23
-
Changed the import from ubuntuone-dev-tools so that we do not use the deprecated API.
- 91. By Manuel de la Peña on 2011-11-24
-
Fixes the code that will call the autoupdate-
windows. exe. The idea is that in the release the .exe will be in a diff location to avoid dll collisions. - 92. By Diego Sarmentero on 2011-11-25
-
Fixed congratulations page (LP: #859711).
- 93. By Natalia Bidart on 2011-12-01
-
- Pass module for test to u1trial properly.
- 94. By Manuel de la Peña on 2011-12-01
-
Put all the different pieces of the migration together so that we perform the uninstall and migtration of the data if the user has the very old first beta.
- 95. By Diego Sarmentero on 2011-12-13
-
Fixed: When logging in with an no-yet-validated account, there is no useful message (LP: #851885).
- 96. By Diego Sarmentero on 2011-12-13
-
Fixed lint issues
- 97. By Roberto Alsina on 2011-12-21
-
Quote the paths for autostart.
- 98. By Roberto Alsina on 2011-12-26
-
Make UDF creation from the wizard work.
- 99. By Natalia Bidart on 2012-01-03
-
- Proper naming for the project (using ubuntuone-
windows- installer now). - 100. By Diego Sarmentero on 2012-01-04
-
Agree button modified to look as a default button.
- 101. By Roberto Alsina on 2012-01-04
-
Fix strings to:
1) Fix a grammar error
2) Mention Ubuntu One so the user knows what he's upgrading.
| Natalia Bidart (nataliabidart) wrote : | # |
When trying to merged this branch into latest trunk, I get:
Warning: criss-cross merge encountered. See bzr help criss-cross.
M ubuntuone_
Text conflict in ubuntuone_
1 conflicts encountered.
Can you please remove the criss-cross and resolve the conflict?
Thanks!!!
- 102. By Diego Sarmentero on 2012-01-05
-
Conflicts resolved
- 103. By Diego Sarmentero on 2012-01-05
-
Adding network_detection file
- 104. By Diego Sarmentero on 2012-01-05
-
Fixed custom button in License Page.
| Natalia Bidart (nataliabidart) wrote : | # |
I'm getting this lint issue:
== Python Lint Notices ==
ubuntuone_
178: [C0111, FakeWizardButto
- 105. By Diego Sarmentero on 2012-01-06
-
New Network detection implementation.
Added more tests.
| Natalia Bidart (nataliabidart) wrote : | # |
I have several tests not passing: http://
Also (this comes from trunk):
ubuntuone_
178: [C0111, FakeWizardButto
| Natalia Bidart (nataliabidart) wrote : | # |
Running u1lint directly on this branch I'm getting these:
== Python Lint Notices ==
ubuntuone_
200: [W0212, LicensePage.
ubuntuone_
185: [C0103, FakeWizardButto
ubuntuone_
154: [W0622, MainWindowTestC
166: [W0622, MainWindowTestC
178: [W0622, MainWindowTestC
194: [W0622, MainWindowTestC
216: [W0212, MainWindowTestC
225: [W0212, MainWindowTestC
237: [W0212, MainWindowTestC
- 106. By Diego Sarmentero on 2012-01-09
-
Tests and lint issues fixed
| Natalia Bidart (nataliabidart) wrote : | # |
- The new TestCase added in ubuntuone_
- As far as I see, there are no test for the new module ubuntuone_
- 107. By Diego Sarmentero on 2012-01-10
-
Adding network_detection test case.
| Natalia Bidart (nataliabidart) wrote : | # |
I'm getting all these lint issues:
== Python Lint Notices ==
ubuntuone_
224: [C0111, FakeWizardButto
ubuntuone_
40: [C0111, NetworkDetectio
46: [W0212, NetworkDetectio
61: [W0212, NetworkDetectio
72: [W0212, NetworkDetectio
- 108. By Diego Sarmentero on 2012-01-11
-
fixed lint issues.
| Alejandro J. Cura (alecu) wrote : | # |
This branch is looking lovely, thanks for working on it.
One issue:
138 + except Exception, reason:
...
140 + self.critical(
I don't think that showing in the UI the exception message is the right thing
I think we should have a generic/custom error message that's translatable in the U1-win-installer code itself; something like "Cannot get network state" and log the exact reason.
| Alejandro J. Cura (alecu) wrote : | # |
Another thing, that may deserve a new bug: assertEqualPixmaps should be used from a common location, perhaps in sso.
| Alejandro J. Cura (alecu) wrote : | # |
The rest of the branch looks nice; as soon as the above is fixed, ping me and I'll run the tests.
Thanks!
| Diego Sarmentero (diegosarmentero) wrote : | # |
> Another thing, that may deserve a new bug: assertEqualPixmaps should be used
> from a common location, perhaps in sso.
Bug created for this:
https:/
- 109. By Diego Sarmentero on 2012-01-12
-
changing network state exception message.
| Natalia Bidart (nataliabidart) wrote : | # |
The is an error in a test:
=======
[FAIL]
Traceback (most recent call last):
File "E:\windows-
sts\test_gui.py", line 196, in test_license_
self.
twisted.
a = PyQt4.QtCore.
b = 'Error...'
ubuntuone_
heck_connection
-------
Please run the tests *every single time* before pushing a change, even if it's just a string change ;-). Thanks!
- 110. By Diego Sarmentero on 2012-01-12
-
Removing unnecessary tests.
| Alejandro J. Cura (alecu) wrote : | # |
The try: except: removed in the previous-to-last commit should not be removed, because if networkstate.
- 111. By Diego Sarmentero on 2012-01-13
-
Fixing some tests.
| Natalia Bidart (nataliabidart) wrote : | # |
This branch is pratically ready, but when testing IRL, using the following scenario:
* with internet connection, open the installer. You should get the login/register screen. Do nothing for now.
* disable your internet connection from the "Network and Sharing Center".
* open the installer and confirm that the "no network" sreen is shown. Do not close the installer.
* re-enable your internet connection from the "Network and Sharing Center".
* in the opened installer, click "Try again". You will now have the login/register screen, as expected.
* click on the "Sign me with my existent account" button. Nothing happens, and console errors with:
2012-01-16 11:51:11,
If I click on the "Sign me up" button, I get nothing in the UI and in the terminal:
2012-01-16 11:51:11,
QWizard::next: Page 1 already met
- 112. By Diego Sarmentero on 2012-01-17
-
Fixed page navigation
- 113. By Diego Sarmentero on 2012-01-17
-
fixing sign in page navigation
- 114. By Diego Sarmentero on 2012-01-18
-
Merge and fixed tests.
| Natalia Bidart (nataliabidart) wrote : | # |
So, now when I open the wizard with no arguments, I get the network detection page even if I have a valid connection.
- 115. By Diego Sarmentero on 2012-01-18
-
Reordering wizard pages.
- 116. By Diego Sarmentero on 2012-01-18
-
Adding test to check that network detection page is not the first or second one.
- 117. By Diego Sarmentero on 2012-01-18
-
Fixing comment
- 118. By Diego Sarmentero on 2012-01-18
-
Fixing case in comment
| Natalia Bidart (nataliabidart) wrote : | # |
Looks good, but the "Try Again" button is not the default button when starting the installer without any option. See screenshot http://
Could you please add that, so we're consistent with the page when running with the --installer swicth?
- 119. By Diego Sarmentero on 2012-01-24
-
Fixed try again button style.
- 120. By Diego Sarmentero on 2012-01-25
-
Adding Test for try again button properties
- 121. By Diego Sarmentero on 2012-01-25
-
removed unnecessary methods.
| Alejandro J. Cura (alecu) wrote : | # |
As discussed on IRC, setMinimum(
| Alejandro J. Cura (alecu) wrote : | # |
The rest looks fine, I'm about to approve this branch pending the fix just above.
- 122. By Diego Sarmentero on 2012-01-26
-
Changing back setFixed to setMinimum
| Alejandro J. Cura (alecu) wrote : | # |
A long time ago, in a repository far far away... this branch started!
It's nice to see it finally landing!

Question: does this branch depend on the sso/network-detect branch? Should I use that to test this one?
Reviewing it, the branch looks fine. Just one detail:
Is this copypasta? "Authors: Roberto Alsina <email address hidden>"