[PATCH 2 of 2 V2] summary, changelog: add reviewer username to status change tooltips
Mads Kiilerich
mads at kiilerich.com
Mon Feb 22 20:11:56 UTC 2016
On 02/21/2016 12:10 PM, Angel Ezquerra wrote:
> # HG changeset patch
> # User Angel Ezquerra <angel.ezquerra at gmail.com>
> # Date 1456052683 -3600
> # Sun Feb 21 12:04:43 2016 +0100
> # Branch stable
> # Node ID e28802b277d61139d193c5c1833504398bcf3973
> # Parent 1b8fa58fddda34e218c31f61bc571a342f7e96fc
> summary, changelog: add reviewer username to status change tooltips
>
> Change the status change (circle) icon tooltips from "Changeset status:
> NEW_STATE" to "Changeset status: NEWSTATE by REVIEWER_USERNAME".
>
> This makes it much faster to check who is reviewing what and who approved or
> rejected what.
Thanks! Perfect! Pushed!
>
> diff --git a/kallithea/model/db.py b/kallithea/model/db.py
> --- a/kallithea/model/db.py
> +++ b/kallithea/model/db.py
> @@ -1411,7 +1411,8 @@
> pr_nice_id = PullRequest.make_nice_id(pr_id)
> pr_repo = stat.pull_request.other_repo.repo_name
> grouped[stat.revision] = [str(stat.status), stat.status_lbl,
> - pr_id, pr_repo, pr_nice_id]
> + pr_id, pr_repo, pr_nice_id,
> + stat.author]
> return grouped
Perfect, except this function which is a mess causing other mess and
apparently just should be cleaned up to return the stat objects and use
a smarter sql expression ... ;-)
/Mads
More information about the kallithea-general
mailing list