Skip to content

Commit 633caa6

Browse files
committed
Show committer name in commitfest list (#41)
Some people have account names that do not look like their names. This allows people to identify committers based on their regular name on the commitfest page.
1 parent bed74a0 commit 633caa6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pgcommitfest/commitfest/views.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ def commitfest(request, cfid):
289289
# Let's not overload the poor django ORM
290290
curs = connection.cursor()
291291
curs.execute(
292-
"""SELECT p.id, p.name, poc.status, v.version AS targetversion, p.created, p.modified, p.lastmail, committer.username AS committer, t.topic,
292+
"""SELECT p.id, p.name, poc.status, v.version AS targetversion, p.created, p.modified, p.lastmail, committer.first_name || ' ' || committer.last_name || ' (' || committer.username || ')' AS committer, t.topic,
293293
(poc.status=ANY(%(openstatuses)s)) AS is_open,
294294
(SELECT string_agg(first_name || ' ' || last_name || ' (' || username || ')', ', ') FROM auth_user INNER JOIN commitfest_patch_authors cpa ON cpa.user_id=auth_user.id WHERE cpa.patch_id=p.id) AS author_names,
295295
(SELECT string_agg(first_name || ' ' || last_name || ' (' || username || ')', ', ') FROM auth_user INNER JOIN commitfest_patch_reviewers cpr ON cpr.user_id=auth_user.id WHERE cpr.patch_id=p.id) AS reviewer_names,

0 commit comments

Comments
 (0)