[api] Add two methods to DbProject/DbPackage which return open requests with
authorSascha Peilicke <saschpe@suse.de>
Mon, 29 Aug 2011 10:54:31 +0000 (12:54 +0200)
committerSascha Peilicke <saschpe@suse.de>
Mon, 29 Aug 2011 14:40:26 +0000 (16:40 +0200)
commit002838c22db36aed36813fc453c15a3cde29ad01
tree25a613933f3f1a8b9307a231a614035d841da4c7
parent3feffe562174f3241ea9933e4a195cdeaeb0ed86
[api] Add two methods to DbProject/DbPackage which return open requests with
source/target or reviews.

The method 'open_requests_with_package_as_source_or_target' and
'open_requests_with_by_package_review' can be used to find requests
which have to be touched when the package is removed or otherwise
changed.

The DbProject methods also include matching requests for their (contained)
packages.
src/api/app/models/db_package.rb
src/api/app/models/db_project.rb