mozilla-it / bugzilla-kanbanize

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

Repair bugs that point to another bug's card. #28

Closed floatingatoll closed 8 years ago

floatingatoll commented 8 years ago

First, improve debugging under verbose. This was necessary to trace issue #27.

Next, only sync cards when we didn't just create a new one, since in that circumstance it's a waste of time to proceed further.

Finally, identify when a bug's whiteboard status references a card whose extlink references a different bug. Resolve this by updating the whiteboard to point to either an existing non-archived card for the bug, or to a new card created for it.

Closes #27.

floatingatoll commented 8 years ago
[Thu Jul 21 02:10:32 2016] [WARN] Bug 678 references card 2345 which references bug 901, assigning bug 678 a new card.
[Thu Jul 21 02:10:32 2016] [WARN] Bug 678 already has a card 3456, updating whiteboard
[Thu Jul 21 02:10:32 2016] [DEBUG] Updating whiteboard for bug 678 to << [kanban:https://____.kanbanize.com/ctrl_board/1/3456] >>
[Thu Jul 21 02:10:33 2016] [DEBUG] Updating card 3456 assignee to << person >>