Example #1
0
 def __init__(self):
     super(ToTriage, self).__init__()
     self.escalation = Escalation(self.people,
                                  data=self.get_config("escalation"))
     self.round_robin = RoundRobin.get_instance(
         teams=self.get_config("teams", []))
     self.components = self.round_robin.get_components()
     for person in self.get_config("persons", []):
         self.components += utils.get_triage_owners()[person]
Example #2
0
 def __init__(self):
     super(ToTriage, self).__init__()
     self.escalation = Escalation(self.people,
                                  data=self.get_config("escalation"))
     try:
         self.round_robin = RoundRobin.get_instance(
             teams=self.get_config("teams", []))
     except (BadFallback, InvalidCalendar) as err:
         logger.error(err)
     self.components = self.round_robin.get_components()
     for person in self.get_config("persons", []):
         self.components += utils.get_triage_owners()[person]
Example #3
0
    def get_query_url_for_triage_owner(self, owner):
        if self.all_owners is None:
            self.all_owners = utils.get_triage_owners()
        params = copy.deepcopy(self.query_params)
        if 'include_fields' in params:
            del params['include_fields']

        comps = self.all_owners[owner]
        comps = set(comps)

        params['component'] = sorted(comps)
        url = utils.get_bz_search_url(params)

        return url
Example #4
0
    def get_query_url_for_triage_owner(self, owner):
        if self.all_owners is None:
            self.all_owners = utils.get_triage_owners()
        params = copy.deepcopy(self.query_params)
        if 'include_fields' in params:
            del params['include_fields']

        comps = self.all_owners[owner]
        comps = set(comps)

        params['component'] = sorted(comps)
        url = utils.get_bz_search_url(params)

        return url