Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
c6e881d0
Commit
c6e881d0
authored
Oct 31, 2000
by
tara%tequilarista.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Landing Gerv and Adam's changes for bug #6682
parent
ff238d36
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
23 deletions
+32
-23
collectstats.pl
collectstats.pl
+32
-23
reports.cgi
reports.cgi
+0
-0
No files found.
collectstats.pl
View file @
c6e881d0
...
...
@@ -27,11 +27,16 @@
use
DB_File
;
use
diagnostics
;
use
strict
;
use
vars
@::legal_product
,
@::legal_bug_status
;
use
vars
@::legal_product
;
require
"globals.pl"
;
# tidy up after graphing module
chdir
(
"data/mining"
);
unlink
<*.
gif
>
;
unlink
<*.
png
>
;
chdir
(
"../.."
);
ConnectToDatabase
();
GetVersionTable
();
...
...
@@ -71,32 +76,36 @@ sub collect_stats {
if
(
open
DATA
,
">>$file"
)
{
push
my
@row
,
&
today
;
foreach
my
$status
(
@::legal_bug_status
)
{
if
(
$product
eq
"-All-"
)
{
SendSQL
(
"select count(bug_status) from bugs where bug_status='$status'"
);
}
else
{
SendSQL
(
"select count(bug_status) from bugs where bug_status='$status' and product='$product'"
);
foreach
my
$status
(
'NEW'
,
'ASSIGNED'
,
'REOPENED'
,
'UNCONFIRMED'
,
'RESOLVED'
,
'VERIFIED'
,
'CLOSED'
)
{
if
(
$product
eq
"-All-"
)
{
SendSQL
(
"select count(bug_status) from bugs where bug_status='$status'"
);
}
else
{
SendSQL
(
"select count(bug_status) from bugs where bug_status='$status' and product='$product'"
);
}
push
@row
,
FetchOneColumn
();
}
foreach
my
$resolution
(
'FIXED'
,
'INVALID'
,
'WONTFIX'
,
'LATER'
,
'REMIND'
,
'DUPLICATE'
,
'WORKSFORME'
,
'MOVED'
)
{
if
(
$product
eq
"-All-"
)
{
SendSQL
(
"select count(resolution) from bugs where resolution='$resolution'"
);
}
else
{
SendSQL
(
"select count(resolution) from bugs where resolution='$resolution' and product='$product'"
);
}
push
@row
,
FetchOneColumn
();
}
push
@row
,
FetchOneColumn
();
}
if
(
!
$exists
)
{
print
DATA
<<FIN;
# Bugzilla daily bug stats
if
(
!
$exists
)
{
print
DATA
<<FIN;
# Bugzilla Daily Bug Stats
#
#
do not edit me! t
his file is generated.
#
Do not edit me! T
his file is generated.
#
# product: $product
# created: $when
# Fields: DATE|NEW|ASSIGNED|REOPENED|UNCONFIRMED|FIXED|INVALID|WONTFIX|LATER|REMIND|DUPLICATE|WORKSFORME|MOVED
# Product: $product
# Created: $when
FIN
print
DATA
"# field: DATE"
;
foreach
my
$status
(
@::legal_bug_status
)
{
print
DATA
"|$status"
;
}
print
DATA
"\n"
;
}
}
print
DATA
(
join
'|'
,
@row
)
.
"\n"
;
close
DATA
;
}
else
{
...
...
reports.cgi
View file @
c6e881d0
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment