[RFC]: query-pr-summary.cgi default behavior change
Daniel Gerzo
danger at FreeBSD.org
Sun Sep 17 12:35:28 PDT 2006
Hello people,
I don't like the default behavior of query-pr-summary.cgi which lists
all open PR in the GNATS. This produces around 1.2M of html, which
takes some time to load. It does not eat our bandwidth, it also makes
in my opinion unneeded load on GNATS. The following patch makes this
script to show the form by default.
Please comment, if it's okay with you, I will just go ahead and pass
in through my mentors and then commit.
Index: query-pr-summary.cgi
===================================================================
RCS file: /bsd_mirror/cvsup/sup/FreeBSD/www/en/cgi/query-pr-summary.cgi,v
retrieving revision 1.55
diff -u -r1.55 query-pr-summary.cgi
--- query-pr-summary.cgi 12 Sep 2006 21:53:18 -0000 1.55
+++ query-pr-summary.cgi 17 Sep 2006 19:20:01 -0000
@@ -17,7 +17,7 @@
require './cgi-style.pl';
require 'getopts.pl';
-if ($ENV{'QUERY_STRING'} eq 'query') {
+if (!$ENV{'QUERY_STRING'} or $ENV{'QUERY_STRING'} eq 'query') {
print &html_header("Query $project problem reports");
&displayform;
print &html_footer;
--
Best Regards,
Daniel Gerzo mailto:danger at FreeBSD.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-www/attachments/20060917/88bdaaee/attachment.pgp
More information about the freebsd-www
mailing list