def get_bz_params(self, date): start_date, _ = self.get_dates(date) # Find all bugs with regressed_by information which were open after start_date or # whose regressed_by field was set after start_date. params = { "include_fields": ["id", "creator", "regressed_by", "assigned_to"], "f1": "OP", "j1": "OR", "f2": "creation_ts", "o2": "greaterthan", "v2": start_date, "f3": "regressed_by", "o3": "changedafter", "v3": start_date, "f4": "CP", "f5": "regressed_by", "o5": "isnotempty", "n6": 1, "f6": "longdesc", "o6": "casesubstring", "v6": "since you are the author of the regressor", "f7": "flagtypes.name", "o7": "notsubstring", "v7": "needinfo?", "status": ["UNCONFIRMED", "NEW", "REOPENED"], "resolution": ["---"], } utils.get_empty_assignees(params) return params
def get_bz_params(self, date): start_date, end_date = self.get_dates(date) reporters = self.get_config("reporter_exception", default=[]) reporters = ",".join(reporters) regexp = r"http[s]?://hg\.mozilla\.org/(releases/)?mozilla-[^/]+/rev/[0-9a-f]+" bot = utils.get_config("common", "bot_bz_mail")[0] params = { "resolution": "FIXED", "bug_status": ["RESOLVED", "VERIFIED"], "keywords": "meta", "keywords_type": "nowords", "f1": "longdesc", "o1": "regexp", "v1": regexp, "f2": "resolution", "o2": "changedafter", "v2": start_date, "f3": "resolution", "o3": "changedbefore", "v3": end_date, "n4": 1, "f4": "assigned_to", "o4": "changedby", "v4": bot, } if reporters: params.update({"f5": "reporter", "o5": "nowordssubstr", "v5": reporters}) utils.get_empty_assignees(params) return params
def get_bz_params(self, date): start_date, end_date = self.get_dates(date) reporters = self.get_config('reporter_exception', default=[]) reporters = ','.join(reporters) regexp = r'http[s]?://hg\.mozilla\.org/(releases/)?mozilla-[^/]+/rev/[0-9a-f]+' bot = utils.get_config('common', 'bot_bz_mail')[0] params = { 'resolution': 'FIXED', 'bug_status': ['RESOLVED', 'VERIFIED'], 'keywords': 'meta', 'keywords_type': 'nowords', 'f1': 'longdesc', 'o1': 'regexp', 'v1': regexp, 'f2': 'resolution', 'o2': 'changedafter', 'v2': start_date, 'f3': 'resolution', 'o3': 'changedbefore', 'v3': end_date, 'n4': 1, 'f4': 'assigned_to', 'o4': 'changedby', 'v4': bot, } if reporters: params.update({'f5': 'reporter', 'o5': 'nowordssubstr', 'v5': reporters}) utils.get_empty_assignees(params) return params
def get_bz_params(self, date): self.components = utils.get_config('workflow', 'components') params = { 'component': utils.get_components(self.components), 'resolution': '---', 'f1': 'priority', 'o1': 'equals', 'v1': 'P2', } utils.get_empty_assignees(params) return params
def get_bz_params(self, date): self.components = utils.get_config("workflow", "components") params = { "component": utils.get_components(self.components), "resolution": "---", "f1": "priority", "o1": "equals", "v1": "P2", } utils.get_empty_assignees(params) return params
def get_bz_params(self, date): self.components = utils.get_config('workflow', 'components') params = { 'component': utils.get_components(self.components), 'resolution': '---', 'f1': 'priority', 'o1': 'equals', 'v1': 'P2', } utils.get_empty_assignees(params) return params
def get_bz_params(self, date): fields = ["assigned_to"] params = { "include_fields": fields, "resolution": "---", "f1": "keywords", "o1": "casesubstring", "v1": "good-first-bug", "f2": "days_elapsed", "o2": "greaterthan", "v2": self.nmonths * 30, } utils.get_empty_assignees(params, True) return params
def get_bz_params(self, date): date = lmdutils.get_date_ymd(date) start_date = date - relativedelta(months=self.nmonths) fields = ['assigned_to', 'triage_owner', 'flags'] params = { 'include_fields': fields, 'resolution': '---', 'f1': 'assignee_last_login', 'o1': 'lessthan', 'v1': start_date, } utils.get_empty_assignees(params, negation=True) return params
def get_bz_params(self, date): date = lmdutils.get_date_ymd(date) start_date = date - relativedelta(months=self.nmonths) fields = ['assigned_to', 'triage_owner', 'flags'] params = { 'include_fields': fields, 'resolution': '---', 'f1': 'assignee_last_login', 'o1': 'lessthan', 'v1': start_date, } utils.get_empty_assignees(params, negation=True) return params
def get_bz_params(self, date): date = lmdutils.get_date_ymd(date) start_date = date - relativedelta(months=self.nmonths) fields = ["assigned_to", "triage_owner", "flags"] params = { "include_fields": fields, "resolution": "---", "f1": "assignee_last_login", "o1": "lessthan", "v1": start_date, } utils.get_empty_assignees(params, negation=True) return params
def get_bz_params(self, date): self.ndays = NoActivityDays(self.name()).get( (utils.get_next_release_date() - self.nag_date).days) fields = ['triage_owner', 'assigned_to'] comps = utils.get_config('workflow', 'components') params = { 'component': comps, 'include_fields': fields, 'resolution': '---', 'f1': 'priority', 'o1': 'equals', 'v1': 'P1', 'f2': 'days_elapsed', 'o2': 'greaterthaneq', 'v2': self.ndays, } utils.get_empty_assignees(params) return params
def get_bz_params(self, date): self.ndays = NoActivityDays(self.name()).get( (utils.get_next_release_date() - self.nag_date).days) self.date = lmdutils.get_date_ymd(date) fields = ["triage_owner", "flags"] params = { "bug_type": "defect", "include_fields": fields, "resolution": "---", "f1": "priority", "o1": "equals", "v1": "P1", "f2": "days_elapsed", "o2": "greaterthaneq", "v2": self.ndays, } utils.get_empty_assignees(params) return params
def get_bz_params(self, date): self.ndays = NoActivityDays(self.name()).get( (utils.get_next_release_date() - self.nag_date).days) fields = ["triage_owner", "assigned_to"] self.components = utils.get_config("workflow", "components") params = { "component": utils.get_components(self.components), "bug_type": "defect", "include_fields": fields, "resolution": "---", "f1": "priority", "o1": "equals", "v1": "P1", "f2": "days_elapsed", "o2": "greaterthaneq", "v2": self.ndays, } utils.get_empty_assignees(params) return params
def get_bz_params(self, date): self.ndays = NoActivityDays(self.name()).get( (utils.get_next_release_date() - self.nag_date).days ) fields = ['triage_owner', 'flags'] self.components = utils.get_config('workflow', 'components') params = { 'component': utils.get_components(self.components), 'bug_type': 'defect', 'include_fields': fields, 'resolution': '---', 'f1': 'priority', 'o1': 'equals', 'v1': 'P1', 'f2': 'days_elapsed', 'o2': 'greaterthaneq', 'v2': self.ndays, } utils.get_empty_assignees(params) return params
def get_bz_params(self, date): start_date, end_date = self.get_dates(date) reporters = self.get_config('reporter_exception', default=[]) reporters = ','.join(reporters) regexp = r'http[s]?://hg\.mozilla\.org/(releases/)?mozilla-[^/]+/rev/[0-9a-f]+' bot = utils.get_config('common', 'bot_bz_mail')[0] params = { 'resolution': 'FIXED', 'bug_status': ['RESOLVED', 'VERIFIED'], 'keywords': 'meta', 'keywords_type': 'nowords', 'f1': 'longdesc', 'o1': 'regexp', 'v1': regexp, 'f2': 'resolution', 'o2': 'changedafter', 'v2': start_date, 'f3': 'resolution', 'o3': 'changedbefore', 'v3': end_date, 'n4': 1, 'f4': 'assigned_to', 'o4': 'changedby', 'v4': bot, } if reporters: params.update({ 'f5': 'reporter', 'o5': 'nowordssubstr', 'v5': reporters }) utils.get_empty_assignees(params) return params