don't show series-targetted bugs in portal for obsolete series
Bug #364712 reported by
Martin Pool
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
High
|
Deryck Hodge |
Bug Description
This seems to be a new regression?
The bugs list page shows all the series on the project, but it should hide obsolete series.
Related branches
lp://staging/~deryck/launchpad/series-targeted-with-zero-bugs-364712
- Eleanor Berger (community): Approve
- Diff: None lines
tags: | added: series-milestone-ui |
Changed in malone: | |
status: | New → Triaged |
importance: | Undecided → High |
Changed in malone: | |
assignee: | nobody → Deryck Hodge (deryck) |
milestone: | none → 2.2.8 |
status: | Triaged → In Progress |
Changed in malone: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
We should get this in our 3.0 UI updates. It's fairly easy to fix.
The following quickly-hacked-out and not-quite-perfect patch gets much of the way there:
=== modified file 'lib/lp/ bugs/browser/ bugtarget. py' bugs/browser/ bugtarget. py 2009-07-27 14:14:53 +0000 bugs/browser/ bugtarget. py 2009-08-14 15:05:20 +0000
--- lib/lp/
+++ lib/lp/
@@ -1139,11 +1139,13 @@
for series in serieses:
- series_
- dict(
- title=series.name,
- url=canonical_
- count=series.
+ series_bug_count = series.
+ if series_bug_count:
+ series_
+ dict(
+ title=series.name,
+ url=canonical_
+ count=series_
return series_buglistings
=== modified file 'lib/lp/ bugs/templates/ bugtask- portlet- seriesbugs. pt' bugs/templates/ bugtask- portlet- seriesbugs. pt 2009-07-17 17:59:07 +0000 bugs/templates/ bugtask- portlet- seriesbugs. pt 2009-08-14 15:11:39 +0000 xml.zope. org/namespaces/ metal" xml.zope. org/namespaces/ i18n" release- critical- bugs" "series_ buglistings view/series_ buglistings" > "series_ buglistings view/series_ buglistings" "series_ buglistings" >
--- lib/lp/
+++ lib/lp/
@@ -3,7 +3,8 @@
xmlns:metal="http://
xmlns:i18n="http://
class="portlet" id="portlet-
- tal:define=
+ tal:define=
+ tal:condition=
<h2> Series- targeted bugs</h2>