summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorAnton Gladky <gladk@debian.org>2023-05-26 13:02:11 +0000
committerSalvatore Bonaccorso <carnil@debian.org>2023-05-26 13:02:11 +0000
commite8a6999e3a7897c306672716fa66afd7f1d28a13 (patch)
tree375e46381bd4e397ce77f3e7401846e013ec3955 /bin
parentc637a14ebd0adb6fb3bd7291033327b4603cea01 (diff)
Filter list for "unreported" view. Fix #987283
Diffstat (limited to 'bin')
-rwxr-xr-xbin/tracker_service.py13
1 files changed, 11 insertions, 2 deletions
diff --git a/bin/tracker_service.py b/bin/tracker_service.py
index d3d27ebb89..14194321f6 100755
--- a/bin/tracker_service.py
+++ b/bin/tracker_service.py
@@ -1075,14 +1075,23 @@ checker to find out why they have not entered testing yet."""),
replacement="No ITP bugs are currently known.")])
def page_status_unreported(self, path, params, url):
+ show_ignored = params.get('show_ignored', False)
+ show_ignored_flag = False
+ if show_ignored:
+ flags = A(url.updateParamsDict({'show_ignored' : None}),
+ 'Hide ignored issues')
+ show_ignored_flag = True
+ else:
+ flags = A(url.updateParamsDict({'show_ignored' : '1'}),
+ 'Show ignored issues')
def gen():
- for (bug, packages) in self.db.getUnreportedVulnerabilities():
+ for (bug, packages) in self.db.getUnreportedVulnerabilities(show_ignored=show_ignored_flag):
pkgs = make_list([self.make_source_package_ref(url, pkg)
for pkg in packages], ", ")
yield self.make_xref(url, bug), pkgs
return self.create_page(
url, "Unfixed vulnerabilities in unstable without a filed bug",
- [P("""The list below contains vulnerabilities for which no matching
+ [P(flags), P("""The list below contains vulnerabilities for which no matching
Debian bug has been filed, and there is still an unfixed package in sid."""),
make_table(gen(), caption=("Bug", "Packages"))])

© 2014-2024 Faster IT GmbH | imprint | privacy policy