Merge lp:~rvb/launchpad/longpoll-stats-903586 into lp:launchpad
| Status: | Merged |
|---|---|
| Approved by: | Raphaël Badin on 2012-01-03 |
| Approved revision: | no longer in the source branch. |
| Merged at revision: | 14626 |
| Proposed branch: | lp:~rvb/launchpad/longpoll-stats-903586 |
| Merge into: | lp:launchpad |
| Diff against target: |
344 lines (+161/-14) 8 files modified
lib/lp/code/browser/configure.zcml (+3/-0) lib/lp/code/javascript/branchmergeproposal.reviewcomment.js (+3/-1) lib/lp/code/javascript/branchmergeproposal.updater.js (+97/-4) lib/lp/code/javascript/tests/test_branchmergeproposal.updater.html (+12/-0) lib/lp/code/javascript/tests/test_branchmergeproposal.updater.js (+34/-5) lib/lp/code/templates/branchmergeproposal-diff-stats.pt (+7/-0) lib/lp/code/templates/branchmergeproposal-index.pt (+4/-1) lib/lp/code/templates/branchmergeproposal-pagelet-summary.pt (+1/-3) |
| To merge this branch: | bzr merge lp:~rvb/launchpad/longpoll-stats-903586 |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Graham Binns (community) | code | 2012-01-03 | Approve on 2012-01-03 |
|
Review via email:
|
|||
Commit Message
[r=gmb][bug=903586] Update the stats on a MP page.
Description of the Change
This branch makes it so that ,on a merge proposal page, when a new diff is available the stats (number of lines changed, conflicts) are updated. This rely on the existing longpoll mechanism that already updates the diff itself when a new version is available.
= Implementation details =
This branch does 2 things:
- Extract the template bit that generates the stats and expose it mp/++diff-stats (it is done the same way for the diff itself: mp/++diff)
- Change the JavaScript code used by the MP page to update the diff stats when a new version of the diff is available.
= Tests =
firefox lib/lp/
(note that the change to the stats display is already tested in the code)
= QA =
Create a MP and then add a new revision to the branch, wait for the branches to be scanned and make sure that the stats are updated along with the diff itself when the longpoll event kicks in.
