Commit Graph

8 Commits

Author SHA1 Message Date
Dan McGee
f0a858aab6 Make rematch command do a bit more
Now that we have a few objects that can potentially link back to
developers, allow flag requests to also be rematched.

Signed-off-by: Dan McGee <dan@archlinux.org>
2012-02-07 00:46:21 -06:00
Dan McGee
0344f8ad56 Add ability to cache users by username on the UserFinder
This is very useful in the signoff message population script where we
are very likely to encounter the same users over and over.

Signed-off-by: Dan McGee <dan@archlinux.org>
2011-11-15 15:04:33 -06:00
Dan McGee
f913bbcab4 Add order_by to packager count query
No real idea why SQLite is returning wrong results without out this, but
it is likely a bug in the ORM layer I'm not interested in digging into.

Signed-off-by: Dan McGee <dan@archlinux.org>
2011-06-28 00:11:49 -05:00
Dan McGee
82289ebb44 Add a rematch_packager management command
This allows quick resolution of all unmatched packages, especially after
tweaking the way find_user works.

Signed-off-by: Dan McGee <dan@archlinux.org>
2011-06-23 20:11:07 -05:00
Dan McGee
9156003d2d Turn find_user into UserFinder class
This moves the cache inside an instance. Also add a few more tests.

Signed-off-by: Dan McGee <dan@archlinux.org>
2011-06-23 19:50:46 -05:00
Dan McGee
26c54d0171 find_user: add tests and fix no email address case
If a packager string was passed in without an email address, we would
blow up on the matcher and not try to find a user.

Signed-off-by: Dan McGee <dan@archlinux.org>
2011-06-23 19:35:47 -05:00
Dan McGee
da20949c8c Move find_user method to devel utils
This could be handy elsewhere as well, and it is loosely coupled to
anything else in reporead.

Signed-off-by: Dan McGee <dan@archlinux.org>
2011-06-23 19:11:12 -05:00
Dan McGee
fa4f5c15c8 Restore flagged package count by maintainer in dashboard
We need to do a little dropping into SQL to accomplish this, but it isn't
all that bad to actually do and we can do the whole thing in one query.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-10 18:27:18 -05:00