Commit graph

59 commits

Author SHA1 Message Date
Wolfram Schneider
b3edeb15d0 Disable option 'Closed reports too:' if no user input is given.
For whatever reasons, the perl script query-pr-summary.cgi is horrible slow
for large output. It take more than 4 CPU minutes to parse 100_000 lines text.

It also doesn't make sense to generate a 20MB large HTML table.
2007-08-01 19:59:28 +00:00
Daniel Gerzo
62076a45d1 Merge query-by-number and multi-field query forms.
This work included:

- move a few functions out of query-pr-summary.cgi into a new file -
  query-pr-lib.pl, which now provides a procedure to display forms
- include query-pr-lib.pl in both query-pr.cgi and query-pr-summary.cgi
  scripts

PR: www/35647
Approved by: trhodes (mentor), keramida (mentor)
Silence from: www@
2007-01-10 17:47:39 +00:00
Ceri Davies
ed46521e4b Allow '/' in the search filter so that people can search for stuff like
'games/robotfindskitten'.

PR:		www/104131
Reviewed by:	simon
2006-10-08 17:00:12 +00:00
Daniel Gerzo
6f856aa7f2 Change the default behavior of this script to display query form instead
of generating full list of all open PRs in GNATS.  I hope this change
will at least a bit decrease the load of GNATS.

Reviewed by: www@
Approved by: keramida (mentor)
2006-09-24 13:34:55 +00:00
Daniel Gerzo
010290f0f9 Make query-pr-summary.cgi to work with perl 5.8.
This is required for new www server setup.

Reviewed by: simon
Approved by: trhodes (mentor), keramida (mentor)
2006-09-12 21:53:18 +00:00
Jesus R. Camou
e02a65178b Use uppercase X on FreeBSD versions for consistency. 2005-12-01 03:19:22 +00:00
Bill Fenner
546a802f81 Add -T <tag> option, which results in --text=\[tag\].
Put $hr assignment back, since $hr is still used, particularly in
 text mode output.
2005-11-17 04:43:38 +00:00
Bill Fenner
7ca2f8d8eb Tweak the xhtml-ification.
Assisted by:	validator.w3.org
2005-10-19 15:47:38 +00:00
Remko Lodder
bc343ef2a8 Remove the now redundant html close tags.
Submitted by:		Daniel Gerzo <danger at rulez dot sk>
2005-09-13 18:17:46 +00:00
Remko Lodder
f45b9f679d Add coloring support for the summary. This should make it
easier to read when you are using a color capable browser.

This will not impact a text-only browser.

Changes include:

o Code cleanup
o Add CSS style's.
o Use the new CSS style's.
o Move double quotes to quotes where needed.
o Made the HTML (except for the header) html-compliant.

The usage of CSS makes it easy to merge later when/if needed.

Discussed on:		www@
No objections from:	www@
Submitted by:		Daniel Gerzo <danger at rulez dot sk>
2005-09-12 20:30:25 +00:00
Giorgos Keramidas
362ca6ed01 We are approaching P100k real fast now. Grab the opportunity to 'fix'
some bugs of the text-mode listings of the Gnats database:

  - Shave 2 characters out of the submission date, by removing the
    enclosing [] pair.
  - Increase the width of the tracker field.  It should now be wide
    enough until PR standards/999999 (which is, hopefully, a very
    long time).
  - Decrease the width of Resp. to 10 characters, as the longer name
    is now a bit shorter (after the removal of 'freebsd-' a while
    back).
  - Shorten the 'Description' a bit, to keep the entire listing at
    less than 79 columns (which IIRC was broken by me in revision
    1.45, during the split of HTML/text output in separate functions).
2005-01-18 17:31:12 +00:00
Giorgos Keramidas
f70028d350 Reduce the size of the generated HTML reports even further, by using
the last suggestion of Jie Cao from www/69780:

	``3. If we strip the spaces at the beginning of the lines, we
	can reduce the size with a further 90000 bytes.''

