unmerge albums by using the paths of their tracks
ClosedPublic

Authored by mgallien on Jun 7 2018, 9:38 PM.

Details

Summary

unmerge albums by using the paths of their tracks

fix typo in DatabaseInterface::getDuplicateTrackIdFromTitleAlbumTrackDiscNumber

fix some problems with database due to errors in foreign keys management

duplicate albums if they look like the same but have a different path
where there tracks are located

BUG: 394332

fix mediaplaylisttest.cpp automatic tests after fixing bugs in the db

Test Plan

tests are OK

Diff Detail

Repository
R255 Elisa
Branch
duplicatedAlbums
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 235
Build 235: arc lint + arc unit
mgallien requested review of this revision.Jun 7 2018, 9:38 PM
mgallien created this revision.
januz added a comment.Jun 8 2018, 1:29 PM

When I tried this the first time I got this error and the loading animation running constantly.

transaction failed QSqlError("", "Unable to begin transaction", "cannot start a transaction within a transaction") "Unable to begin transaction"

However, once I nuked the DB it loaded just fine and I can confirm this fixes the bug. Great work!

When I tried this the first time I got this error and the loading animation running constantly.

transaction failed QSqlError("", "Unable to begin transaction", "cannot start a transaction within a transaction") "Unable to begin transaction"

However, once I nuked the DB it loaded just fine and I can confirm this fixes the bug. Great work!

Thanks for your report. I will check the error before landing this.

Is using the path really the correct way to handle this? It could also be possible that some files from the same album are located in different folders. Reading the bug report, the difference is the artist of the album. But thinking of it, it could also be that the artists differ for each track of one album. Ideally, if album artist is tagged, this one should be used to split the albums.

mgallien updated this revision to Diff 36538.Jun 22 2018, 9:31 PM
  • fix upgrade path from older database schema of Elisa
astippich accepted this revision.Jun 24 2018, 8:59 AM
This revision is now accepted and ready to land.Jun 24 2018, 8:59 AM
This revision was automatically updated to reflect the committed changes.