Bug 1136745: Kill the makeproductgroups parameter

r=LpSolit a=glob


git-svn-id: svn://10.0.0.236/trunk@265888 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bzrmirror%bugzilla.org 2015-03-19 20:00:51 +00:00
parent 8574d46376
commit e634598323
10 changed files with 9 additions and 69 deletions

View File

@ -1 +1 @@
9343
9344

View File

@ -1 +1 @@
42584a88aecb7430d6cef2c7b73779842ea5c80d
5c8594a71d10d21019175dbc98e572671f80a095

View File

@ -151,14 +151,6 @@ sub update_params {
$new_params{'enablequips'} = $param->{'usequip'} ? 'on' : 'off';
}
# Change from old product groups to controls for group_control_map
# 2002-10-14 bug 147275 bugreport@peshkin.net
if (exists $param->{'usebuggroups'} &&
!exists $param->{'makeproductgroups'})
{
$new_params{'makeproductgroups'} = $param->{'usebuggroups'};
}
# Modularise auth code
if (exists $param->{'useLDAP'} && !exists $param->{'loginmethod'}) {
$new_params{'loginmethod'} = $param->{'useLDAP'} ? "LDAP" : "DB";

View File

@ -20,12 +20,6 @@ sub get_param_list {
my $class = shift;
my @param_list = (
{
name => 'makeproductgroups',
type => 'b',
default => 0
},
{
name => 'chartgroup',
type => 's',

View File

@ -96,7 +96,6 @@ sub create {
product => $product });
# Create groups and series for the new product, if requested.
$product->_create_bug_group() if Bugzilla->params->{'makeproductgroups'};
$product->_create_series() if $create_series;
Bugzilla::Hook::process('product_end_of_create', { product => $product });
@ -430,27 +429,6 @@ use constant is_default => 0;
#### Methods ####
###############################
sub _create_bug_group {
my $self = shift;
my $dbh = Bugzilla->dbh;
my $group_name = $self->name;
while (new Bugzilla::Group({name => $group_name})) {
$group_name .= '_';
}
my $group_description = get_text('bug_group_description', {product => $self});
my $group = Bugzilla::Group->create({name => $group_name,
description => $group_description,
isbuggroup => 1});
# Associate the new group and new product.
$dbh->do('INSERT INTO group_control_map
(group_id, product_id, membercontrol, othercontrol)
VALUES (?, ?, ?, ?)',
undef, ($group->id, $self->id, CONTROLMAPDEFAULT, CONTROLMAPNA));
}
sub _create_series {
my $self = shift;

View File

@ -360,11 +360,6 @@ The options on this page control global default behavior.
For more information on Groups and Group Security, see
:ref:`groups`.
makeproductgroups
Determines whether or not to automatically create groups
when new products are created. If this is on, the groups will be
used for querying bugs.
chartgroup
The name of the group of users who can use the 'New Charts' feature. Administrators should ensure that the public categories and series definitions do not divulge confidential information before enabling this for an untrusted population. If left blank, no users will be able to use New Charts.

View File

@ -144,15 +144,7 @@ fields:
- *<productname>*:
This allows an administrator to specify the products
in which a user can see bugs. If you turn on the
:param:`makeproductgroups` parameter in
the Group Security Panel in the Parameters page,
then Bugzilla creates one group per product (at the time you create
the product), and this group has exactly the same name as the
product itself. Note that for products that already exist when
the parameter is turned on, the corresponding group will not be
created. The user must still have the :group:`editbugs`
privilege to edit bugs in these products.
in which a user can see bugs.
.. _createnewusers:

View File

@ -196,7 +196,7 @@ if ($action eq 'new') {
isbuggroup => 1,
});
# Permit all existing products to use the new group if makeproductgroups.
# Permit all existing products to use the new group if requested.
if ($cgi->param('insertnew')) {
$dbh->do('INSERT INTO group_control_map
(group_id, product_id, membercontrol, othercontrol)

View File

@ -42,8 +42,7 @@
[% Hook.process('field') %]
</table>
<input type="checkbox" id="insertnew" name="insertnew" value="1"
[% IF Param("makeproductgroups") %] checked[% END %]>
<input type="checkbox" id="insertnew" name="insertnew" value="1">
<label for="insertnew">Insert new group into all existing products.</label>
<p>
<input type="submit" id="create" value="Add">
@ -82,17 +81,10 @@ than deleting the group would be. <b>Note: If you are creating
a group, you probably want it to be usable for [% terms.bugs %], in which
case you should leave this checked.</b></p>
[% IF Param("makeproductgroups") %]
<p>By default, the new group will be associated with existing products.
Unchecking the "Insert new group into all existing products" option will
prevent this and make the group become visible only when its controls have
been added to a product.</p>
[% ELSE %]
<p>Checking the "Insert new group into all existing products" option will
make the new group be associated with existing products. Leaving it unchecked
will make the group become visible only when its controls have been added to
a product.</p>
[% END %]
make the new group available to be set on [% terms.bugs %] in all existing
products. Leaving it unchecked means you need to specifically add the group to
any product where you want it to be available for use.</p>
<p>Back to the <a href="editgroups.cgi">group list</a>.</p>

View File

@ -11,9 +11,6 @@
%]
[% param_descs = {
makeproductgroups => "If this is on, Bugzilla will associate $terms.abug group " _
"with each product in the database, and use it for querying ${terms.bugs}.",
chartgroup => "The name of the group of users who can use the 'New Charts' " _
"feature. Administrators should ensure that the public categories " _
"and series definitions do not divulge confidential information " _