Merge lp:~vthompson/music-app/fix-1515067 into lp:music-app

Proposed by Victor Thompson
Status: Merged
Approved by: Victor Thompson
Approved revision: 942
Merged at revision: 971
Proposed branch: lp:~vthompson/music-app/fix-1515067
Merge into: lp:music-app
Diff against target: 47 lines (+2/-21)
2 files modified
app/ui/Artists.qml (+1/-21)
debian/changelog (+1/-0)
To merge this branch: bzr merge lp:~vthompson/music-app/fix-1515067
Reviewer Review Type Date Requested Status
Jenkins Bot continuous-integration Approve
Victor Thompson Needs Information
Andrew Hayzen Approve
Michi Henning (community) Needs Information
Facundo Batista question about backend semantics Pending
Review via email: mp+277306@code.launchpad.net

Commit message

* Remove repeater for getting album titles in Artists.qml

Description of the change

* Remove repeater for getting album titles in Artists.qml

This makes the artistart queries the following: image://artistart/artist=Atmosphere&album=

There are 2 main issues/questions concerning this change:
1. Is there a benefit to providing the "album" in this query? Ie, will we get better results?
2. When I remove the album parameter, such that the query is "image://artistart/artist=Atmosphere", none of the artist thumbnails work. This seems to suggest to me that providing an album would be desired.

That being said, the results for providing a blank album seem to be the same as before--just fewer queries.

To post a comment you must log in.
Revision history for this message
Michi Henning (michihenning) wrote :

Thanks for the quick response, Victor!

The changes look good to me. But I don't know that much about the backend semantics, so I added Facundo to the review. Facundo, could you let us know please? We are trying to avoid hitting the server twice for each album in order to get artist art.

What are the semantics of setting only the artist, but not the album?

If I set both, such as "Beatles/Revolver" for one request, and then "Beatles/Help!", is it possible that different artist art would be returned? But maybe the question is academic because the music app does not have the concept of "different artist art depending on the album"...

If the album is needed for disambiguation, no problem. Victor, in that case, I'd just modify the change to always send a single request that specifies both album and artist, and not send the request with the empty album.

The point is to avoid hitting the server twice when once is enough.

review: Needs Information
Revision history for this message
Jenkins Bot (ubuntu-core-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)
lp:~vthompson/music-app/fix-1515067 updated
940. By Victor Thompson

update changelog

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

I've added Facundo Batista to the review.

Revision history for this message
Michi Henning (michihenning) wrote :

For what it's worth, the latest version of the thumbnailer (currently in silo 26) now errors on artist art if no artist is provided, and on album art if no album is provided.

When querying for artist art, leaving the album empty is fine (as it has always been). Similarly, when querying for album art, leaving the artist empty is fine, too. I don't know whether the results will be better with both fields present. (I would expect so, seeing that there are quite likely albums with the same title from different artists.)

Revision history for this message
Andrew Hayzen (ahayzen) wrote :

LGTM :-)

When testing this branch, the artist/album art was correctly created.

I noticed that the local music scope has fallback cover art for where we have art and empty items for where we have fallback, I wonder if this is known or a bug ?

As stated the other comments, it is unclear if specifying the album for artistart helps with accuracy.

For now, I'm going to approve as this reduces the number of calls, which is what it is trying to fix, and we can add sending the album later if required.

review: Approve
Revision history for this message
Michi Henning (michihenning) wrote :

I would strongly recommend to test with the thumbnailer in silo 26, if you haven't done that already.

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

Michi, can you confirm if that silo has landed in rc-proposed or not? I assume it has.

review: Needs Information
Revision history for this message
Michi Henning (michihenning) wrote :

Yes, that landed ages ago.

lp:~vthompson/music-app/fix-1515067 updated
941. By Victor Thompson

Merge trunk and test.

942. By Victor Thompson

Fix changelog

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

Testing against rc-proposed seems to work as intended.

Revision history for this message
Jenkins Bot (ubuntu-core-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Michi Henning (michihenning) wrote :

Can't we land this? This fix seems to be doing the job.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'app/ui/Artists.qml'
2--- app/ui/Artists.qml 2016-01-12 00:30:08 +0000
3+++ app/ui/Artists.qml 2016-01-31 00:01:15 +0000
4@@ -81,31 +81,11 @@
5 }
6 delegate: Card {
7 id: artistCard
8- coverSources: [{art: "image://artistart/artist=" + model.artist + "&album=" + artistCard.album}]
9+ coverSources: [{art: "image://artistart/artist=" + model.artist + "&album="}]
10 objectName: "artistsPageGridItem" + index
11 primaryText: model.artist != "" ? model.artist : i18n.tr("Unknown Artist")
12 secondaryTextVisible: false
13
14- property string album: ""
15-
16- AlbumsModel {
17- id: albumArtistModel
18- albumArtist: model.artist
19- store: musicStore
20- }
21-
22- Repeater {
23- id: albumArtistModelRepeater
24- model: albumArtistModel
25- delegate: Item {
26- property string album: model.title
27- }
28-
29- onItemAdded: {
30- artistCard.album = item.album
31- }
32- }
33-
34 onClicked: {
35 mainPageStack.push(Qt.resolvedUrl("ArtistView.qml"),
36 {
37
38=== modified file 'debian/changelog'
39--- debian/changelog 2016-01-28 01:43:54 +0000
40+++ debian/changelog 2016-01-31 00:01:15 +0000
41@@ -2,6 +2,7 @@
42
43 [ Victor Thompson ]
44 * Release 2.3 and start 2.4
45+ * Remove repeater for getting album titles in Artists.qml (LP: #1515067).
46
47 -- Victor <victor@victor-virtual-machine> Wed, 27 Jan 2016 19:40:55 -0600
48

Subscribers

People subscribed via source and target branches