PR:		www/69780
Submitted by:	Jie Cao (gaoj (at) cpsc (dot) ucalgary (dot) ca)
2004-10-25 11:27:08 +00:00
Giorgos Keramidas
2152ca53a4 Put on my chain mail suit and change the output format of the PR
database queries once again, because I've received complaints that the
HTML output mode of the PR query scripts outputs huge, bloated tables
after the style changes I made to beautify HTML output.

This moves all the visual tweaks of the output in a CSS stylesheet and
add a $t_style option to the common cgi-style.pl script.  If not set,
the style defaults to empty, but users of cgi-style.pl can set this to
a local CSS style like this:

        $t_style="<style type=\"text/css\">...</style>";

or use it to refer from the header of the HTML output to an external
CSS stylesheet.

The HTML output size is substantially reduced now (at least 50% of the
size was caused by many repetitions of style="" attributes), but it's
still larger than the preformatted <pre> output because of all the
<tr> and <td> tags.
2004-10-13 10:55:55 +00:00
Ceri Davies
ba0a434481 Add 6-* to the list of searchable releases. 2004-08-19 12:43:25 +00:00
Giorgos Keramidas
4ad53f07f0 - Split text & html output in two separate functions.
- Use a <table> to align data for HTML output similar to the one used by
  CVSweb to list directory contents.  This helps the eye to pick the
  right line to click on when picking PRs to read from a long list.

Approved by:	ceri, linimon, simon, silence on -www
2004-07-25 00:30:35 +00:00
Ceri Davies
61f24a6469 Realign headers. 2004-04-06 11:22:37 +00:00
Ceri Davies
b275a1696e Add the repocopy state. 2004-02-16 14:30:57 +00:00
Ceri Davies
3e9c39007f Our longest category name is currently 8 characters long, and we're over
halfway to P100k, so update the width of the "Tracker" column to cope.
2003-12-27 14:44:57 +00:00
Ceri Davies
a6df2a6df1 Sort the releases numerically. 2003-12-27 14:32:15 +00:00
Doug Barton
1f8f2e7bd8 Don't show the Resp. field if it's ports-bugs, just like we do with
freebsd-bugs already.

Add a micro-optimization to this test, which should just about make
up for checking two strings instead of one for most pr's.

Reviewed by:	ceri
2003-09-02 09:46:27 +00:00
Wolfram Schneider
2e7126ef95 Call the wrapper query-pr.web 2003-03-06 23:51:58 +00:00
Giorgos Keramidas
fd9bf51165 Increase the column width for PR responsibles to 11 characters.
"ports-bugs" now fits nicely, but there are still a few that are too long.
2003-01-16 02:02:40 +00:00
Jun Kuriyama
8480081292 Escape sort parameter from request when output HTML. 2002-04-23 17:15:40 +00:00
Bill Fenner
4418b34dc8 Updated states in header.
Use query-pr --list-foo to get states and classes.
Add headers to &state=summary display.
2002-03-22 15:38:24 +00:00
Bill Fenner
da9bc4fbe9 Add the ability to query based on GNATS "Release:". There's a new
pull-down box that defaults to "All", but has options for
 "Pre-5.x", "4.x", "5.x", "3.x" and "2.x".

Give query-pr.cgi the full PR path.  This will allow a future
 query-pr.cgi to skip looking through the whole GNATS index to
 display a PR.
