Merge lp:~gang65/ubuntu-system-settings/ubuntu-system-settings-remove-retry-button into lp:ubuntu-system-settings

Proposed by Bartosz Kosiorek
Status: Merged
Approved by: Ken VanDine
Approved revision: 1546
Merged at revision: 1550
Proposed branch: lp:~gang65/ubuntu-system-settings/ubuntu-system-settings-remove-retry-button
Merge into: lp:ubuntu-system-settings
Diff against target: 36 lines (+1/-20)
1 file modified
plugins/system-update/PageComponent.qml (+1/-20)
To merge this branch: bzr merge lp:~gang65/ubuntu-system-settings/ubuntu-system-settings-remove-retry-button
Reviewer Review Type Date Requested Status
Bartosz Kosiorek (community) Needs Information
Ken VanDine Approve
PS Jenkins bot continuous-integration Needs Fixing
Sebastien Bacher (community) Needs Fixing
Review via email: mp+275572@code.launchpad.net

Commit message

Remove "Retry" button, when no internet connection is available.
It will automatically retry after establishing connection (LP: #1479447)

Description of the change

Remove "Retry" button, when no internet connection is available.
It will automatically retry after establishing connection (LP: #1479447)

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thanks but if you remove that component you need to update the anchors of the Label which is currently positioning to the left of the button when that one is displayed (that's likely why the CI failed as well there)

review: Needs Fixing
1546. By Bartosz Kosiorek

Fix anchors

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Bartosz Kosiorek (gang65) wrote :

Unfortunately I don't know why it is failing.

On my second MR, which is adding only README file, the problem is similar:
https://code.launchpad.net/~gang65/ubuntu-system-settings/ubuntu-system-settings-readme-fix/+merge/274811

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/ubuntu_system_settings/tests/test_system_updates.py", line 65, in test_check_for_updates_area
    Eventually(NotEquals(True)))
  File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 423, in assertThat
    raise mismatch_error
testtools.matchers._impl.MismatchError: After 10.0 seconds test on Base.visible failed: True == dbus.Boolean(True, variant_level=1)

review: Needs Information
Revision history for this message
Jonas G. Drange (jonas-drange) wrote :

On 28 October 2015 at 09:28, Bartosz Kosiorek <email address hidden> wrote:

> Review: Needs Information
>
> Unfortunately I don't know why it is failing.
>
> ​
Sorry, these tests are currently failing on all branches.​

Revision history for this message
Ken VanDine (ken-vandine) wrote :

Thanks, looks good!

review: Approve
Revision history for this message
Bartosz Kosiorek (gang65) wrote :

The code has been already approved. When it will be merged?

review: Needs Information

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'plugins/system-update/PageComponent.qml'
2--- plugins/system-update/PageComponent.qml 2015-09-18 14:18:11 +0000
3+++ plugins/system-update/PageComponent.qml 2015-10-28 00:57:48 +0000
4@@ -283,31 +283,12 @@
5 anchors {
6 left: activity.running ? activity.right : parent.left
7 top: parent.top
8- right: btnRetry.visible ? btnRetry.left : parent.right
9+ right: parent.right
10 rightMargin: units.gu(2)
11 leftMargin: units.gu(2)
12 }
13 height: parent.height
14 }
15-
16- Button {
17- id: btnRetry
18- text: i18n.tr("Retry")
19- color: UbuntuColors.orange
20- anchors {
21- right: parent.right
22- top: parent.top
23- bottom: parent.bottom
24- margins: units.gu(1)
25- }
26- visible: !activity.visible
27-
28- onClicked: {
29- activity.running = true;
30- root.state = "SEARCHING";
31- UpdateManager.checkUpdates();
32- }
33- }
34 }
35
36 ListItem.SingleControl {

Subscribers

People subscribed via source and target branches