summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGervase Markham <gerv@mozilla.org>2015-03-19 20:40:07 +0100
committerFrédéric Buclin <LpSolit@gmail.com>2015-03-19 20:45:19 +0100
commit5c8594a71d10d21019175dbc98e572671f80a095 (patch)
treee926fe496dd7eadbd24ccf2b8cb54bb69452bba6
parent42584a88aecb7430d6cef2c7b73779842ea5c80d (diff)
downloadbugzilla-5c8594a71d10d21019175dbc98e572671f80a095.tar.gz
bugzilla-5c8594a71d10d21019175dbc98e572671f80a095.tar.xz
Bug 1136745: Kill the makeproductgroups parameter
r=LpSolit a=glob
-rw-r--r--Bugzilla/Config.pm8
-rw-r--r--Bugzilla/Config/GroupSecurity.pm6
-rw-r--r--Bugzilla/Product.pm22
-rw-r--r--docs/en/rst/administering/parameters.rst5
-rw-r--r--docs/en/rst/administering/users.rst10
-rwxr-xr-xeditgroups.cgi2
-rw-r--r--template/en/default/admin/groups/create.html.tmpl18
-rw-r--r--template/en/default/admin/params/groupsecurity.html.tmpl3
8 files changed, 7 insertions, 67 deletions
diff --git a/Bugzilla/Config.pm b/Bugzilla/Config.pm
index 5a8117c29..ebd5f8ef6 100644
--- a/Bugzilla/Config.pm
+++ b/Bugzilla/Config.pm
@@ -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";
diff --git a/Bugzilla/Config/GroupSecurity.pm b/Bugzilla/Config/GroupSecurity.pm
index 4fa21e72f..ec172216b 100644
--- a/Bugzilla/Config/GroupSecurity.pm
+++ b/Bugzilla/Config/GroupSecurity.pm
@@ -21,12 +21,6 @@ sub get_param_list {
my @param_list = (
{
- name => 'makeproductgroups',
- type => 'b',
- default => 0
- },
-
- {
name => 'chartgroup',
type => 's',
choices => \&_get_all_group_names,
diff --git a/Bugzilla/Product.pm b/Bugzilla/Product.pm
index 0c0cb458d..09ca61c69 100644
--- a/Bugzilla/Product.pm
+++ b/Bugzilla/Product.pm
@@ -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;
diff --git a/docs/en/rst/administering/parameters.rst b/docs/en/rst/administering/parameters.rst
index e7ff00132..44eae8e51 100644
--- a/docs/en/rst/administering/parameters.rst
+++ b/docs/en/rst/administering/parameters.rst
@@ -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.
diff --git a/docs/en/rst/administering/users.rst b/docs/en/rst/administering/users.rst
index b8657e5d9..e32db2f05 100644
--- a/docs/en/rst/administering/users.rst
+++ b/docs/en/rst/administering/users.rst
@@ -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:
diff --git a/editgroups.cgi b/editgroups.cgi
index 287ac1114..e39eb6c87 100755
--- a/editgroups.cgi
+++ b/editgroups.cgi
@@ -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)
diff --git a/template/en/default/admin/groups/create.html.tmpl b/template/en/default/admin/groups/create.html.tmpl
index 3827fb0e3..6f280d68d 100644
--- a/template/en/default/admin/groups/create.html.tmpl
+++ b/template/en/default/admin/groups/create.html.tmpl
@@ -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 %]
+<p>Checking the "Insert new group into all existing products" option will
+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>
diff --git a/template/en/default/admin/params/groupsecurity.html.tmpl b/template/en/default/admin/params/groupsecurity.html.tmpl
index 19d78de5a..426dbd8f7 100644
--- a/template/en/default/admin/params/groupsecurity.html.tmpl
+++ b/template/en/default/admin/params/groupsecurity.html.tmpl
@@ -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 " _