Merge lp:~michael.nelson/launchpad/649559-ajax-comment-on-dsdiff-2 into lp:launchpad/db-devel
| Status: | Merged | ||||
|---|---|---|---|---|---|
| Approved by: | Michael Nelson on 2010-10-01 | ||||
| Approved revision: | no longer in the source branch. | ||||
| Merged at revision: | 9856 | ||||
| Proposed branch: | lp:~michael.nelson/launchpad/649559-ajax-comment-on-dsdiff-2 | ||||
| Merge into: | lp:launchpad/db-devel | ||||
| Diff against target: |
337 lines (+190/-15) 7 files modified
lib/lp/registry/browser/configure.zcml (+3/-0) lib/lp/registry/browser/distroseriesdifference.py (+28/-2) lib/lp/registry/javascript/distroseriesdifferences_details.js (+136/-12) lib/lp/registry/model/distroseriesdifferencecomment.py (+3/-1) lib/lp/registry/templates/distroseriesdifference-listing-extra.pt (+4/-0) lib/lp/registry/templates/distroseriesdifferencecomment-fragment.pt (+2/-0) lib/lp/registry/windmill/tests/test_distroseriesdifference_expander.py (+14/-0) |
||||
| To merge this branch: | bzr merge lp:~michael.nelson/launchpad/649559-ajax-comment-on-dsdiff-2 | ||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Abel Deuring (community) | code | Approve on 2010-10-01 | |
| Henning Eggers (community) | ui* | Approve on 2010-09-30 | |
| Curtis Hovey (community) | ui | 2010-09-30 | Needs Fixing on 2010-09-30 |
|
Review via email:
|
|||
Commit Message
Adds in-line commenting on DistroSeriesDif
Description of the Change
Overview
========
This branch allows users to add comments to distro series differences. I'm initially just after a UI review, after which I'll add a windmill test and tidy-up the code.
See the LEP here:
https:/
and the specific mockup here:
You can view a 1min demo of the UI here:
http://
Details
=======
There were a few things I wasn't happy with code-wise in this branch:
1) Importing model code in a view simply to use order_by - is there a better way? (I tried a string instead ('IDistroSeries
2) Specifying the template manually for CommentXHTMLRep
To test:
========
bin/test -vvm test_distroseri
To demo locally:
================
Run http://
https:/
| Michael Nelson (michael.nelson) wrote : | # |
IRC conversation with Henning and James:
12:15 < noodles775> Hi henninge, can I interest you in another UI review? http://
12:15 < noodles775> Actual MP here: https:/
12:16 < henninge> noodles775: sure, but I have to finish something first.
12:17 * henninge watches screencast right away, though ... ;)
12:17 < noodles775> henninge: no problem (or if you're busy, salgado will be around a bit later too). Thanks.
12:17 < noodles775> Ah :)
12:18 < henninge> noodles775: hm, aren't comments always sorted from oldest to newest in LP? We should stick to that.
12:20 < noodles775> henninge: I wasn't sure in this case - it is more like a wall... as a user, the information I want is the most recent comments. But it's easy to switch.
12:20 < henninge> noodles775: also, in the same vein, "Add comment" is usually placed at the end of the list of comments.
12:20 < henninge> noodles775: Did I mention that this looks great! ;-D
12:21 < henninge> noodles775: sorry for starting off with the negative things ... ;)
12:21 < noodles775> henninge: yes, if the comments are going oldest to newest, then of course it would be at the end. It's only there because I did it more like a wall.
12:21 < noodles775> No problem! Thanks for the feedback.
12:21 < henninge> noodles775: well, I don't see how this case is different from other commenting we have in LP
12:22 < noodles775> henninge: The biggest difference, IMO, is that we're displaying lists of comments for multiple objects on the one page. Ideally, if I had more time, we'd only be showing the 5 latest comments for each (in the details section).
12:22 < henninge> noodles775: mp's have a "Add a review or comment" button on top of the comments that scrolls you down to the end.
12:22 < henninge> dunno why bugs don't.
12:24 < henninge> noodles775: I am not opposed to introducing a "wall" concept for short comments - but they should look different to mark the difference in behaviour.
12:24 < noodles775> james_w: if you're around and have a minute, would you also prefer standard oldest to newest comments for the differences (see above screencast). I've currently got them with the newest first, assuming that's the info that will be needed, but it's easy to switch back.
12:26 < noodles775> henninge: If the heading was "Most recent comments" instead of "Comments" (and later we added a link to the full details for a particular difference with all comments) would that help differentiate?
12:26 < noodles775> (er, and we only showed the 5 most recent on this page?)
12:28 < henninge> noodles775: That would probably help but I still think people will get confused about the ordering.
12:29 < henninge> noodles775: I actually think the reverse ordering is preferrable
12:29 < noodles775> henninge: yeah, perhaps. Let's see what james_w or other people who will be using this say. I'm happy to change it - it's an easy switch.
12:30 < henninge> noodles775: I don't know if it has been discussed before but maybe you could post your screencast to the list and start a discussion to a...
| Curtis Hovey (sinzui) wrote : | # |
I share Henning's view. I am most concerned about point 3. We need this too look differently if it behaves differently. I expect a wall to support threading so that replies are top-to-bottom, but this does not. I think there is a better analogy, changelog. This is not necessarily a change log because my change/action is not directly tied to my comment. If we presented this like a changelog, I think most users will understand what is happening.
Michael, I think the next step is to follow up on Henning's suggestion to send an email to the list. I think changelog/activity logs are great, that we do not use them as often as we should, and that they should be newest to oldest. I hope we can get quick agreement about how they look and behave. We can "fix" bugs, questions, and karma. I hope this will be a foundation for me dream to show activity logs instead of recent portlets on pillars and people.
| Michael Nelson (michael.nelson) wrote : | # |
17:07 < noodles775> sinzui: I'm happy to email the dev list regarding activity-streams etc., but I need to keep working on the next branch. Would you be ok if I re-order the comments and put the add-comment link at the bottom as henninge suggested, so that I'm not blocked on this?
17:08 < sinzui> noodles775, yes
17:08 < noodles775> Great, thanks.
17:08 < henninge> noodles775, sinzui: I agree that this is an acceptable temporary solution. ;)
17:09 < noodles775> Great, thanks henninge
17:09 < sinzui> yes, I really think reverse listing for activity are what users want
17:09 < noodles775> Yes, me too.
| Robert Collins (lifeless) wrote : | # |
On order_by - we probably should just remove the import fascist.
-Rob
| Abel Deuring (adeuring) wrote : | # |
Hi Michael,
a nice branch. I agree that importing a model class to browser just in order to get a parameter for order_by() is a bit odd, but I think it won't hurt much.
Just one stylistic nitpick: The phrase "This method is responsible for adding..." appears at least in two doc strings; I would prefer a simple "This method adds..."

This looks really great! Thank you!
As discussed on IRC, though, I am really worried about the reverse ordering of the comments. Not that I don't like it, it is just inconsistent with other commenting we have in LP (bugs, mps, questions). You mentioned that you considered it more like a "wall" where people post notices. I see three possible solutions:
1. You simply adopt forward ordering for these comments and new comments are written at the bottom. I think it would be ok to only see latest 5 comments or so.
2. We consider adopting the reverse-ordered "wall" concept for all our commenting on Launchpad. That would have to be discussed on the mailing list but you already declined it yourself for MPs.
3. We make the "wall" concept visually different from the "comment" concept, so people are aware that they work differently. This should be more than just a different headline (although that would work as a temporary solution) and might take us back to your original design of the comments (I am sorry, I did not notice the reverse ordering then).
That said, I can only repeat that the page looks great and I just love to hear your voice! ;-)
Henning