From 99a6cbf70faf289735f0d8e46eb13c2503fc7968 Mon Sep 17 00:00:00 2001 From: Jelte Fennema-Nio Date: Sun, 2 Mar 2025 00:51:12 +0100 Subject: [PATCH] Remove latest activity column Having both "Latest email" and "Latest activity" on the main commitfest list kind of useless. The "Latest activity" often is simply the date that a patch was moved to the next commitfest, so it's content is rather useless in general. If we improve the commitfest app to contain more useful info (e.g. by implementing #19) it might become more useful to have this timestamp though. For now it seems fine to remove it though, and once we implement #10 we can add his back as an option. --- pgcommitfest/commitfest/templates/commitfest.html | 2 -- pgcommitfest/commitfest/views.py | 6 +----- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/pgcommitfest/commitfest/templates/commitfest.html b/pgcommitfest/commitfest/templates/commitfest.html index c2e3fd7a..31d971d1 100644 --- a/pgcommitfest/commitfest/templates/commitfest.html +++ b/pgcommitfest/commitfest/templates/commitfest.html @@ -70,7 +70,6 @@

{{p.is_open|yesno:"Active patches,Closed patches"}}

Reviewers Committer Num cfs{%if sortkey == 3%}
{%elif sortkey == -3%}
{%endif%} - Latest activity{%if sortkey == 1%}
{%elif sortkey == -1%}
{%endif%} Latest mail{%if sortkey == 2%}
{%elif sortkey == -2%}
{%endif%} {%if user.is_staff%} Select @@ -125,7 +124,6 @@

{{p.is_open|yesno:"Active patches,Closed patches"}}

{{p.reviewer_names|default:''}} {{p.committer|default:''}} {{p.num_cfs}} - {{p.modified|date:"Y-m-d"}}
{{p.modified|date:"H:i"}} {{p.lastmail|date:"Y-m-d"}}
{{p.lastmail|date:"H:i"}} {%if user.is_staff%} Author
Reviewer diff --git a/pgcommitfest/commitfest/views.py b/pgcommitfest/commitfest/views.py index f5337785..d5fdf7fb 100644 --- a/pgcommitfest/commitfest/views.py +++ b/pgcommitfest/commitfest/views.py @@ -239,11 +239,7 @@ def commitfest(request, cfid): except ValueError: sortkey = 0 - if sortkey == 1: - orderby_str = "modified, created" - elif sortkey == -1: - orderby_str = "modified DESC, created DESC" - elif sortkey == 2: + if sortkey == 2: orderby_str = "lastmail, created" elif sortkey == -2: orderby_str = "lastmail DESC, created DESC"