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
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
fae7f123
Commit
fae7f123
authored
Dec 10, 2010
by
Frank Becker
Committed by
Max Kanat-Alexander
Dec 10, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 610182: Support enabling UNCONFIRMED in all products when using
contrib/convert-workflow.pl r=mkanat, a=mkanat
parent
51ae9740
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
2 deletions
+16
-2
convert-workflow.pl
contrib/convert-workflow.pl
+16
-2
No files found.
contrib/convert-workflow.pl
View file @
fae7f123
...
@@ -27,6 +27,7 @@ use Bugzilla;
...
@@ -27,6 +27,7 @@ use Bugzilla;
use
Bugzilla::
Config
qw(:admin)
;
use
Bugzilla::
Config
qw(:admin)
;
use
Bugzilla::Search::
Saved
;
use
Bugzilla::Search::
Saved
;
use
Bugzilla::
Status
;
use
Bugzilla::
Status
;
use
Getopt::
Long
;
my
$confirmed
=
new
Bugzilla::
Status
({
name
=>
'CONFIRMED'
});
my
$confirmed
=
new
Bugzilla::
Status
({
name
=>
'CONFIRMED'
});
my
$in_progress
=
new
Bugzilla::
Status
({
name
=>
'IN_PROGRESS'
});
my
$in_progress
=
new
Bugzilla::
Status
({
name
=>
'IN_PROGRESS'
});
...
@@ -35,6 +36,8 @@ if ($confirmed and $in_progress) {
...
@@ -35,6 +36,8 @@ if ($confirmed and $in_progress) {
print
"You are already using the new workflow.\n"
;
print
"You are already using the new workflow.\n"
;
exit
1
;
exit
1
;
}
}
my
$enable_unconfirmed
=
0
;
my
$result
=
GetOptions
(
"enable-unconfirmed"
=>
\
$enable_unconfirmed
);
print
<<END;
print
<<END;
WARNING: This will convert the status of all bugs using the following
WARNING: This will convert the status of all bugs using the following
...
@@ -50,8 +53,16 @@ so that it appears that these statuses were always in existence.
...
@@ -50,8 +53,16 @@ so that it appears that these statuses were always in existence.
Emails will not be sent for the change.
Emails will not be sent for the change.
To continue, press any key, or press Ctrl-C to stop this program...
END
END
if
(
$enable_unconfirmed
)
{
print
"UNCONFIRMED will be enabled in all products.\n"
;
}
else
{
print
<<END;
If you also want to enable the UNCONFIRMED status in every product,
restart this script with the --enable-unconfirmed option.
END
}
print
"\nTo continue, press any key, or press Ctrl-C to stop this program..."
;
getc
;
getc
;
my
$dbh
=
Bugzilla
->
dbh
;
my
$dbh
=
Bugzilla
->
dbh
;
...
@@ -105,7 +116,10 @@ foreach my $pair (@translation) {
...
@@ -105,7 +116,10 @@ foreach my $pair (@translation) {
Bugzilla::
Series
->
Bugzilla::Search::Saved::
rename_field_value
(
'bug_status'
,
Bugzilla::
Series
->
Bugzilla::Search::Saved::
rename_field_value
(
'bug_status'
,
$from
,
$to
);
$from
,
$to
);
}
}
if
(
$enable_unconfirmed
)
{
print
"Enabling UNCONFIRMED in all products...\n"
;
$dbh
->
do
(
'UPDATE products SET allows_unconfirmed = 1'
);
}
$dbh
->
bz_commit_transaction
();
$dbh
->
bz_commit_transaction
();
print
<<END;
print
<<END;
...
...
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