Page MenuHomePhabricator

gerritbot should report both author and committer
Closed, ResolvedPublic

Description

E.g.

Change 166989 had a related patch set uploaded (by Merlijn van Deen):
UnicodeDecodeError in pwb.py creating logfile

https://gerrit.wikimedia.org/r/166989

suggests I'm the one who wrote the patch, even though that's not the case. Maybe we can even just add the full commit message, e.g.

Change 166989 had a related patch set uploaded:

Author: John Vandenberg
Committer: Merlijn van Deen

UnicodeDecodeError in pwb.py creating logfile

Use the decoded copy of the command line arguments.

Bug: T74129
Change-Id: I8b6d22ca1c1db323763efb2ce2d8825158bc8b7e

Event Timeline

valhallasw raised the priority of this task from to Needs Triage.
valhallasw updated the task description. (Show Details)
valhallasw added projects: Gerrit, Phabricator.
valhallasw changed Security from none to None.
valhallasw subscribed.

I don't think it's good to add the complete commit messages, because some are very long. Although on second thought that message would only appear once.

With T873 implemented the link wouldn't be necessary by the way.

Qgil triaged this task as Low priority.Dec 2 2014, 8:06 AM
Qgil subscribed.
Qgil lowered the priority of this task from Low to Lowest.Dec 22 2014, 9:37 AM
Qgil added a project: Gerrit-Migration.

This has been the status quo for a long time. It doesn't really matter who uploaded/created the patch, the call for action is that there is a new patch for review.

I'd rather focus our attention in migrating #Code-Review, and keep the work on the current Gerrit-Phabricator setup to a minimum. Proposing to decline this task.

This has been the status quo for a long time.

It has been annoying/confusing for a long time :-)

How about

Change 166989 had a related patch set uploaded (by Merlijn van Deen; onwer: John Vandenberg):

?

(Note that the commit author and the gerrit owner are not necessarily the same, although in practice they almost always are.)

Change 339980 had a related patch set uploaded (by Paladox):
Gerrit: Make GerritBot report author of patch and the uploader of patch

https://gerrit.wikimedia.org/r/339980

Dzahn raised the priority of this task from Lowest to Medium.Feb 27 2017, 5:45 PM

Change 339980 merged by Dzahn:
Gerrit: Make GerritBot report author of patch and the uploader of patch

https://gerrit.wikimedia.org/r/339980

In T76291#939374, @Qgil wrote:

keep the work on the current Gerrit-Phabricator setup to a minimum. Proposing to decline this task.

This has been said in 2014. Proposing to keep improving Gerrit setup and resolving instead of declining.

Tested on T137928#3058693. Works! "Change 339763 had a related patch set uploaded (by Dzahn; owner: Paladox):"

Thanks for the fix, @Paladox

Dzahn assigned this task to Paladox.

Please don't report it twice if the owner and uploader are the same :)

Please don't report it twice if the owner and uploader are the same :)

I'm not sure if that's possible.

Please don't report it twice if the owner and uploader are the same :)

Actually it's possible, i have done it here https://gerrit.wikimedia.org/r/#/c/340326/ :), also tested and works.

Change 340326 had a related patch set uploaded (by Paladox; owner: Paladox):
Gerrit: Fix it so that if you are the author and uploader it will only show By:

https://gerrit.wikimedia.org/r/340326

Tested on T137928#3058693. Works! "Change 339763 had a related patch set uploaded (by Dzahn; owner: Paladox):"

Thanks for the fix, @Paladox

Your welcome :)

Change 340326 merged by Dzahn:
Gerrit: only show author and uploader if they are different people

https://gerrit.wikimedia.org/r/340326

Please don't report it twice if the owner and uploader are the same :)

This should be fixed now :)

Please don't report it twice if the owner and uploader are the same :)

This should be fixed now :)

It doesn't work when Git and Gerrit usernames differ (despite email addresses being the same) as in T159075#3065963

Oh i see thats because theres two types of configs in its-base (more the ones i will be showing in this example)

there's

author-name
author-username
uploader-name
uploader-username

Change 340801 had a related patch set uploaded (by Dzahn; owner: Paladox):
[operations/puppet] Gerrit: Fix bot so that it checks against *-name and *-username

https://gerrit.wikimedia.org/r/340801

Change 340801 merged by Dzahn:
[operations/puppet] Gerrit: Fix bot so that it checks against *-name and *-username

https://gerrit.wikimedia.org/r/340801