Last modified: 2014-02-12 23:40:03 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T46932, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 44932 - Return key doesn't work with the "Add Reviewer" button in Gerrit
Return key doesn't work with the "Add Reviewer" button in Gerrit
Status: NEW
Product: Wikimedia
Classification: Unclassified
Git/Gerrit (Other open bugs)
wmf-deployment
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
: upstream
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-02-13 07:16 UTC by MZMcBride
Modified: 2014-02-12 23:40 UTC (History)
5 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
Wikimedia Gerrit interface with the "Add Reviewer" button focused (39.48 KB, image/png)
2013-04-12 23:01 UTC, MZMcBride
Details

Description MZMcBride 2013-02-13 07:16:46 UTC
The return key doesn't work with the "Add Reviewer" button in Gerrit, as far as I can tell. I find this behavior slightly infuriating.
Comment 1 Chad H. 2013-02-13 11:27:13 UTC
WFM...
Comment 2 Chad H. 2013-02-13 15:12:45 UTC
Timo reported upstream, added to see also urls.
Comment 3 MZMcBride 2013-02-13 19:20:08 UTC
https://code.google.com/p/gerrit/issues/detail?id=1784 seems to be about a different issue.
Comment 4 Krinkle 2013-02-14 00:48:46 UTC
Indeed.
Comment 5 Chad H. 2013-02-15 16:41:41 UTC
Removed. Needs reporting still.
Comment 6 Valerie Juarez 2013-02-19 18:58:55 UTC
Steps to add reviewer with enter key
1. Type in a partial name of a reviewer to add
2. Use arrow keys to navigate to the desired email
3. Press 'tab' key to select reviewer
4. Press 'enter' key

-> This should successfully add the reviewer

Steps that should add reviewer but do not work as expected.
1. Type in a partial name of a reviewer to add
2. Use mouse to select desired email
3. Press 'enter' key

-> Does not add reviewer

Can you add a reviewer using the first set of steps?
Comment 7 christian 2013-03-04 22:17:38 UTC
I could not add a reviewer using the second set of steps.

The real root of the problem is in gwt. The gwt upstream fix is at
  https://gwt-review.googlesource.com/#/c/2100/
. The bug there is at
  https://code.google.com/p/google-web-toolkit/issues/detail?id=8051
.

But as that fix needs time (and probably a push to the old svn
repository there) to get accepted and to flow down to us through
gerrit upstream, I pushed a fix to gerrit as well. Gerrit upstream
is fixed by commit 882d3bc2cca0b1ebeca65276d163e14b2a32f39e at
  https://gerrit-review.googlesource.com/#/c/42891/
This commit fixes the problem also when trying to add a member to
group.
Comment 8 Chad H. 2013-04-12 18:10:07 UTC
I believe this is fixed now (via the gerrit fix, not gwt).
Comment 9 MZMcBride 2013-04-12 22:58:10 UTC
(In reply to comment #8)
> I believe this is fixed now (via the gerrit fix, not gwt).

Not working for me at <https://gerrit.wikimedia.org/r/12345>.

To re-iterate, the bug here is that when the focus is on the "Add Reviewer" button, the return key on my keyboard cannot be used to "click" (or "submit") the button. I'll upload a screenshot as well.
Comment 10 MZMcBride 2013-04-12 23:01:29 UTC
Created attachment 12090 [details]
Wikimedia Gerrit interface with the "Add Reviewer" button focused

From this point in my workflow (with a valid reviewer in the text input field and the "Add Reviewer" button focused in my Web browser) I should be able to hit the return key on my keyboard to add the reviewer to the changeset. However, the hitting the return key has no effect at all. :-(
Comment 11 christian 2013-04-15 09:07:42 UTC
(In reply to comment #7)
> The real root of the problem is in gwt. The gwt upstream fix is at
>   https://gwt-review.googlesource.com/#/c/2100/
> . The bug there is at
>   https://code.google.com/p/google-web-toolkit/issues/detail?id=8051
> .

The gwt fix has been merged over the weekend
https://code.google.com/p/google-web-toolkit/source/detail?r=11593
Comment 12 christian 2013-04-15 09:08:42 UTC
(In reply to comment #9)
> Not working for me at <https://gerrit.wikimedia.org/r/12345>.

We fixed adding reviewers according to the second set of steps in
comment #6.

It seems your problem is different after all, and your problem is with
the first set of steps in comment #6. For at least Valerie and me,
this first set of steps works as well.

What OS, and browser are you using? Do you use any User-Javascript on
the page?

When the “Add Reviewer” is focused (on change 58060 -- test commit on
a test repository), and I hit enter, a POST to
  https://gerrit.wikimedia.org/r/changes/58060/reviewers
occurs with content
  {"reviewer":"QChris <christian@quelltextlich.at>"}

Does your browser also attempt such a POST? If so, what is gerrit's
response?
Comment 13 MZMcBride 2013-04-15 10:55:02 UTC
(In reply to comment #12)
> What OS, and browser are you using? Do you use any User-Javascript on
> the page?

Google Chrome, OS X 10.8.3, no user JavaScript.

> When the “Add Reviewer” is focused (on change 58060 -- test commit on
> a test repository), and I hit enter, a POST to
>   https://gerrit.wikimedia.org/r/changes/58060/reviewers
> occurs with content
>   {"reviewer":"QChris <christian@quelltextlich.at>"}
> 
> Does your browser also attempt such a POST? If so, what is gerrit's
> response?

I don't believe the browser does anything when I hit the return key currently. Every standard HTML input form on the Internet works. Something about Gerrit's architecture causes Gerrit to not act like every other HTML input form (where tabbing to a submit button and hitting the return key works).
Comment 14 MZMcBride 2013-04-18 01:54:13 UTC
By the way, the "Publish Comments" button works just fine on Gerrit using the return key.

It's something to do with the "Add Reviewer" button specifically it seems. I was starting to suspect that perhaps this particular button has been intentionally disabled, but I have no real basis for this claim (other than the fact that the return key seemingly can't be used to submit the input/press the button).

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links