Closed Bug 1119443 Opened 11 years ago Closed 11 years ago

Docker's generate_bmo_data.pl doesn't have similar bug status settings

Categories

(bugzilla.mozilla.org :: Developer Box, defect)

Production
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: gps, Assigned: gps)

Details

Attachments

(1 file, 1 obsolete file)

The bug status values and transitions in the Docker BMO setup don't resemble BMO at all. This is making it difficult to test things that involve bug status changes. The BMO bug status values and transitions should be added to generate_bmo_data.pl.
Attached patch patch (obsolete) — Splinter Review
This patch should be sufficient for a proper patch to be committed.
Attachment #8546150 - Flags: feedback?(dkl)
Comment on attachment 8546150 [details] [diff] [review] patch Review of attachment 8546150 [details] [diff] [review]: ----------------------------------------------------------------- Looks great. Thanks for looking at this as statuses was on my punch list for adding to this script. For reference to how this done by the Bugzilla code for a new database see: http://git.mozilla.org/?p=webtools/bmo/bugzilla.git;a=blob;f=Bugzilla/Install.pm;h=d5f4f04cdb31626815402e82044b036b7cfb7761;hb=refs/heads/master#l285 [github] But you're way accomplish same and I am not fussed either way. One thing I can add or if you want to do it is to add the 'INCOMPLETE' resolution which is the only one added for BMO apart from upstream. f=dkl ::: contrib/docker/generate_bmo_data.pl @@ +606,5 @@ > + transitions => [['UNCONFIRMED', 0], ['REOPENED', 0], ['RESOLVED', 0]], > + }, > +); > + > +if (!$dbh->selectrow_array("SELECT 1 FROM bug_status WHERE value = 'ASSISGNED'")) { s/ASSISGNED/ASSIGNED/ @@ +609,5 @@ > + > +if (!$dbh->selectrow_array("SELECT 1 FROM bug_status WHERE value = 'ASSISGNED'")) { > + $dbh->do('DELETE FROM bug_status'); > + $dbh->do('DELETE FROM status_workflow'); > + Add: print "updating statuses and workflow...\n"; @@ +628,5 @@ > + $old_id = undef; > + } > + > + foreach my $transition (@{$status->{transitions}}) { > + print "New status: " . $transition->[0] . "\n"; No need to print this information.
Attachment #8546150 - Flags: feedback?(dkl) → feedback+
Attached patch patchSplinter Review
Here it is with the small nits addressed. I won't be offended if you clean this up and/or add the INCOMPLETE resolution to it before landing.
Attachment #8546150 - Attachment is obsolete: true
Attachment #8546391 - Flags: review?(dkl)
Assignee: nobody → gps
Component: Administration → Developer Box
Comment on attachment 8546391 [details] [diff] [review] patch Review of attachment 8546391 [details] [diff] [review]: ----------------------------------------------------------------- r=dkl. Thanks for the help. Will commit in all the needed places.
Attachment #8546391 - Flags: review?(dkl) → review+
To ssh://gitolite3@git.mozilla.org/webtools/bmo/bugzilla.git 2bf5ed2..ec05da4 master -> master
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: