Merge lp:~deryck/launchpad/filebug-input-display-346722 into lp:launchpad

Proposed by Deryck Hodge
Status: Merged
Merged at revision: not available
Proposed branch: lp:~deryck/launchpad/filebug-input-display-346722
Merge into: lp:launchpad
Diff against target: 63 lines
4 files modified
lib/lp/bugs/browser/bugtarget.py (+1/-1)
lib/lp/bugs/stories/guided-filebug/xx-displaying-similar-bugs.txt (+7/-0)
lib/lp/bugs/templates/bugtarget-filebug-submit-bug.pt (+1/-8)
lib/lp/bugs/templates/bugtarget-macros-filebug.pt (+2/-0)
To merge this branch: bzr merge lp:~deryck/launchpad/filebug-input-display-346722
Reviewer Review Type Date Requested Status
Jeroen T. Vermeulen (community) Approve
Review via email: mp+12661@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Deryck Hodge (deryck) wrote :

Bug 346722 describes a simple problem creating enormous pain for Ubuntu.
The filebug input is so small that crash summaries don't display fully
and more duplicates reports are filled than perhaps could be if the user
could better double check the generated summary against possible dupes.

This branch makes the input longer so that long summaries are readable
and also adds the query to the heading above the dupes, so that the user
can see the query he or she entered when comparing to possible dupes.

beuno has signed off on the UI for this, since we're at a sprint
together currently.

== Tests ==

./bin/test -vv -t xx-displaying-similar-bugs.txt

This test has been updated to test that the query is re-displayed in the
heading.

= Launchpad lint =

Checking for conflicts. and issues in doctests and templates.
Running jslint, xmllint, pyflakes, and pylint.
Using normal rules.

Linting changed files:
   lib/lp/bugs/browser/bugtarget.py
   lib/lp/bugs/stories/guided-filebug/xx-displaying-similar-bugs.txt
   lib/lp/bugs/templates/bugtarget-filebug-submit-bug.pt

Revision history for this message
Jeroen T. Vermeulen (jtv) wrote :

The code is good (not much to go wrong in any case) and I'm sure a nice
improvement. I do have some misgivings about plunking possibly long or
punctuated search strings into running text, but that's a UI design call.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'lib/lp/bugs/browser/bugtarget.py'
2--- lib/lp/bugs/browser/bugtarget.py 2009-09-25 06:30:06 +0000
3+++ lib/lp/bugs/browser/bugtarget.py 2009-10-01 13:12:17 +0000
4@@ -903,7 +903,7 @@
5 # XXX: Brad Bollenbach 2006-10-04: This assignment to actions is a
6 # hack to make the action decorator Just Work across inheritance.
7 actions = FileBugViewBase.actions
8- custom_widget('title', TextWidget, displayWidth=40)
9+ custom_widget('title', TextWidget, displayWidth=65)
10 custom_widget('tags', BugTagsWidget)
11
12 _SEARCH_FOR_DUPES = ViewPageTemplateFile(
13
14=== modified file 'lib/lp/bugs/stories/guided-filebug/xx-displaying-similar-bugs.txt'
15--- lib/lp/bugs/stories/guided-filebug/xx-displaying-similar-bugs.txt 2009-08-18 11:04:38 +0000
16+++ lib/lp/bugs/stories/guided-filebug/xx-displaying-similar-bugs.txt 2009-10-01 13:12:17 +0000
17@@ -80,6 +80,13 @@
18 Closed (0 comments) last updated 2006-05-19...
19 When I press print in Firefox...
20
21+To help the user verify if a bug is indeed simliar to the problem
22+being reported, the user's original summary is displayed above
23+the list of potentially similar bugs.
24+
25+ >>> query = find_tag_by_id(user_browser.contents, 'filebug-query-heading')
26+ >>> print extract_text(query)
27+ Is "reflow" one of these bugs?
28
29 == Projects ==
30
31
32=== modified file 'lib/lp/bugs/templates/bugtarget-filebug-submit-bug.pt'
33--- lib/lp/bugs/templates/bugtarget-filebug-submit-bug.pt 2009-08-18 16:32:03 +0000
34+++ lib/lp/bugs/templates/bugtarget-filebug-submit-bug.pt 2009-10-01 13:12:17 +0000
35@@ -24,14 +24,7 @@
36 <div tal:condition="view/isPrivate" id="privacy" class="aside private">
37 This report will be private, though you can disclose it later.
38 </div>
39- <h2>
40- <tal:heading condition="not:view/show_duplicate_list">
41- Report a bug
42- </tal:heading>
43- <tal:heading condition="view/show_duplicate_list">
44- Is the bug you&rsquo;re reporting one of these?
45- </tal:heading>
46- </h2>
47+ <h1>Report a bug</h1>
48 </div>
49
50 <div metal:fill-slot="main">
51
52=== modified file 'lib/lp/bugs/templates/bugtarget-macros-filebug.pt'
53--- lib/lp/bugs/templates/bugtarget-macros-filebug.pt 2009-09-14 13:33:19 +0000
54+++ lib/lp/bugs/templates/bugtarget-macros-filebug.pt 2009-10-01 13:12:17 +0000
55@@ -361,6 +361,8 @@
56 </metal:bug_reporting_guidelines>
57
58 <metal:similar-bugs define-macro="display-similar-bugs">
59+ <p id="filebug-query-heading">Is "<strong><span tal:replace="view/search_text">my submitted bug
60+ summary</span></strong>" one of these bugs?</p>
61 <ul id="similar-bugs">
62 <li tal:repeat="bug view/similar_bugs" class="similar-bug">
63 <table tal:define="bugtask python:view.getRelevantBugTask(bug)">