mozilla-it / bugzilla-kanbanize

Sync Automation between Kanbanize and Mozilla
0 stars 1 forks source link

close cards when we don't care about the bug anymore #21

Closed floatingatoll closed 8 years ago

floatingatoll commented 8 years ago

When a bug is moved to another component, we (or others) often clear the whiteboard status, on the theory that Kanban will stop caring.

This causes two problems.

First, this leaves behind an open card, referencing a bug we no longer care about.

Second, the sync script reintroduces the whiteboard because it has a card referencing it.

So this set of commits instead assumes that, once the bug is gone from our components and has no CC, if someone deleted the whiteboard status, then they truly meant for us to stop tracking it in Kanban. Any open cards extlink'd to the bug are closed.

This does not fully implement #9, but it is a very good start.

floatingatoll commented 8 years ago

Verified:

[Wed Jun 08 05:28:38 2016] [WARN] Bug 1234 came from an open card, but whiteboard is empty; closing the associated card(s).
[Wed Jun 08 05:28:38 2016] [INFO] [ 198/ 640] Card 3072 - Bug  1234 - [card] kanbanize test bug ** [closed card 3072 for goneaway bug 1234] **