Merge lp:~chad.smith/lp2kanban/handle-multitask-with-no-linked-branches into lp:lp2kanban
Status: | Merged |
---|---|
Merged at revision: | 137 |
Proposed branch: | lp:~chad.smith/lp2kanban/handle-multitask-with-no-linked-branches |
Merge into: | lp:lp2kanban |
Diff against target: |
273 lines (+87/-44) 3 files modified
src/lp2kanban/bugs2cards.py (+13/-5) src/lp2kanban/kanban.py (+2/-0) src/lp2kanban/tests/test_bugs2cards.py (+72/-39) |
To merge this branch: | bzr merge lp:~chad.smith/lp2kanban/handle-multitask-with-no-linked-branches |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Simon Poirier (community) | Approve | ||
Free Ekanayaka (community) | Approve | ||
Review via email: mp+292028@code.launchpad.net |
Description of the change
Fix a corner case in lp2kanban where bug cards with multiple tasks were being left in CODING status, because get_bug_status didn't account for bugs fixed as trivials (without linked branches).
It also fixes our ignore series tasks logic to avoid tracking series task target status in favor of tracking only the trunk target status.
This branch handles cases specifically like this one:
Specific to bugs like: https:/
In the above bug we now ignore task status of Fix Released and track only the trunk status of Fix Committed. This now pushes the card to the deploy lanes (QA::TODO), properly handling the fact that the bug has no branches linked because it was "trivialed".
To test:
# Either make this project
make configs
make credentials
make
make check
./bin/py ./src/lp2kanban
# Or Hijack jenkins kanban sync job and point the Repository URL to lp:~chad.smith/lp2kanban/handle-multitask-with-no-linked-branches instead of lp:lp2kanban
https:/
# Or stop the jenkins kanban-sync job and patch the existing checkout (which is refreshed each run anyway)
ssh <email address hidden>; sudo -u jenkins bash; cd /var/lib/
LGTM, +1