Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Sep 2006 21:29:54 +0200
From:      Daniel Gerzo <danger@FreeBSD.org>
To:        www@FreeBSD.org
Cc:        Daniel Gerzo <danger@FreeBSD.org>
Subject:   [RFC]: query-pr-summary.cgi default behavior change
Message-ID:  <20060917192954.GA86615@cvsup.sk.freebsd.org>

next in thread | raw e-mail | index | archive | help

--pWyiEgJYm5f9v55/
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
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';
=20
-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;

--=20
Best Regards,
   Daniel Gerzo				mailto:danger@FreeBSD.org

--pWyiEgJYm5f9v55/
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (FreeBSD)

iD8DBQFFDaIxpjhloOLa1gsRAkG0AKCKO6QCNC7LUcZyrCkp2bXx8At/4wCeNg73
lrNaTYxabXe7fjTpMcOdosU=
=FhVQ
-----END PGP SIGNATURE-----

--pWyiEgJYm5f9v55/--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060917192954.GA86615>