Merge lp:~vthompson/music-app/remix-hide-empty-items into lp:music-app/remix

Proposed by Victor Thompson
Status: Rejected
Rejected by: Victor Thompson
Proposed branch: lp:~vthompson/music-app/remix-hide-empty-items
Merge into: lp:music-app/remix
Diff against target: 39 lines (+14/-4)
2 files modified
MusicAlbums.qml (+2/-0)
MusicArtists.qml (+12/-4)
To merge this branch: bzr merge lp:~vthompson/music-app/remix-hide-empty-items
Reviewer Review Type Date Requested Status
Victor Thompson Disapprove
Andrew Hayzen Needs Information
Ubuntu Phone Apps Jenkins Bot continuous-integration Needs Fixing
Review via email: mp+239168@code.launchpad.net

Commit message

Remove empty Albums and Artists

Description of the change

Remove empty Albums and Artists. This is a work around also currently employed for Genres. However, the genres fix is mostly legitimate, as genres can be empty--this change fixes various issues that lead to having blank metadata items as the first in the grid for Albums and Artists. This can happen, for instance, when an m3u file is scanned by mediascanner and included in the library reported by the app.

To post a comment you must log in.
Revision history for this message
Andrew Hayzen (ahayzen) wrote :

LGTM may resolve a few of those bugs about clicking on empty items :)

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

Shall we wait for bug 1384295 to be fixed before deciding to merge this?

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

Let's not hide empty items. Instead, let's display that the data is unknown [1]

[1] https://code.launchpad.net/~vthompson/music-app/remix-fix-1379452-2

review: Disapprove

Unmerged revisions

688. By Victor Thompson

Remove empty Album and Artist

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'MusicAlbums.qml'
2--- MusicAlbums.qml 2014-10-12 16:42:07 +0000
3+++ MusicAlbums.qml 2014-10-22 04:04:25 +0000
4@@ -37,6 +37,8 @@
5 id: albumsModel
6 store: musicStore
7 }
8+ filter.property: "title"
9+ filter.pattern: /\S+/
10 sort.property: "title"
11 sort.order: Qt.AscendingOrder
12 }
13
14=== modified file 'MusicArtists.qml'
15--- MusicArtists.qml 2014-10-14 15:46:07 +0000
16+++ MusicArtists.qml 2014-10-22 04:04:25 +0000
17@@ -39,10 +39,18 @@
18 CardView {
19 id: artistCardView
20 itemWidth: units.gu(12)
21- model: ArtistsModel {
22- id: artistsModel
23- albumArtists: true
24- store: musicStore
25+ model: SortFilterModel {
26+ id: artistsModelFilter
27+ property alias rowCount: artistsModel.rowCount
28+ model: ArtistsModel {
29+ id: artistsModel
30+ albumArtists: true
31+ store: musicStore
32+ }
33+ filter.property: "title"
34+ filter.pattern: /\S+/
35+ sort.property: "title"
36+ sort.order: Qt.AscendingOrder
37 }
38 delegate: Card {
39 id: artistCard

Subscribers

People subscribed via source and target branches