def handle_bug(self, bug, data): bugid = str(bug["id"]) data[bugid] = { "creation": utils.get_human_lag(bug["creation_time"]), "last_change": utils.get_human_lag(bug["last_change_time"]), } return bug
def _commenthandler(self, bug, bugid, data): comments = bug["comments"] bugid = str(bugid) if self.has_last_comment_time(): if comments: data[bugid]["last_comment"] = utils.get_human_lag(comments[-1]["time"]) else: data[bugid]["last_comment"] = "" self.commenthandler(bug, bugid, data)
def _commenthandler(self, bug, bugid, data): comments = bug['comments'] bugid = str(bugid) if self.has_last_comment_time(): if comments: data[bugid]['last_comment'] = utils.get_human_lag( comments[-1]['time']) else: data[bugid]['last_comment'] = '' self.commenthandler(bug, bugid, data)
def handle_bug(self, bug, data): bugid = str(bug["id"]) if self.step == 0: for reg_id in bug["regressed_by"]: reg_id = str(reg_id) if reg_id not in self.regressions: self.regressions[reg_id] = [bugid] else: self.regressions[reg_id].append(bugid) else: data[bugid] = { "creation": utils.get_human_lag(bug["creation_time"]), "priority": bug["priority"], "severity": bug["severity"], } return bug
def handle_bug(self, bug, data): bugid = str(bug['id']) if self.step == 0: for reg_id in bug['regressed_by']: reg_id = str(reg_id) if reg_id not in self.regressions: self.regressions[reg_id] = [bugid] else: self.regressions[reg_id].append(bugid) else: data[bugid] = { 'creation': utils.get_human_lag(bug['creation_time']), 'priority': bug['priority'], 'severity': bug['severity'], } return bug