Merge lp:~jamalta/launchpad/newtag-statement-redundancy into lp:launchpad
| Status: | Merged | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Approved by: | Brad Crittenden on 2010-01-20 | ||||||||
| Approved revision: | not available | ||||||||
| Merged at revision: | not available | ||||||||
| Proposed branch: | lp:~jamalta/launchpad/newtag-statement-redundancy | ||||||||
| Merge into: | lp:launchpad | ||||||||
| Diff against target: |
121 lines (+13/-15) 5 files modified
lib/lp/bugs/browser/bug.py (+2/-3) lib/lp/bugs/browser/tests/bug-views.txt (+3/-3) lib/lp/bugs/stories/bug-tags/xx-tags-on-bug-page.txt (+3/-3) lib/lp/bugs/stories/bugs/xx-bug-activity.txt (+2/-2) lib/lp/bugs/stories/bugs/xx-bug-edit.txt (+3/-4) |
||||||||
| To merge this branch: | bzr merge lp:~jamalta/launchpad/newtag-statement-redundancy | ||||||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Brad Crittenden (community) | code | 2010-01-19 | Approve on 2010-01-20 |
| Curtis Hovey (community) | ui | Approve on 2010-01-19 | |
|
Review via email:
|
|||
Commit Message
Changed the confirmation message when defining a new bug tag to 'The tag "[tagname]" hasn't been used by [targetname] before. (Create the new tag)'. to remove redundancy.
| Jamal Fanaian (jamalta) wrote : | # |
| Brad Crittenden (bac) wrote : | # |
Hi Jamal,
Thanks for the quick fix. As I pointed out on IRC you missed fixing a few tests.
These need updating:
...me/bac/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
Otherwise it looks really good. Just some rote test fixing and it'll be ready to land.
| Jamal Fanaian (jamalta) wrote : | # |
Updated tests that referenced changed language.
=== modified file 'lib/lp/
--- lib/lp/
+++ lib/lp/
@@ -615,8 +615,8 @@
False
>>> for message in bug_edit.
... print message
- The tag "new-tag" hasn't yet been used by Mozilla Firefox before.
- Is this a new tag?...<input ...Yes, define new tag...>
+ The tag "new-tag" hasn't been used by Mozilla Firefox before.
+ <input ...Create the new tag...>
>>> bug_edit.
False
@@ -629,7 +629,7 @@
>>> [action.label for action in bug_edit.
['Change']
-If we click on the 'Yes, define new tag' button, we'll get redirected to
+If we click on the 'Create the new tag' button, we'll get redirected to
the bug page, and the bug will have the new tag.
>>> bug_edit.
=== modified file 'lib/lp/
--- lib/lp/
+++ lib/lp/
@@ -37,7 +37,7 @@
>>> user_browser.url
'http://
- >>> user_browser.
+ >>> user_browser.
>>> user_browser.url
'http://
@@ -106,9 +106,9 @@
>>> user_browser.open('http://
>>> user_browser.
>>> user_browser.
- >>> user_browser.
+ >>> user_browser.
Traceback (most recent call last):
...
- LookupError: label 'Yes, define new tag'
+ LookupError: label 'Create the new tag'
>>> print user_browser.url
http://
=== modified file 'lib/lp/
--- lib/lp/
+++ lib/lp/
@@ -173,7 +173,7 @@
... 'http://
>>> admin_browser.
>>> admin_browser.
- >>> admin_browser.
+ >>> admin_browser.
>>> admin_browser.
>>> print_comments(
@@ -188,7 +188,7 @@
... 'http://
>>> admin_browser.
>>> admin_browser.
- >>> admin_browser.
+ >>> admin_browser.
>>> admin_browser.
| Brad Crittenden (bac) wrote : | # |
Thanks for fixing the additional tests, Jamal. It looks great now.

= Summary =
The message 'The tag "[tagname]" hasn't yet been used by [targetname] before. Is this a new tag?' is redundant and misleading. "Yet" and "before" should not are redundant in the statement. From bug 106924 and bug 87058.
== Proposed fix ==
Replace statement with 'The tag "[tagname]" hasn't been used by [targetname] before. (Create the new tag)'
== Pre-implementation notes ==
Spoke with bac to confirm the language that should be used to fix the issue.
== Tests ==
% bin/test -vvct xx-bug-edit
== Demo and Q/A ==
* https:/ /bugs.launchpad .dev/firefox/ +bug/1/ +edit
Enter "new-tag" as a tag and click Change
== Launchpad lint ==
Checking for conflicts. and issues in doctests and templates.
Running jslint, xmllint, pyflakes, and pylint.
Using normal rules.
Linting changed files: bugs/browser/ bug.py bugs/stories/ bugs/xx- bug-edit. txt
lib/lp/
lib/lp/
== Pylint notices ==
lib/lp/ bugs/browser/ bug.py MIMEMultipart' (No module named MIMEMultipart) .event' (No module named lifecycle) .snapshot' (No module named lifecycle) interfaces' (No module named restful)
28: [F0401] Unable to import 'email.
29: [F0401] Unable to import 'email.MIMEText' (No module named MIMEText)
43: [F0401] Unable to import 'lazr.enum' (No module named enum)
44: [F0401] Unable to import 'lazr.lifecycle
45: [F0401] Unable to import 'lazr.lifecycle
46: [F0401] Unable to import 'lazr.restful.
Confirmed that the lint notices are not related to my branch by gary_poster in #launchpad-dev