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
=== modified file 'plugins/system-update/PageComponent.qml'
--- plugins/system-update/PageComponent.qml 2015-09-18 14:18:11 +0000
+++ plugins/system-update/PageComponent.qml 2015-10-28 00:57:48 +0000
@@ -283,31 +283,12 @@
283 anchors {283 anchors {
284 left: activity.running ? activity.right : parent.left284 left: activity.running ? activity.right : parent.left
285 top: parent.top285 top: parent.top
286 right: btnRetry.visible ? btnRetry.left : parent.right286 right: parent.right
287 rightMargin: units.gu(2)287 rightMargin: units.gu(2)
288 leftMargin: units.gu(2)288 leftMargin: units.gu(2)
289 }289 }
290 height: parent.height290 height: parent.height
291 }291 }
292
293 Button {
294 id: btnRetry
295 text: i18n.tr("Retry")
296 color: UbuntuColors.orange
297 anchors {
298 right: parent.right
299 top: parent.top
300 bottom: parent.bottom
301 margins: units.gu(1)
302 }
303 visible: !activity.visible
304
305 onClicked: {
306 activity.running = true;
307 root.state = "SEARCHING";
308 UpdateManager.checkUpdates();
309 }
310 }
311 }292 }
312293
313 ListItem.SingleControl {294 ListItem.SingleControl {

Subscribers

People subscribed via source and target branches