Exemple #1
0
 def is_bp_done_but_unapproved(self, obj, series):
     if (is_bp(obj) and obj.definition_status in rejected_bp_def_statuses):
         return
     if (is_bp(obj) and obj.implementation_status in closed_bp_statuses):
         if (obj.definition_status != 'Approved'
                 or obj.direction_approved is not True):
             return "Implemented, but not approved for series (%s)" % series
Exemple #2
0
 def is_bp_semiapproved(self, obj, series):
     if (is_bp(obj) and obj.definition_status in rejected_bp_def_statuses):
         return
     if (is_bp(obj) and obj.definition_status == 'Approved'
             and obj.direction_approved is not True):
         return (
             "Definition is approved, but direction is not for series (%s)"
             % series)
Exemple #3
0
 def is_priority_set(self, obj, series):
     if (is_bp(obj) and obj.definition_status in rejected_bp_def_statuses):
         return
     if (is_bug(obj) and obj.status in rejected_bug_statuses):
         return
     if is_bp(obj) and obj.priority not in valid_bp_priorities:
         return "Priority (%s) is not valid for series (%s)" % (
             obj.priority, series)
     if is_bug(obj) and obj.importance not in valid_bug_priorities:
         return "Priority (%s) is not valid for series (%s)" % (
             obj.importance, series)
Exemple #4
0
 def is_milestone_active(self, obj, series):
     if (is_bp(obj) and obj.definition_status in rejected_bp_def_statuses):
         return
     if obj.milestone is None:
         return
     if obj.milestone.is_active:
         return
     if ((is_bug(obj) and obj.status not in closed_bug_statuses)
             or (is_bp(obj)
                 and obj.implementation_status not in closed_bp_statuses)):
         return (
             "Open and targeted to closed milestone (%s) on series (%s)" %
             (get_name(obj.milestone), series))
Exemple #5
0
 def is_assignee_set(self, obj, series):
     if (is_bp(obj) and obj.definition_status in rejected_bp_def_statuses):
         return
     if (is_bug(obj) and obj.status in rejected_bug_statuses):
         return
     if not obj.assignee:
         return "No assignee for series (%s)" % series
Exemple #6
0
 def is_milestone_in_series(self, obj, series):
     if (is_bp(obj) and obj.definition_status in rejected_bp_def_statuses):
         return
     if obj.milestone is None:
         return "No milestone for series (%s)" % series
     if series is None:
         return  # There is another check for missed series
     if (get_name(obj.milestone) in self.mapping['milestones'] and
             self.mapping['milestones'][get_name(obj.milestone)] != series):
         return ("Wrong milestone (%s) for series (%s)" %
                 (get_name(obj.milestone), series))
Exemple #7
0
 def is_bp_in_unknown_status(self, obj, series):
     if (is_bp(obj) and obj.definition_status in rejected_bp_def_statuses):
         return
     if (is_bp(obj) and obj.implementation_status == 'Unknown'):
         return "Status unknown for series (%s)" % series
Exemple #8
0
 def is_rejected_bp_has_milestone(self, obj, series):
     if (is_bp(obj) and obj.definition_status in rejected_bp_def_statuses
             and obj.milestone is not None):
         return ("Rejected blueprint has milestone (%s) for series (%s)" %
                 (obj.milestone.name, series))
Exemple #9
0
 def is_bp_series_defined(self, obj, series):
     if is_bp(obj) and series is None:
         return "No series"