launchpad-reviewers team mailing list archive
-
launchpad-reviewers team
-
Mailing list archive
-
Message #29239
Re: [Merge] ~lgp171188/launchpad:vulnerability-set-view into launchpad:master
Diff comments:
> diff --git a/lib/lp/bugs/browser/vulnerability.py b/lib/lp/bugs/browser/vulnerability.py
> index 3d40cc1..2071463 100644
> --- a/lib/lp/bugs/browser/vulnerability.py
> +++ b/lib/lp/bugs/browser/vulnerability.py
> @@ -28,3 +31,16 @@ class VulnerabilityIndexView(BugLinksListingView):
> return "{} in the {} distribution".format(
> displayname, self.context.distribution.displayname
> )
> +
> +
> +class VulnerabilitySetIndexView(LaunchpadView):
> + @property
> + def label(self):
> + return "{} vulnerabilities".format(self.context.displayname)
> +
> + @property
> + def page_title(self):
> + return self.label
> +
> + def getAllBatched(self):
> + return BatchNavigator(self.context.vulnerabilities, self.request)
`IDistribution.vulnerabilities` currently returns *all* vulnerabilities in a distribution, irrespective of their information type. This has to be fixed in a follow-up MP.
--
https://code.launchpad.net/~lgp171188/launchpad/+git/launchpad/+merge/430357
Your team Launchpad code reviewers is requested to review the proposed merge of ~lgp171188/launchpad:vulnerability-set-view into launchpad:master.
References