[api] Fix dangling open requests after project/package removal.
authorSascha Peilicke <saschpe@suse.de>
Mon, 29 Aug 2011 13:05:19 +0000 (15:05 +0200)
committerSascha Peilicke <saschpe@suse.de>
Mon, 29 Aug 2011 14:40:26 +0000 (16:40 +0200)
commit5ffb1b47afcfcc6599494700582dfbc9e1a6ebae
treed82de517e93bbbb808578e53bd3326af65b8f6ae
parent42512d45d1c9d5c200175e5a91c37aee60e7ff35
[api] Fix dangling open requests after project/package removal.

When a project/package is removed, we have to revert requests where it
was source, decline requests where it was the target and remove all
by_project/by_package reviews from open requests. Removes several FIXMEs
and should solve bnc#676991.
src/api/app/controllers/source_controller.rb