]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1342542 - Add special partner-confidential, jbalaco@mozilla.com and mbest@mozilla...
authorDylan William Hardison <dylan@hardison.net>
Fri, 24 Feb 2017 21:29:59 +0000 (21:29 +0000)
committerDylan William Hardison <dylan@hardison.net>
Tue, 28 Feb 2017 23:27:22 +0000 (18:27 -0500)
scripts/generate_bmo_data.pl

index 5866afd7f8d9b4960fd5c316ba016508456c82d5..46bba91c8f2b7a8a3feb1b47e3612fe7fb2349cd 100755 (executable)
@@ -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";