Merge lp:~michael.nelson/launchpad/635005-difference-details-2 into lp:launchpad/db-devel
| Status: | Merged | ||||
|---|---|---|---|---|---|
| Approved by: | Michael Nelson on 2010-09-17 | ||||
| Approved revision: | no longer in the source branch. | ||||
| Merged at revision: | 9813 | ||||
| Proposed branch: | lp:~michael.nelson/launchpad/635005-difference-details-2 | ||||
| Merge into: | lp:launchpad/db-devel | ||||
| Diff against target: |
958 lines (+452/-101) 21 files modified
lib/canonical/launchpad/interfaces/_schema_circular_imports.py (+4/-0) lib/lp/app/templates/base-layout-macros.pt (+2/-0) lib/lp/code/browser/branchmergeproposal.py (+9/-2) lib/lp/code/browser/codereviewcomment.py (+39/-35) lib/lp/code/browser/configure.zcml (+10/-3) lib/lp/code/browser/tests/test_branchmergeproposal.py (+21/-2) lib/lp/code/browser/tests/test_codereviewcomment.py (+26/-9) lib/lp/code/templates/codereviewcomment-body.pt (+2/-2) lib/lp/code/templates/codereviewcomment-header.pt (+3/-3) lib/lp/registry/browser/configure.zcml (+4/-1) lib/lp/registry/browser/distroseriesdifference.py (+40/-6) lib/lp/registry/browser/tests/test_distroseriesdifference_views.py (+58/-13) lib/lp/registry/browser/tests/test_series_views.py (+19/-0) lib/lp/registry/javascript/distroseriesdifferences_details.js (+86/-0) lib/lp/registry/templates/distroseries-localdifferences.pt (+9/-2) lib/lp/registry/templates/distroseriesdifference-listing-extra.pt (+31/-19) lib/lp/registry/windmill/tests/test_distroseriesdifference_expander.py (+42/-0) lib/lp/services/comments/browser/configure.zcml (+12/-4) lib/lp/services/comments/interfaces/conversation.py (+18/-0) lib/lp/services/comments/templates/comment-body.pt (+8/-0) lib/lp/services/comments/templates/comment-header.pt (+9/-0) |
||||
| To merge this branch: | bzr merge lp:~michael.nelson/launchpad/635005-difference-details-2 | ||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Henning Eggers (community) | code | 2010-09-16 | Approve on 2010-09-20 |
| Curtis Hovey (community) | ui | 2010-09-16 | Approve on 2010-09-17 |
| Abel Deuring (community) | code | Approve on 2010-09-17 | |
|
Review via email:
|
|||
Commit Message
Add extra details of DistroSeriesDif
Description of the Change
Overview
========
This branch adds comment rendering to the extra-details template for DistroSeriesDif
https:/
Details
=======
This branch adds and tests the rendering of comments on the distroseriesdif
It then adds JS to enhance this by loading the snippet and adding it inline as an expanded table row.
Note: A large part of the diff below is adding a default view and templates for the lp.services.
To test
=======
bin/test -vv -m test_distroseri
Windmill:
bin/test -vvm test_distroseri
To demo
=======
Run http://
https:/
| Michael Nelson (michael.nelson) wrote : | # |
On Thu, Sep 16, 2010 at 1:06 PM, Henning Eggers
<email address hidden> wrote:
> Review: Needs Fixing ui*
> Thank you for that great screencast. I just installed "recordmydesktop", too. ;-)
>
> As you mentioned and we discussed in IRC you should use the same style for comments as we have elsewhere on Launchpad. But feel free to propose to change our comments to contain (smaller) logos/head shots of uses. ;-)
Yep. Also, I've just found lp.services.
refactor a bit to use that.
>
> Also discussed: The items in the list of available diffs should be preceded by a download icon and the list should be indented.
Yes for the icon, but when the actual diffs are displayed (perhaps not
when they need to be requested first). And +1 for the indentation too.
> I am also wondering (not discussed) if this section could not be reworded like this:
>
> Differences from last common version:
>
> * Derived version: 1.15-2ubuntu1de
> * Base version: 1.17-1 (0.5kB)
>
> I think this is clearer and has less noise. The word "package" here was noise, too, because we are already in a table row that is about this package. I am just wondering if the whole line should be the link or just the version number. In the latter case the download icon would end up in the middle of the line, which might not be desirable. Maybe you can play around with that a bit to see what looks best.
Sounds good. I'll hopefully have something tomorrow morning :)
| Henning Eggers (henninge) wrote : | # |
The comments section looks good now and the wording for the differences is perfect. Thank you. You fixed the "binary descriptions" sections, too, which I had forgotten to mention. Good job! I guess I was wrong about the idention but this is fine, too. I'd still like the download icon but will not hold the review on this. Let's hear Paul's take on this ... ;-)
Thank you very much again!
Paul, I think I should be in "Launchpad UI Reviewers", shouldn't I?
| Michael Nelson (michael.nelson) wrote : | # |
On Fri, Sep 17, 2010 at 11:04 AM, Henning Eggers
<email address hidden> wrote:
> Review: Approve ui*
> The comments section looks good now and the wording for the differences is perfect. Thank you. You fixed the "binary descriptions" sections, too, which I had forgotten to mention. Good job! I guess I was wrong about the idention but this is fine, too. I'd still like the download icon but will not hold the review on this. Let's hear Paul's take on this ... ;-)
Thanks Henning. Just to be clear, I also want the download icon - but
only when there is something to download. The current UI is
representing the state where we *could* generate that PackageDiff if
the user requests it, but I need to add the JS to do that. Once the
diff has been generated I'm all for it being displayed with the icon
(and updating the similar link on PPA packages to do the same).
@Paul: I'm actually updating the lp.services.
some generic templates/views. I'll hopefully have pushed this by the
time you check, so in addition to the UI review, would you mind
glancing over the lp.services.
it's inline with what the code team envisaged. Thanks.
| Curtis Hovey (sinzui) wrote : | # |
This is excellent. I have no remarks; well done Henning.
| Michael Nelson (michael.nelson) wrote : | # |
I had to make the following changes to ensure code's use of comments renders with their own templates, rather than the default ones for IComment:
http://
As well as ensuring the zcml links up the correct template, it also ensures that the code comment classes (CodeReviewDisp
| Henning Eggers (henninge) wrote : | # |
The incremental diff looks good to me. ;-) Placing the marker interface in the browser code seems to be common practice.

Thank you for that great screencast. I just installed "recordmydesktop", too. ;-)
As you mentioned and we discussed in IRC you should use the same style for comments as we have elsewhere on Launchpad. But feel free to propose to change our comments to contain (smaller) logos/head shots of uses. ;-)
Also discussed: The items in the list of available diffs should be preceded by a download icon and the list should be indented. I am also wondering (not discussed) if this section could not be reworded like this:
Differences from last common version:
* Derived version: 1.15-2ubuntu1de rilucid2 (1.2kB)
* Base version: 1.17-1 (0.5kB)
I think this is clearer and has less noise. The word "package" here was noise, too, because we are already in a table row that is about this package. I am just wondering if the whole line should be the link or just the version number. In the latter case the download icon would end up in the middle of the line, which might not be desirable. Maybe you can play around with that a bit to see what looks best.
I am not approving this yet because I'd like to see the outcome of this and also the inclusion of the standard LP comments first.