Merge lp:~jcsackett/launchpad/extend-privacy-notification-to-comments into lp:launchpad
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | j.c.sackett | ||||
Approved revision: | no longer in the source branch. | ||||
Merged at revision: | 13566 | ||||
Proposed branch: | lp:~jcsackett/launchpad/extend-privacy-notification-to-comments | ||||
Merge into: | lp:launchpad | ||||
Prerequisite: | lp:~jcsackett/launchpad/decouple-privacy-notifications | ||||
Diff against target: |
77 lines (+34/-2) 3 files modified
lib/lp/app/javascript/privacy.js (+6/-2) lib/lp/bugs/browser/bugcomment.py (+7/-0) lib/lp/bugs/templates/bugcomment-index.pt (+21/-0) |
||||
To merge this branch: | bzr merge lp:~jcsackett/launchpad/extend-privacy-notification-to-comments | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Ian Booth (community) | code * | Approve | |
Review via email: mp+69655@code.launchpad.net |
Commit message
Extends the new privacy notifications to comments on private bugs.
Description of the change
Summary
=======
We're expanding the ribbon style privacy notification seen right now on bugtasks to other contexts. This branch extends it to bugcomments on private bugs.
Preimplementation
=================
Spoke with Curtis Hovey about bugcomments not being currently covered as part of bugs/bugtasks.
Implementation
==============
lib/lp/
-------
display_
lib/lp/
-------
A property has been added to the view code to determine the "hidden" class to be applied to the privacy ribbon. This is basically cargo culted from the other use of the ribbon in bugtasks.
lib/lp/
-------
The privacy notification code has been included in the template, and the notification html has been added.
Tests
=====
bin/test -vvcm lp.bugs.
firefox lib/lp/
QA
==
Check that the comments on a private bug have the ribbon. Check that the comments on a public bug do not.
Also, confirm that the dismissal of the ribbon on private bugs highlights the privacy portlet.
Thanks for such a detailed mp description. Did you run lint?
35 - 'group_ comments_ with_activity' , comments_ with_activity' , ]
36 - ]
37 + 'group_
Why the above change? I think the original formatting is correct and is used everywhere else. Could you change this back prior to landing?
I was going to ask about adding a yui test for the display_ privacy_ notification( ) method but then noticed there appear to be no yui tests for privacy.js :-(
I originally was also going to ask about the privacy_ notice_ classes property returning '' and not None and then saw that returning '' makes the tales easier to write so I think that's ok.