コード例 #1
0
 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
コード例 #2
0
    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)
コード例 #3
0
    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)
コード例 #4
0
    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
コード例 #5
0
    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