[0.3]Patch to convert radio, covers, and lyrics managers/plugins to provider system

Bug #288510 reported by Dan O'Reilly
2
Affects Status Importance Assigned to Milestone
Exaile
Fix Released
Medium
Dan O'Reilly
0.3.x
Fix Released
Medium
Dan O'Reilly

Bug Description

Attached is a patch that converts the radio, lyrics, and covers managers and their plugins to use the provider system. Its fairly well tested, but some of the functionality isn't easy to test since the features can't actually be accessed through the GUI yet, so you guys may want to take a close look at it and make sure I didn't screw something up :).

Revision history for this message
Dan O'Reilly (oreilldf) wrote :
Revision history for this message
reacocard (reacocard) wrote :

This patch fails the testsuite horribly - 17 tests failed.

Changed in exaile:
assignee: nobody → oreilldf
importance: Undecided → Medium
status: New → In Progress
Revision history for this message
Dan O'Reilly (oreilldf) wrote :

The testsuite didn't work on my system...I figured it hadn't been kept up-to-date. It looks like my checkout has a bunch of files in it that had been deleted from the main repository but didn't get deleted from my copy for some reason, which was causing it to fail before any tests ran. I'll make them all pass and resubmit.

Revision history for this message
Dan O'Reilly (oreilldf) wrote :

Try #2. I kept the SimpleManager around this time and just had it subclass ProviderHandler. I thought that this approach made sense since LyricsManager and CoverManager were both doing a lot of the same things and getting rid of SimpleManager would mean duplicating some code. If you'd rather the SimpleManager go away completely I can refactor as needed.

Revision history for this message
reacocard (reacocard) wrote :

I'd really prefer not to have it at all - after all, the point of 0.3 is to simplify the codebase, not make it more complex. :) However the patch does apply cleanly and has no regressions that I can see.

Revision history for this message
Dan O'Reilly (oreilldf) wrote :

Fair enough, no more SimpleManager. I also added an event log entry for the add/removal of a lyrics or cover search method.

Revision history for this message
reacocard (reacocard) wrote :

committed in r420

Changed in exaile:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.