Merge lp:~kfogel/launchpad/255868-patches-view-from-bugs-page into lp:launchpad/db-devel
Status: | Merged |
---|---|
Approved by: | Curtis Hovey on 2010-02-18 |
Approved revision: | not available |
Merged at revision: | not available |
Proposed branch: | lp:~kfogel/launchpad/255868-patches-view-from-bugs-page |
Merge into: | lp:launchpad/db-devel |
Diff against target: |
547 lines (+206/-48) 5 files modified
lib/lp/bugs/browser/bugtask.py (+10/-1) lib/lp/bugs/stories/patches-view/patches-view.txt (+89/-0) lib/lp/bugs/stories/xx-bugs-statistics-portlet.txt (+52/-46) lib/lp/bugs/templates/bugtarget-portlet-bugfilters-content.pt (+10/-0) lib/lp/bugs/tests/bug.py (+45/-1) |
To merge this branch: | bzr merge lp:~kfogel/launchpad/255868-patches-view-from-bugs-page |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Curtis Hovey (community) | ui and code | 2010-02-16 | Approve on 2010-02-18 |
Review via email:
|
Karl Fogel (kfogel) wrote : | # |
Karl Fogel (kfogel) wrote : | # |
Requesting review on UI only right now, as still writing tests.
Karl Fogel (kfogel) wrote : | # |
See the two most recent screenshots in the linked bug, for UI review.
- 9005. By Karl Fogel on 2010-02-17
-
Merge from db-devel.
Curtis Hovey (sinzui) wrote : | # |
Hi Karl.
This UI change is consistent with the rest of the page, and I think it is good to land. As I said on IRC, this list is now long and I think we are committed to rethink the list if we want to add another report to this page--a problem we can solve in the future.
- 9006. By Karl Fogel on 2010-02-17
-
Tests for Bug #255868: link to "+patches" view from product bugs page.
* lib/lp/
bugs/stories/ xx-bugs- statistics- portlet. txt:
Extend test output to expect the new item. - 9007. By Karl Fogel on 2010-02-18
-
Add tests for Bug #255868 (link to "+patches" view from product bugs page).
* lib/lp/
bugs/tests/ bug.py: Import print_table.
(print_bugfilters_ portlet_ unfilled,
print_bugfilters_ portlet_ filled) : New functions. * lib/lp/
bugs/stories/ xx-bugs- statistics- portlet. txt:
(print_portlet, print_portlet_contents) : Remove, as these
have now been moved to bug.py and renamed as per above.
Use the replacements, and extend expected test output to
include the new "bugs with patches" item.* lib/lp/
bugs/stories/ patches- view/patches- view.txt:
Add tests for the presence and accuracy of the new stats. - 9008. By Karl Fogel on 2010-02-18
-
Merge from db-devel.
- 9009. By Karl Fogel on 2010-02-18
-
For bug #255868 (link to "+patches" view from product bugs page),
include all statuses in count of bugs with patches, and update
tests accordingly. Also, fix a missing import in one test file.* lib/lp/
bugs/browser/ bugtask. py: Import RESOLVED_ BUGTASK_ STATUSES.
(BugsStatsMixin.bugs_ with_patches_ count): Include all bugs in count. * lib/lp/
bugs/stories/ patches- view/patches- view.txt: Expect
5 bugs with patches now, instead of 4, due to above change.* lib/lp/
bugs/stories/ xx-bugs- statistics- portlet. txt: Import
print_bugfilters_ portlet_ unfilled, print_bugfilter s_portlet_ filled.
Karl Fogel (kfogel) wrote : | # |
I've now added tests for the feature. Also, I tweaked the behavior slightly after talking with Jorge Castro: it now shows the count of bugs-with-patches including both resolved and unresolved bugs. The reason for this is that it may be an upstream dev coming to look at patches, whereas the resolution might be set by a distro maintainer who doesn't necessarily have upstream in mind. (Also, this makes the bugfilter stats portlet count consistent with what we show on the +patches view page that the portlet links to.)
Jorge and I agree to check with users of the feature after a few weeks to see how things are working out.
Curtis Hovey (sinzui) wrote : | # |
Thanks for providing the tests, and more thanks for refactoring them.
Put a "bugs with patches" statistic in the upper right portlet box on the bugs page (for products, project groups, and any other foo that has a "bugs.launchpad .net/foo" page.