• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mozilla / relman-auto-nag / #4349

pending completion
#4349

push

coveralls-python

sosa-e
Revert "Minimizing config file"

This reverts commit 614159597.

564 of 3081 branches covered (18.31%)

24 of 24 new or added lines in 24 files covered. (100.0%)

1804 of 7980 relevant lines covered (22.61%)

0.23 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/auto_nag/scripts/meta_defect.py
1
# This Source Code Form is subject to the terms of the Mozilla Public
2
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
3
# You can obtain one at http://mozilla.org/MPL/2.0/.
4

5
from auto_nag import utils
×
6
from auto_nag.bzcleaner import BzCleaner
×
7

8

9
class MetaDefect(BzCleaner):
×
10
    def __init__(self):
×
11
        super(MetaDefect, self).__init__()
×
12
        self.nmonths = utils.get_config(self.name(), "months_lookup")
×
13

14
    def description(self):
×
15
        return 'Defect with the "meta" keyword with activity for the last {} months'.format(
×
16
            self.nmonths
17
        )
18

19
    def columns(self):
×
20
        return ["id", "summary", "creation", "last_change"]
×
21

22
    def handle_bug(self, bug, data):
×
23
        bugid = str(bug["id"])
×
24
        data[bugid] = {
×
25
            "creation": utils.get_human_lag(bug["creation_time"]),
26
            "last_change": utils.get_human_lag(bug["last_change_time"]),
27
        }
28
        return bug
×
29

30
    def get_bz_params(self, date):
×
31
        params = {
×
32
            "include_fields": ["creation_time", "last_change_time"],
33
            "resolution": "---",
34
            "keywords": "meta",
35
            "keywords_type": "allwords",
36
            "bug_type": ["defect"],
37
            "f1": "days_elapsed",
38
            "o1": "lessthan",
39
            "v1": self.nmonths * 30,
40
        }
41
        return params
×
42

43

44
if __name__ == "__main__":
×
45
    MetaDefect().run()
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc