remove old queries

this whole theory of keeping old queries around was a better
theory than practice, especially given that we currently have nearly
60 open queries. We also change files and formats often enough that
the old queries really don't bring any value to the table.

remove support for soft delete on queries to prevent this debt from
building up further.

Change-Id: I3f09358133463d1650cc755cd6a39964f79c7fc8
This commit is contained in:
Sean Dague
2014-02-25 08:35:51 -05:00
parent 71b709e6bf
commit 01ffc276d3
36 changed files with 2 additions and 162 deletions

View File

@@ -25,7 +25,7 @@ import yaml
LOG = logging.getLogger('recheckwatchbot')
def load(directory='queries', skip_resolved=True):
def load(directory='queries'):
"""Load queries from a set of yaml files in a directory."""
bugs = glob.glob("%s/*.yaml" % directory)
data = []
@@ -33,6 +33,5 @@ def load(directory='queries', skip_resolved=True):
bugnum = os.path.basename(fname).rstrip('.yaml')
query = yaml.load(open(fname).read())
query['bug'] = bugnum
if not (skip_resolved and 'resolved_at' in query):
data.append(query)
data.append(query)
return data