Removing Bug-Task From Project Makes Program Crash
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
bug-repo-syncer |
New
|
Medium
|
Unassigned |
Bug Description
In Launchpad a bug task can be removed from a project. From the perspective of Bug Repo Syncer, this means that a bug can suddenly disappear. This confuses the program, it raises an exception and crashes. Something similar can happen in Trac too, as bugs can be deleted there.
Therefore the program should be modified so that deleted bugs don't let the program crash.
However the information that the bug has disappeared (the crash) is only available at the end of the algorithm in `write_
'''TODO:'''
The architecture of the program should be changed, so so that there is a general framework for bugs that need a second pass through the algorithm, and a framework for bugs that need special treatment. Similar needs arise for the translation of bug links.
The damaged bugs should be at least removed form the internal data structures.
'''Done:'''
The error is caught in `LpController.
'''See:'''
* TranslateBugLinks
* https:/
* Bug #970732 (Framework for Second Pass Through Algorithm and for Special Treatment)
This is the traceback:
{{{
Traceback (most recent call last):
File "/usr/local/
bsync.main()
File "/usr/local/
self.
File "/usr/local/
syncer.
File "/usr/local/
self.
File "/usr/local/
new_ids = pipe.upload_
File "/usr/local/
self.
File "/usr/local/
lp_task = self.find_
File "/usr/local/
.format(
KeyError: "Bug 936502 not in 'bug-repo-syncer'."
}}}
Changed in bug-repo-syncer: | |
milestone: | none → 0.3.0 |
importance: | Undecided → Medium |
importance: | Medium → High |
Changed in bug-repo-syncer: | |
status: | New → Confirmed |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
Changed in bug-repo-syncer: | |
status: | Confirmed → New |
importance: | High → Medium |
milestone: | 0.3.0 → 0.4.0 |
description: | updated |
description: | updated |
Changed in bug-repo-syncer: | |
milestone: | 0.4.0 → 0.5.0 |