Merge lp://staging/~mbp/launchpad/798412-plusone into lp://staging/launchpad
Status: | Rejected |
---|---|
Rejected by: | Robert Collins |
Proposed branch: | lp://staging/~mbp/launchpad/798412-plusone |
Merge into: | lp://staging/launchpad |
Diff against target: |
584 lines (+203/-35) 22 files modified
lib/canonical/launchpad/webapp/publisher.py (+11/-0) lib/lp/answers/stories/question-workflow.txt (+8/-3) lib/lp/answers/templates/question-index.pt (+7/-1) lib/lp/answers/templates/questionmessage-display.pt (+22/-4) lib/lp/app/templates/base-layout-macros.pt (+26/-0) lib/lp/app/templates/base-layout.pt (+15/-0) lib/lp/blueprints/browser/specification.py (+4/-0) lib/lp/blueprints/templates/specification-index.pt (+2/-0) lib/lp/bugs/browser/bugcomment.py (+4/-0) lib/lp/bugs/templates/bugcomment-box.pt (+18/-7) lib/lp/bugs/templates/bugcomment-index.pt (+1/-1) lib/lp/bugs/templates/bugtask-index.pt (+7/-2) lib/lp/code/browser/branchmergeproposal.py (+6/-1) lib/lp/code/stories/branches/xx-code-review-comments.txt (+3/-3) lib/lp/code/templates/branchmergeproposal-index.pt (+6/-0) lib/lp/code/templates/codereviewcomment-body.pt (+6/-4) lib/lp/code/templates/codereviewcomment-header.pt (+25/-2) lib/lp/registry/templates/distribution-index.pt (+6/-2) lib/lp/registry/templates/product-index.pt (+4/-2) lib/lp/services/comments/templates/comment.pt (+5/-1) lib/lp/services/features/flags.py (+6/-0) lib/lp/soyuz/templates/archive-index.pt (+11/-2) |
To merge this branch: | bzr merge lp://staging/~mbp/launchpad/798412-plusone |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Robert Collins (community) | Disapprove | ||
Review via email: mp+83449@code.staging.launchpad.net |
Description of the change
This adds some Google Plus +1 buttons on various interesting objects in Launchpad: archive, product, distro, mp, bug, bug comment, answer, specs.
This could be very usefully extended to comments on bmps and answers, but the object needs to have a URL of its own and those don't yet.
We shouldn't add them to every single page, but mostly to things people are likely to express approval of or interest in. I added them on things I already see people sharing, and on things I feel like sharing myself.
There is a feature flag to turn this off. It defaults to on. We might eventually want a per-user opt-out, but people who feel strongly about not having this probably have a browser configuration to get that already.
There are no specific tests for it (yet). I think the most interesting test is really whether it works with the external systems.
I would like to also add this on bmp comments and answer comments, but the object has to have its own url and I think those don't yet.
I don't show the button on private objects, to prevent people accidentally sharing them, and (questionable) to prevent Google seeing the URL exists. This would be cleaner if there was a consistent .private on eg LaunchpadView. I might add one.
Possibly the button should be moved to a TAL macro.
Comments on BMPs do have URLs, we just don't expose them much. Mainly we expose the reply link.
Comment: /code.launchpad .net/~abentley/ launchpad/ person- bug-listings/ +merge/ 83418/comments/ 180265
https:/
Reply link: /code.launchpad .net/~abentley/ launchpad/ person- bug-listings/ +merge/ 83418/comments/ 180265/ +reply
https:/