GNU bug report logs - #40157
[PATCH] hydra: Display the IRC logs in reverse chronological order.

Previous Next

Package: guix-patches;

Reported by: Leo Famulari <leo <at> famulari.name>

Date: Fri, 20 Mar 2020 21:45:01 UTC

Severity: normal

Tags: patch

Done: Leo Famulari <leo <at> famulari.name>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 40157 in the body.
You can then email your comments to 40157 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#40157; Package guix-patches. (Fri, 20 Mar 2020 21:45:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Leo Famulari <leo <at> famulari.name>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Fri, 20 Mar 2020 21:45:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Leo Famulari <leo <at> famulari.name>
To: guix-patches <at> gnu.org
Cc: rekado <at> elephly.net
Subject: [PATCH] hydra: Display the IRC logs in reverse chronological order.
Date: Fri, 20 Mar 2020 17:43:49 -0400
I think that people usually want to read the latest logs, which
currently requires a lot of scrolling.

* hydra/goggles.scm (index): Reverse the list of log files.
---
 hydra/goggles.scm | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/hydra/goggles.scm b/hydra/goggles.scm
index 169b3c3..884c8df 100644
--- a/hydra/goggles.scm
+++ b/hydra/goggles.scm
@@ -181,9 +181,9 @@ freenode." channel))
      (ul
       ,@(map (lambda (file)
                `(li (a (@ (href ,(string-append "/" channel "/" file))) ,file)))
-             (or (scandir (string-append %log-root "/#" channel "/")
-                          (lambda (name)
-                           (not (member name '("." ".." "index.html")))))
+             (or (reverse (scandir (string-append %log-root "/#" channel "/")
+                                   (lambda (name)
+                                    (not (member name '("." ".." "index.html"))))))
                  '()))))))
 
 (define %controller
-- 
2.25.1





Information forwarded to guix-patches <at> gnu.org:
bug#40157; Package guix-patches. (Sun, 22 Mar 2020 11:44:01 GMT) Full text and rfc822 format available.

Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Ricardo Wurmus <rekado <at> elephly.net>
To: Leo Famulari <leo <at> famulari.name>
Cc: guix-patches <at> gnu.org
Subject: Re: [PATCH] hydra: Display the IRC logs in reverse chronological
 order.
Date: Sun, 22 Mar 2020 12:43:43 +0100
Hi Leo,

> I think that people usually want to read the latest logs, which
> currently requires a lot of scrolling.
>
> * hydra/goggles.scm (index): Reverse the list of log files.

Looks good, thank you.  I’ve applied it.  We’ll have to wait for the
next reconfiguration to see the effects on logs.guix.gnu.org.

-- 
Ricardo




Reply sent to Leo Famulari <leo <at> famulari.name>:
You have taken responsibility. (Sun, 22 Mar 2020 17:42:01 GMT) Full text and rfc822 format available.

Notification sent to Leo Famulari <leo <at> famulari.name>:
bug acknowledged by developer. (Sun, 22 Mar 2020 17:42:01 GMT) Full text and rfc822 format available.

Message #13 received at 40157-done <at> debbugs.gnu.org (full text, mbox):

From: Leo Famulari <leo <at> famulari.name>
To: Ricardo Wurmus <rekado <at> elephly.net>
Cc: 40157-done <at> debbugs.gnu.org
Subject: Re: [PATCH] hydra: Display the IRC logs in reverse chronological
 order.
Date: Sun, 22 Mar 2020 13:41:30 -0400
On Sun, Mar 22, 2020 at 12:43:43PM +0100, Ricardo Wurmus wrote:
> > I think that people usually want to read the latest logs, which
> > currently requires a lot of scrolling.
> >
> > * hydra/goggles.scm (index): Reverse the list of log files.
> 
> Looks good, thank you.  I’ve applied it.  We’ll have to wait for the
> next reconfiguration to see the effects on logs.guix.gnu.org.

Thanks!




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 20 Apr 2020 11:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 364 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.