Merge ~andrey-fedoseev/launchpad:fix-cvereport into launchpad:master
Proposed by
Andrey Fedoseev
Status: | Merged |
---|---|
Approved by: | Andrey Fedoseev |
Approved revision: | 756e9b76a8abb122b8225eb3587982bcf68d19f2 |
Merge reported by: | Otto Co-Pilot |
Merged at revision: | not available |
Proposed branch: | ~andrey-fedoseev/launchpad:fix-cvereport |
Merge into: | launchpad:master |
Diff against target: |
104 lines (+30/-17) 1 file modified
lib/lp/bugs/browser/cvereport.py (+30/-17) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Jürgen Gmach | Approve | ||
Review via email: mp+431036@code.launchpad.net |
Commit message
CVEReportView: use lazy loading for `open_cve_bugtasks` and `resolved_
Description of the change
Previously, these attributes were computed on view initialization, with the exception of the case when the context is a Distribution with no series.
Now, the attributes are always available, regardless of the context, but are computed on demand, when they are actually used.
To post a comment you must log in.
LGTM
P.S.: I think for NamedTuples the ship has sailed :-)