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
90974879
Commit
90974879
authored
Jun 02, 2004
by
bugreport%peshkin.net
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 244927: Add search on time owner has left the bug idle
r=jouni a=myk
parent
1eafc024
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
0 deletions
+38
-0
Search.pm
Bugzilla/Search.pm
+36
-0
checksetup.pl
checksetup.pl
+2
-0
No files found.
Bugzilla/Search.pm
View file @
90974879
...
@@ -703,6 +703,42 @@ sub init {
...
@@ -703,6 +703,42 @@ sub init {
push
(
@wherepart
,
"$table.dependson = bugs.bug_id"
);
push
(
@wherepart
,
"$table.dependson = bugs.bug_id"
);
},
},
"^owner_idle_time,(greaterthan|lessthan)"
=>
sub
{
my
$table
=
"idle_"
.
$chartid
;
$v
=~
/^(\d+)\s*([hHdDwWmMyY])?$/
;
my
$quantity
=
$1
;
my
$unit
=
lc
$2
;
my
$unitinterval
=
'DAY'
;
if
(
$unit
eq
'h'
)
{
$unitinterval
=
'HOUR'
;
}
elsif
(
$unit
eq
'w'
)
{
$unitinterval
=
' * 7 DAY'
;
}
elsif
(
$unit
eq
'm'
)
{
$unitinterval
=
'MONTH'
;
}
elsif
(
$unit
eq
'y'
)
{
$unitinterval
=
'YEAR'
;
}
my
$cutoff
=
"DATE_SUB(NOW(),
INTERVAL $quantity $unitinterval)"
;
my
$assigned_fieldid
=
&::
GetFieldID
(
'assigned_to'
);
push
(
@supptables
,
"LEFT JOIN longdescs comment_$table "
.
"ON comment_$table.who = bugs.assigned_to "
.
"AND comment_$table.bug_id = bugs.bug_id "
.
"AND comment_$table.bug_when > $cutoff"
);
push
(
@supptables
,
"LEFT JOIN bugs_activity activity_$table "
.
"ON (activity_$table.who = bugs.assigned_to "
.
"OR activity_$table.fieldid = $assigned_fieldid) "
.
"AND activity_$table.bug_id = bugs.bug_id "
.
"AND activity_$table.bug_when > $cutoff"
);
if
(
$t
=~
/greater/
)
{
push
(
@wherepart
,
"(comment_$table.who IS NULL "
.
"AND activity_$table.who IS NULL)"
);
}
else
{
push
(
@wherepart
,
"(comment_$table.who IS NOT NULL "
.
"OR activity_$table.who IS NOT NULL)"
);
}
$term
=
"0=0"
;
},
",equals"
=>
sub
{
",equals"
=>
sub
{
$term
=
"$ff = $q"
;
$term
=
"$ff = $q"
;
...
...
checksetup.pl
View file @
90974879
...
@@ -3897,6 +3897,8 @@ if (!$series_exists) {
...
@@ -3897,6 +3897,8 @@ if (!$series_exists) {
}
}
}
}
AddFDef
(
"owner_idle_time"
,
"Time Since Owner Touched"
,
0
);
# If you had to change the --TABLE-- definition in any way, then add your
# If you had to change the --TABLE-- definition in any way, then add your
# differential change code *** A B O V E *** this comment.
# differential change code *** A B O V E *** this comment.
#
#
...
...
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