Merge lp:~vthompson/music-app/workaround-1407840-1409186 into lp:music-app/remix

Proposed by Victor Thompson
Status: Rejected
Rejected by: Victor Thompson
Proposed branch: lp:~vthompson/music-app/workaround-1407840-1409186
Merge into: lp:music-app/remix
Diff against target: 47 lines (+18/-13)
1 file modified
MusicNowPlaying.qml (+18/-13)
To merge this branch: bzr merge lp:~vthompson/music-app/workaround-1407840-1409186
Reviewer Review Type Date Requested Status
Victor Thompson Disapprove
Ubuntu Phone Apps Jenkins Bot continuous-integration Approve
Review via email: mp+246028@code.launchpad.net

Commit message

Workaround for lp:1407840 and lp:1409186. The Multi-select Delete action needs to be refactored.

Description of the change

Workaround for lp:1407840 and lp:1409186. The Multi-select Delete action needs to be refactored as it can fail when removing multiple items and can cause the app to become unresponsive when removing many items.

DO NOT LAND UNLESS THE REFACTORING OF THIS FUNCTIONALITY CAN NOT BE ACHIEVED BY JANUARY 12TH WHEN THE APP IS TO BE HANDED OFF TO QA.

To post a comment you must log in.
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)
775. By Victor Thompson

update copyright

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Victor Thompson (vthompson) wrote :

Andrew has a refactor of the Multi-select delete action that works well. This MP is not needed.

review: Disapprove

Unmerged revisions

775. By Victor Thompson

update copyright

774. By Victor Thompson

Work around for lp:1407840 and lp:1409186. The Multi-select Delete action needs to be refactored.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'MusicNowPlaying.qml'
2--- MusicNowPlaying.qml 2015-01-08 00:47:52 +0000
3+++ MusicNowPlaying.qml 2015-01-10 03:32:23 +0000
4@@ -1,5 +1,5 @@
5 /*
6- * Copyright (C) 2013, 2014
7+ * Copyright (C) 2013-2015
8 * Andrew Hayzen <ahayzen@gmail.com>
9 * Daniel Holm <d.holmen@gmail.com>
10 * Victor Thompson <victor.thompson@gmail.com>
11@@ -166,19 +166,24 @@
12
13 queueListLoader.item.closeSelection()
14 }
15- },
16- Action {
17- enabled: queueListLoader.item.selectedItems.length > 0
18- iconName: "delete"
19- text: i18n.tr("Delete")
20- onTriggered: {
21- for (var i=0; i < queueListLoader.item.selectedItems.length; i++) {
22- removeQueue(queueListLoader.item.selectedItems[i])
23- }
24-
25- queueListLoader.item.closeSelection()
26- }
27 }
28+ // FIXME: Workaround for http://pad.lv/1407840 and http://pad.lv/1409186. Currently,
29+ // removing many items from the queue using the Multi-select Delete action will
30+ // fail after 11 or so items (number seems to vary). Also, in general the
31+ // Multi-select Delete action is slow and can cause the app to become unresponsive.
32+ // Therefore, the Multi-select Delete action needs to be redesigned.
33+ //Action {
34+ // enabled: queueListLoader.item.selectedItems.length > 0
35+ // iconName: "delete"
36+ // text: i18n.tr("Delete")
37+ // onTriggered: {
38+ // for (var i=0; i < queueListLoader.item.selectedItems.length; i++) {
39+ // removeQueue(queueListLoader.item.selectedItems[i])
40+ // }
41+
42+ // queueListLoader.item.closeSelection()
43+ // }
44+ //}
45 ]
46 PropertyChanges {
47 target: nowPlaying.head

Subscribers

People subscribed via source and target branches