~achiang/laika/last_modified

« back to all changes in this revision

Viewing changes to laika

  • Committer: Alex Chiang
  • Date: 2010-11-05 16:55:42 UTC
  • Revision ID: achiang@canonical.com-20101105165542-sec01havcc1a6bup
Find bugs with 'closed' status

The Launchpad searchTasks() method, by default, does not return
bugs with 'closed' statuses (closed = Won't Fix, Invalid, Fix Released).

Manually specify all the known statuses in our searches to ensure we
get the full picture of our activity within the time window.

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
        self.user = self.launchpad.people[user]
45
45
        self.window = window
46
46
        self.ppas = ppas
 
47
        self.status = ["New",
 
48
                        "Incomplete",
 
49
                        "Invalid",
 
50
                        "Won't Fix",
 
51
                        "Confirmed",
 
52
                        "Triaged",
 
53
                        "In Progress",
 
54
                        "Fix Committed",
 
55
                        "Fix Released" ]
47
56
 
48
57
    def print_header(self, header):
49
58
        print "==", header, "=="
85
94
        statuses = ['closed', 'fix_released', 'fix_committed',
86
95
                'in_progress', 'triaged', 'confirmed', 'created']
87
96
 
88
 
        tasks = self.user.searchTasks(assignee=self.user)
 
97
        tasks = self.user.searchTasks(assignee=self.user,
 
98
                                      status=self.status)
89
99
        self.print_header("Assigned Bugs")
90
100
 
91
101
        for t in tasks:
109
119
        print
110
120
 
111
121
    def print_comments(self):
112
 
        tasks = self.user.searchTasks(bug_commenter=self.user)
 
122
        tasks = self.user.searchTasks(bug_commenter=self.user,
 
123
                                      status=self.status)
113
124
        self.print_header("Commented Bugs")
114
125
        for t in tasks:
115
126
            if self.bugs.has_key(t.bug.id):
124
135
        print
125
136
 
126
137
    def print_reported(self):
127
 
        tasks = self.user.searchTasks(bug_reporter=self.user)
 
138
        tasks = self.user.searchTasks(bug_reporter=self.user,
 
139
                                      status=self.status)
128
140
        self.print_header("Reported Bugs")
129
141
        for t in tasks:
130
142
            if self.bugs.has_key(t.bug.id):