From: Dylan William Hardison Date: Fri, 24 Feb 2017 21:29:59 +0000 (+0000) Subject: Bug 1342542 - Add special partner-confidential, jbalaco@mozilla.com and mbest@mozilla... X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9a55573a425c62a3ac8d24babb7aeda0f42d8040;p=thirdparty%2Fbugzilla.git Bug 1342542 - Add special partner-confidential, jbalaco@mozilla.com and mbest@mozilla.com to generate_bmo_data.pl --- diff --git a/scripts/generate_bmo_data.pl b/scripts/generate_bmo_data.pl index 5866afd7f..46bba91c8 100755 --- a/scripts/generate_bmo_data.pl +++ b/scripts/generate_bmo_data.pl @@ -23,6 +23,8 @@ use Bugzilla::Config qw(:admin); use Bugzilla::User::Setting; use Bugzilla::Status; +BEGIN { Bugzilla->extensions } + my $dbh = Bugzilla->dbh; # set Bugzilla usage mode to USAGE_MODE_CMDLINE @@ -157,6 +159,15 @@ my @users = ( realname => 'Nobody; OK to take it and work on it', password => '*' }, + map { + { + login => $_, + realname => (split(/@/, $_, 2))[0], + password => '*', + } + } map { + map { @$_ } values %$_ + } values %Bugzilla::Extension::BMO::Data::group_auto_cc, ); print "creating user accounts...\n"; @@ -376,6 +387,20 @@ my @groups = ( all_products => 0, bug_group => 0, }, + { + name => 'partner-confidential', + description => 'Restrict the visibility of this bug to the assignee, QA contact, and CC list only.', + no_admin => 1, + all_products => 0, + bug_group => 1, + }, + { + name => 'partner-confidential-visible', + description => 'Members of this group will be able to use the partner-confidential group when filing bugs', + no_admin => 0, + all_products => 0, + bug_group => 0, + }, ); print "creating groups...\n";