Commit Graph

6 Commits

Author SHA1 Message Date
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