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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ivan Ivlev
bugzilla
Commits
d6370f06
Commit
d6370f06
authored
Mar 21, 2014
by
Sunil Joshi [:SunilJoshi]
Committed by
David Lawrence
Mar 21, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 399087 - Remove the 'mostfreqthreshold' parameter
r=dkl,a=justdave
parent
ace77744
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
15 deletions
+8
-15
Query.pm
Bugzilla/Config/Query.pm
+0
-7
Constants.pm
Bugzilla/Constants.pm
+6
-0
duplicates.cgi
duplicates.cgi
+2
-3
query.html.tmpl
template/en/default/admin/params/query.html.tmpl
+0
-5
No files found.
Bugzilla/Config/Query.pm
View file @
d6370f06
...
...
@@ -26,13 +26,6 @@ sub get_param_list {
},
{
name
=>
'mostfreqthreshold'
,
type
=>
't'
,
default
=>
'2'
,
checker
=>
\&
check_numeric
},
{
name
=>
'mybugstemplate'
,
type
=>
't'
,
default
=>
'buglist.cgi?resolution=---&emailassigned_to1=1&emailreporter1=1&emailtype1=exact&email1=%userid%'
...
...
Bugzilla/Constants.pm
View file @
d6370f06
...
...
@@ -187,6 +187,8 @@ use Memoize;
AUDIT_CREATE
AUDIT_REMOVE
MOST_FREQUENT_THRESHOLD
)
;
@
Bugzilla::Constants::
EXPORT_OK
=
qw(contenttypes)
;
...
...
@@ -616,6 +618,10 @@ use constant PRIVILEGES_REQUIRED_EMPOWERED => 3;
use
constant
AUDIT_CREATE
=>
'__create__'
;
use
constant
AUDIT_REMOVE
=>
'__remove__'
;
# The minimum number of duplicates a bug needs to show up
# on the "Most frequently reported bugs" page.
use
constant
MOST_FREQUENT_THRESHOLD
=>
2
;
sub
bz_locations
{
# Force memoize() to re-compute data per project, to avoid
# sharing the same data across different installations.
...
...
duplicates.cgi
View file @
d6370f06
...
...
@@ -172,10 +172,9 @@ my %since_dups = @{$dbh->selectcol_arrayref(
$reso_field_id
,
$changedsince
)};
add_indirect_dups
(
\%
since_dups
,
\%
dupe_relation
);
# Enforce the mostfreqthreshold parameter and the "bug_id" cgi param.
my
$mostfreq
=
Bugzilla
->
params
->
{
'mostfreqthreshold'
};
# Enforce the MOST_FREQUENT_THRESHOLD constant and the "bug_id" cgi param.
foreach
my
$id
(
keys
%
total_dups
)
{
if
(
$total_dups
{
$id
}
<
$mostfreq
)
{
if
(
$total_dups
{
$id
}
<
MOST_FREQUENT_THRESHOLD
)
{
delete
$total_dups
{
$id
};
next
;
}
...
...
template/en/default/admin/params/query.html.tmpl
View file @
d6370f06
...
...
@@ -26,11 +26,6 @@
</li>
</ul>",
mostfreqthreshold => "The minimum number of duplicates $terms.abug needs to show up on the " _
"<a href=\"duplicates.cgi\">most frequently reported $terms.bugs page</a>. " _
"If you have a large database and this page takes a long time to " _
"load, try increasing this number.",
mybugstemplate => "This is the URL to use to bring up a simple 'all of my $terms.bugs' " _
"list for a user. %userid% will get replaced with the login name of a user. " _
"Special characters must be URL-encoded.",
...
...
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