Person chooser should simply accept unambiguous names
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
New
|
Medium
|
Unassigned |
Bug Description
Various pages have fields for selecting people. Specs are one example, where one can choose a drafter, implementer, and approver.
These fields currently have a text field plus a "choose" button. In general I really like this design but there are some flaws. This bug relates to the behaviour of the text field.
Current behaviour: If I enter "mark shuttleworth" in the text field, I get "an error occurred". The field is highlighted in red and a dropdown of possible mark shuttleworths comes up next to the text field. I can choose one and resubmit the form.
1. There's only one "mark shuttleworth"; I don't see why I have to reiterate my choice if the entry is unambiguous. Similarly if I enter a userid.
2. Since there is only one Mark, there's only one entry in the dropdown list, and it's selected by default. However Launchpad won't accept the results until I click the entry, making it go by javascript into the text field.
3. "An error occurred" is a needlessly alarming message when all we want is "please confirm I found the right person".
Changed in launchpad: | |
assignee: | mpt → nobody |
Point 2 is a duplicate of bug 33145.
We used to match on unambiguous names. We no longer do this because, unfortunately, it is hard to decide on whether an unambiguous match is correct or not -- if I enter "mbp" and your account name is "mpool" but there's a guy called "rombpot", the wrong thing happens. To do this properly we'd need to always confirm unless we got an exact match.
There is the issue of the error message still; I'm not sure if that's a dupe of bug 36878 or not.