Merge lp:~gmb/launchpad/show-bwa-on-bw-pages-bug-558409 into lp:launchpad/db-devel
Status: | Merged |
---|---|
Approved by: | Graham Binns |
Approved revision: | no longer in the source branch. |
Merged at revision: | not available |
Proposed branch: | lp:~gmb/launchpad/show-bwa-on-bw-pages-bug-558409 |
Merge into: | lp:launchpad/db-devel |
Diff against target: |
259 lines (+182/-2) 6 files modified
lib/lp/bugs/browser/bugwatch.py (+30/-1) lib/lp/bugs/browser/configure.zcml (+6/-0) lib/lp/bugs/browser/tests/bugwatch-views.txt (+82/-1) lib/lp/bugs/stories/bugwatches/xx-edit-bugwatch.txt (+43/-0) lib/lp/bugs/templates/bugwatch-editform.pt (+4/-0) lib/lp/bugs/templates/bugwatch-portlet-activity.pt (+17/-0) |
To merge this branch: | bzr merge lp:~gmb/launchpad/show-bwa-on-bw-pages-bug-558409 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Brad Crittenden (community) | code | Approve | |
Curtis Hovey (community) | ui | Approve | |
Eleanor Berger (community) | ui* | Approve | |
Review via email: mp+23308@code.launchpad.net |
Commit message
The latest bug watch activity will now be displayed on the watch's +edit page.
Description of the change
This branch adds the recent activity for a bug watch to its +edit page.
To test this:
1. Run cronscripts/
2. Run cronscripts/
3. Visit https:/
the +edit page with activity data.
I genially stole the design for the activity list from the code guys
(see any ~vcs-imports branch).
No lint.
== lib/lp/
- I've added a property to BugWatchView, recent_
will return a list of dicts containing data about recent activity
which can then be TAL formatted. I did this rather than access the
watch's activity property directly since this allowed me to avoid
having to do things like python:
the TAL, which is just hateful.
- I've added a watch_has_activity property to BugWatchEditView. This is
used to decide whether or not the activity portlet is shown.
== lib/lp/
- I've added the ZCML for the activity portlet.
== lib/lp/
- I've added tests for BugWatchView.
BugWatchEdit
== lib/lp/
- I've added tests for the displaying of activity data on the
BugWatch +edit page.
== lib/lp/
- I've updated the template to show the activity portlet if there's any
activity on the watch.
== lib/lp/
- I've added a template for displaying the bug watch activity.
(14:17:06) intellectronica: gmb: i think it can be improved by highlighting the last (current) status, but since this design is identical to the code imports ui, i'm not sure if we should change it at all
(14:17:26) gmb: intellectronica, Yeah, I think that the general thinking is that we should keep the same design.
(14:17:57) intellectronica: gmb: did you discuss that already with anyone before doing it?
(14:18:38) gmb: intellectronica, When I talked to deryck yesterday he mentioned that someone (jml, I think) was keen to see the code design re-used, and this has been mentioned in previous discussions.
(14:19:24) intellectronica: gmb: yes, i think it makes sense, and in that case, assuming we're not going to change the design on code pages too, i agree that leaving it like this is the pragmatic choice.