fix the compilation album insertion
ClosedPublic

Authored by mgallien on Jul 16 2019, 10:05 PM.

Details

Summary

partial fix for handling albums without album artist

partially handle the case of compilations not getting Various Artists as
album artist

BUG: 409147

Test Plan

all tests are fine and most common cases should be covered.

Diff Detail

Repository
R255 Elisa
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
mgallien requested review of this revision.Jul 16 2019, 10:05 PM
mgallien created this revision.

Fixes the bug for me:

However it introduces a new bug that many of my albums now show the artist for every song, even when they're all the same:

Also needed to manually refresh my music collection. That didn't happen automatically.

mgallien updated this revision to Diff 62768.Jul 29 2019, 9:18 PM
  • more fixes for album discovery when album artist may be missing

fixes all automated tests and partially fixing review comments

It now shows duplicated artists in the albums view here

mgallien updated this revision to Diff 63217.Aug 6 2019, 4:52 PM
  • more fixes for album discovery when album artist may be missing
  • correctly get the single common artists for albums without album artist

albums from a single artist and no album artist are now working correctly

It now shows duplicated artists in the albums view here

Thanks for the tests.
Please let me know if you notice other issues ?

mgallien retitled this revision from [WIP] partially fix the compilation album insertion to fix the compilation album insertion.Aug 6 2019, 4:57 PM
mgallien edited the test plan for this revision. (Show Details)
ngraham accepted this revision.Aug 6 2019, 6:37 PM

This fixes the issue fully for me and I cannot find any regressions--after a full re-index. That did not happen automatically; maybe it should? Can it?

This revision is now accepted and ready to land.Aug 6 2019, 6:37 PM
This revision was automatically updated to reflect the committed changes.

This fixes the issue fully for me and I cannot find any regressions--after a full re-index. That did not happen automatically; maybe it should? Can it?

It cannot yet do it. We would need a way to tell the user:

  • We can fix/improve the data about your music but doing so can take some time. Can Elisa do it now ? [yes] [no]

Ideally, it would keep using the old data until full reindex is done.

The artists view is not working properly now with a fresh database. The artists are correctly shown. But when clicking on them no albums show up

The artists view is not working properly now with a fresh database. The artists are correctly shown. But when clicking on them no albums show up

Sorry, I will check with the flatpak build. Could you open a bug report about that ?