Skip to content

Commit 420ae97

Browse files
committed
[uplift_beta] Drop the temporary workaround
1 parent 4d21141 commit 420ae97

1 file changed

Lines changed: 0 additions & 26 deletions

File tree

bugbot/rules/uplift_beta.py

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -37,17 +37,6 @@ def columns(self):
3737
return ["id", "summary", "assignee"]
3838

3939
def handle_bug(self, bug, data):
40-
# XXX: This is a temporary workaround, should be dropped after
41-
# fixing https://github.com/mozilla/bugbot/issues/1953
42-
if self._has_patch_after_closed(bug):
43-
from bugbot import logger
44-
45-
logger.error(
46-
"Bug %s has a patch after being closed without an uplift approval flag. This could be a sign that Bug 1825961 is still not fixed.",
47-
bug["id"],
48-
)
49-
return
50-
5140
bugid = str(bug["id"])
5241

5342
assignee = bug.get("assigned_to", "")
@@ -137,21 +126,6 @@ def get_bz_params(self, date):
137126

138127
return params
139128

140-
def _has_patch_after_closed(self, bug):
141-
patches = [
142-
attachment["creation_time"]
143-
for attachment in bug["attachments"]
144-
if attachment["content_type"] == "text/x-phabricator-request"
145-
and not attachment["is_obsolete"]
146-
]
147-
if len(patches) == 0:
148-
return False
149-
150-
latest_patch_at = max(patches)
151-
resolved_at = bug["cf_last_resolved"]
152-
153-
return latest_patch_at > resolved_at
154-
155129
def get_bugs(self, date="today", bug_ids=[]):
156130
bugs = super(UpliftBeta, self).get_bugs(date=date, bug_ids=bug_ids)
157131
bugs = self.filter_by_regr(bugs)

0 commit comments

Comments
 (0)