Skip to content
This repository has been archived by the owner on Jan 20, 2022. It is now read-only.

Commit

Permalink
Remove TODO
Browse files Browse the repository at this point in the history
The complex query turns out to be necessary, because we still support clobbering individual slaves.
i.e. we can have the same builddir with multiple clobbertimes, so the "max n per group" must be calculated.
  • Loading branch information
usize committed Feb 12, 2015
1 parent 81e8244 commit fbefca2
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions relengapi/blueprints/clobberer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,6 @@ def lastclobber_all():
@apimethod({unicode: [rest.ClobberTime]}, unicode)
def lastclobber_by_builder(branch):
"Return a dictionary of most recent ClobberTimes grouped by buildername."
# TODO: simplify this query, new clobberer _only_ tracks max clobber times
# - old clobberer did not - so this query may be simplified under that
# assuption
session = g.db.session(DB_DECLARATIVE_BASE)

# Isolates the maximum lastclobber for each builddir on a branch
Expand Down

0 comments on commit fbefca2

Please sign in to comment.