cmd_merge is too long, and needs tests

Bug #633932 reported by Gavin Panella
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Tarmac
Fix Released
High
dobey

Bug Description

There's a lot of critically import logic in _do_merges. I think it ought to be factored out into testable units. And tested :)

Related branches

Revision history for this message
dobey (dobey) wrote :

Hrmm. I just poked through these two branches that are linked, and the amount of invasive change is a bit offputting. The changes are very large, and i think it's slightly the wrong way to go about testing the merging code that pokes launchpad.

Revision history for this message
Gavin Panella (allenap) wrote :

Rodney, I agree. I realised after getting this far that I should have done TDD on a new implementation of the merge code, using the existing code as a recipe book, or something like that. The ProposalMerger class was an attempt to break up the code into some testable chunks, but it is a bit clunky.

I did this work for Landscape, to get the various landing targets handled by Tarmac. I've moved back to the Launchpad team now, so I've handed the work back to Landscape. Bjorn was involved in this, and I've subscribed him to this bug. I don't know if he'll continue work on my branches or start afresh, or even if he has time to work on this bug at all.

dobey (dobey)
Changed in tarmac:
assignee: nobody → Rodney Dawes (dobey)
importance: Undecided → High
status: New → In Progress
Paul Hummer (rockstar)
Changed in tarmac:
status: In Progress → Fix Committed
Paul Hummer (rockstar)
Changed in tarmac:
milestone: none → tarmac-0.5
Paul Hummer (rockstar)
Changed in tarmac:
status: Fix Committed → 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.