2001-11-07 19:38:16 +00:00
Murray Stokely
289bb9611e Allow ^ and $ as regular expressions in the responsible person field.
This allows us to search for all those PRs assigned to 're' without
adding the ones assigned to 'reg', or 'mi' and 'mike', etc..  Finally
I hope to have PR email that only contains the PRs that were really
meant for me.
2001-10-23 04:28:48 +00:00
Peter Wemm
f56ae29297 Add '_' to the approved characters in the responsible field - for n_hibma 2001-02-19 19:23:19 +00:00
Peter Wemm
a8f823aed0 Do taint checking on command line args. I believe this is correct.
Bill Fenner suggested a simpler fix, but this is my fault if it is broken.
Reactivate -T
2001-01-12 00:19:09 +00:00
Peter Wemm
98d70c3686 Remove -T, this script has not been had the required taint cleaning
of arguments done yet.
2001-01-04 22:22:38 +00:00
Wolfram Schneider
a0a56a50b1 stricter @INC path
forces "taint" checks to be turned on
2000-12-28 13:43:41 +00:00
Wolfram Schneider
d52b336596 perl typo
Submitted by:	Chris Costello <chris@calldei.com>
2000-11-29 13:59:24 +00:00
Steve Price
ca1a828d71 Add two new classes of problem reports: update and maintainer-update for
non-maintainer and maintainer submitted updates to ports.  Also remove
the support class so this list matches that of send-pr(1).
2000-10-29 22:16:41 +00:00
Alexey Zelkin
dc5ac39672 Do not use not allowed characters in manualy built href's
PR:		misc/22191 (report)
Submitted by:	Patrick Seal <patseal@hyperhost.net>
2000-10-22 14:25:07 +00:00
Steve Price
32a78360cb Add a new class of problem reports, 'wish', as a catch-all for things
that really belong on a wishlist.

Requested by:	sheldonh
2000-04-17 16:09:37 +00:00
Peter Wemm
33cf1c50a1 Fix (?) the so-called P10k problem in the weekly PR summary mailouts.
For future reference, the weekly mailouts are done from a trivial script
which merely calls this script in plaintext (rather than in html) mode.
1999-10-26 21:49:29 +00:00
Peter Wemm
01a61279be $Id$,$Date$ -> $FreeBSD$
The jury is out on $Date$, but it's presently not being expanded..
1999-09-06 07:03:31 +00:00
Sheldon Hearn
f2fdf271ae Always show closed reports if the requested State is 'closed'.
PR:	12049
Submitted by:	n_hibma (who is still nhibma in authors.ent)
1999-07-20 14:26:21 +00:00
Bill Fumerola
0855a82e72 Fix previous coommit 1999-02-26 22:05:58 +00:00
Bill Fumerola
265086c525 Hopefully fix for the last time the ports/XXXXXusername run-on.
PR:		docs/10241
Submitted by:	wosch
1999-02-25 20:08:04 +00:00
Bill Fumerola
e8d28c7ddb Add another non-graphic character (AKA space) after the word 'Tracker'.
Now that we have 5-number PRs and a 5 letter category, we also had run-on words.

o [1999/02/12] ports/10036billf    New port - fltk
is now
o [1999/02/12] ports/10036 billf    New port - fltk
1999-02-24 23:10:07 +00:00
Wolfram Schneider
472727c3ba spelling mistake: Last-Modiified (two i's)
Reviewed by:	"Jon T. Erichsen" <web28@staff.web.dk>
1999-02-01 21:07:42 +00:00
Bill Fenner
2261a9f662 Fix what I thought I fixed in rev 1.13:
Quote arguments to query-pr so that multi-word arguments
can be used in the query.
1998-12-15 00:35:52 +00:00
Bill Fenner
a78046db14 Add "Show closed reports too" / "Don't show closed reports" links to the
top-level summary page.
1998-08-07 15:05:55 +00:00
Poul-Henning Kamp
a7e9d69764 Don't sort last-modified data numerically
I hate perl.
1998-05-23 09:22:32 +00:00
Poul-Henning Kamp
656996f6b4 Make sorting on last-modified work.
I hate perl.
1998-05-23 09:05:39 +00:00
Poul-Henning Kamp
1ebb90ef0f Redefine "suspended" a little bit 1998-04-12 18:54:36 +00:00
Bill Fenner
d5095625d8 Quote arguments to query-pr so that multi-word arguments
can be used in the query.
1997-10-27 05:10:43 +00:00
Peter Wemm
2db504acb3 Add missing semicolon from rev 1.10 1997-02-03 18:20:27 +00:00
Paul Traina
334292f2a1 Whoops, missed one sub-patch... use new category list 1997-02-02 22:07:01 +00:00
Paul Traina
90b58e3bf8 Make it easier to re-use this code for other gnats databases:
Get bug categories from gnats directly (remove hard coding)
    Create project/mailing list definitions and use them.

Make some of the perl code cleaner (my fault for bad original coding styles).
1997-02-02 22:03:29 +00:00