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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user