Merge lp:~ahayzen/music-app/remix-url-dispatcher-fix-001 into lp:music-app/remix

Proposed by Andrew Hayzen
Status: Merged
Approved by: Victor Thompson
Approved revision: 738
Merged at revision: 736
Proposed branch: lp:~ahayzen/music-app/remix-url-dispatcher-fix-001
Merge into: lp:music-app/remix
Diff against target: 51 lines (+7/-9)
2 files modified
meta-database.js (+1/-2)
music-app.qml (+6/-7)
To merge this branch: bzr merge lp:~ahayzen/music-app/remix-url-dispatcher-fix-001
Reviewer Review Type Date Requested Status
Victor Thompson Approve
Ubuntu Phone Apps Jenkins Bot continuous-integration Approve
Review via email: mp+241458@code.launchpad.net

Commit message

* Fix for db locking issue when using urlhandler

Description of the change

* Fix for db locking issue when using urlhandler

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)
Revision history for this message
Victor Thompson (vthompson) wrote :

This change doesn't seem to fix the issue of the db being locked. Furthermore, I now get the locked db error even if the app is already started:

file:///opt/click.ubuntu.com/com.ubuntu.music/2.0.734/meta-database.js:37: Error
: database table is locked Unable to fetch row

review: Needs Information
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 :

It's possible that when it doesn't work for me this is what's in the log:

file:///opt/click.ubuntu.com/com.ubuntu.music/2.0.735/music-app.qml:543: TypeError: Cannot read property 'filename' of undefined

Revision history for this message
Victor Thompson (vthompson) wrote :

The failures I've been seeing have only been on vivid. I can not get it to fail on the RTM devel-proposed branch. We'll need to be vigilant to see if we regress when the vivid changes possibly make it into RTM. I'm approving this since it fixes the issue on the target RTM release. Thanks!

review: Approve
736. By Andrew Hayzen

* Fix for url dispatcher attempt 2

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)
737. By Andrew Hayzen

* Merge of trunk

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)
738. By Andrew Hayzen

* Remove canLoad=false as this causes the worker to be run!

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 :

This looks good now! Let's hope we can keep this functionality regression-free from here on out.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'meta-database.js'
2--- meta-database.js 2014-11-01 19:17:36 +0000
3+++ meta-database.js 2014-11-12 01:45:57 +0000
4@@ -34,8 +34,7 @@
5 var db = getDatabase();
6 db.transaction(
7 function(tx) {
8- tx.executeSql('DROP TABLE IF EXISTS queue');
9- tx.executeSql("CREATE TABLE IF NOT EXISTS queue(ind INTEGER NOT NULL, filename TEXT)");
10+ tx.executeSql('DELETE FROM queue');
11 });
12 }
13
14
15=== modified file 'music-app.qml'
16--- music-app.qml 2014-11-08 21:03:27 +0000
17+++ music-app.qml 2014-11-12 01:45:57 +0000
18@@ -231,9 +231,6 @@
19 }
20
21 function process(uri, play) {
22- // stop loading the queue as we will load from uriHandler
23- queueLoaderWorker.canLoad = false
24-
25 if (uri.indexOf("album:///") === 0) {
26 uriHandler.processAlbum(uri.substring(9));
27 }
28@@ -555,9 +552,11 @@
29 // initialize playlists
30 Playlists.initializePlaylist()
31
32- // allow the queue loader to start
33- queueLoaderWorker.canLoad = !Library.isQueueEmpty()
34- queueLoaderWorker.list = Library.getQueue()
35+ if (!args.values.url) {
36+ // allow the queue loader to start
37+ queueLoaderWorker.canLoad = !Library.isQueueEmpty()
38+ queueLoaderWorker.list = Library.getQueue()
39+ }
40
41 // everything else
42 loading.visible = true
43@@ -738,7 +737,7 @@
44 trackClicked(songsAlbumArtistModel, 0, true, true);
45
46 // Add album to recent list
47- Library.addRecent(songsAlbumArtistModel.model.get(0, model.RoleModelData).album, "album")
48+ Library.addRecent(songsAlbumArtistModel.get(0, SongsModel.RoleModelData).album, "album")
49 recentModel.filterRecent()
50 } else if (selectedAlbum) {
51 console.debug("Unknown artist-album " + artist + "/" + album + ", skipping")

Subscribers

People subscribed via source and target branches