Merge lp:~mbp/launchpad/678090-affected-count into lp:launchpad
Proposed by
Martin Pool
Status: | Merged |
---|---|
Approved by: | Martin Pool |
Approved revision: | no longer in the source branch. |
Merged at revision: | 14292 |
Proposed branch: | lp:~mbp/launchpad/678090-affected-count |
Merge into: | lp:launchpad |
Diff against target: |
362 lines (+184/-43) 7 files modified
lib/lp/bugs/browser/bugtask.py (+44/-27) lib/lp/bugs/browser/tests/test_bugtask.py (+112/-9) lib/lp/bugs/configure.zcml (+1/-0) lib/lp/bugs/interfaces/bug.py (+11/-7) lib/lp/bugs/model/bug.py (+9/-0) lib/lp/bugs/stories/webservice/xx-bug.txt (+1/-0) lib/lp/services/features/flags.py (+6/-0) |
To merge this branch: | bzr merge lp:~mbp/launchpad/678090-affected-count |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Ian Booth | Pending | ||
Review via email: mp+81108@code.launchpad.net |
Commit message
[r=mbp][bug=678090] bug page shows count of all affected people across dupes
Description of the change
This changes the "affects N people" on a bug page to show the total people affected across all bugs.
It does this by actually counting them, which may or may not be a performance problem. I have checked there is only one query, and actually by rearranging the code and using a cachedproperty it now does fewer queries than previously.
Robert suggested just adding up the cached affected-user-count across all duplicates, but that's incorrect in a way that's likely to generate knock-on bugs, and it wasn't obvious how to implement it.
To post a comment you must log in.
This branch is currently incomplete but I'd still appreciate pre-review on the general approach. Specifically before it can land:
* it needs the javascript version updated
* perhaps the js and server-side forms can be unified using Moustache?
* it needs tests