Closed
Bug 1480042
Opened 7 years ago
Closed 6 years ago
Request queue dropdown badge shows empty names for some display names
Categories
(bugzilla.mozilla.org :: Extensions, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: Fallen, Assigned: kohei)
References
Details
Attachments
(2 files)
We have a contributor who is just known by his nickname, and he uses [:MakeMyDay] as his bugzilla display name so the commonly used :nickname completion works.
The review queue popup in the top bar makes it say "asked you for review...", without any name. If the real name is empty, I'd suggest to either parse out the nickname from the first [:nickname], or just fall back to displaying the whole thing.
Assignee | ||
Updated•7 years ago
|
Assignee: nobody → kohei.yoshino
Status: NEW → ASSIGNED
Assignee | ||
Comment 1•7 years ago
|
||
We have an obvious inconsistency in how people’s names are displayed, but given that Bugzilla is introducing nick names (Bug 1476288), it’s better to use them everywhere, just like GitHub. The modal bug page is already displaying nick names in some parts, or their email address’ name part as a fallback. So in this case, [:MakeMyDay] will be simply MakeMyDay. PR coming shortly.
Assignee | ||
Comment 2•7 years ago
|
||
The new nickname extracts:
fetch('https://bugzilla.mozilla.org/request.cgi?action=queue&requestee=philipp%40bugzilla.kewis.ch&group=requestee&ctype=json')
.then(response => response.json())
.then(requests => requests.map(req => {
const [, name, email] = req.requester.match(/^(?:(.*)\s<)?(.+?)>?$/);
const nickname = ((name || '').match(/\:(.+?)\b/) || [])[1] || email.split('@')[0];
return nickname;
}))
.then(nicknames => console.dir(nicknames));
Assignee | ||
Comment 3•7 years ago
|
||
Assignee | ||
Comment 5•6 years ago
|
||
Merged to master.
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Assignee | ||
Updated•6 years ago
|
Type: enhancement → defect
Assignee | ||
Updated•6 years ago
|
Assignee | ||
Updated•6 years ago
|
Updated•5 years ago
|
Component: Extensions: Review → Extensions
You need to log in
before you can comment on or make changes to this bug.
Description
•