New Bug Buddy kind of bug



	Hi to all!

I've just checked to cvs HEAD a new feature for bug buddy: a new page
asking for the bug type. Just now:

1) The application has a wrong behaviour
2) The documentation is wrong
3) The translation is wrong
4) Request a missing feature
5) Debug a crashed or running application (experts only)

	2 --> adds doc keyword
	3 --> adds i18n keyword
	4 --> sets seveity as an enhancement
	5 --> goes to debug page

What I want to ask if about new possible type of bugs, and texts for
different templates in each case. Just now, we are using always:
		        "Description of Problem:\n\n\n"
                        "Steps to reproduce the problem:\n"
                        "1. \n"
                        "2. \n"
                        "3. \n\n"
                        "Actual Results:\n\n\n"
                        "Expected Results:\n\n\n"
                        "How often does this happen?\n\n\n"
                        "Additional Information:\n");

In the other hand, in order to import the keyword field, hallowen module
needs some changes. I don't have any idea of perl, but I have done:

diff -u -u -r1.25 Sunrise.pm
--- Sunrise.pm  26 Jun 2002 07:19:40 -0000      1.25
+++ Sunrise.pm  15 May 2003 20:53:32 -0000
@@ -103,6 +103,8 @@
            $bug_buddy{bugzilla_component} = $value;
        } elsif ($key eq 'bugzilla-version') {
            $bug_buddy{bugzilla_version} = $value;
+       } elsif ($key eq 'bugzilla-keyword') {
+           $bug_buddy{bugzilla_keyword} = $value;
        }
     }
  
@@ -304,6 +306,14 @@
            #added for gnome2.0 [louie ximian com]
            if (defined $bug_buddy->{gnomeversion}) {
                $bug{keywords} = 'GNOME2';
+           }
+           #added for managing keywords [fherrera onirica com]
+           if (defined $bug_buddy->{bugzilla_keyword} {
+               if $bug{keyword} != '' {
+                       $bug{keyword} = $bug{keyword} . ',' .
$bug_buddy->{bugzilla_keyword};
+               } else {
+                       $bug{keyword} = $bug_buddy->{bugzilla_keyword}:
+               }
            }
            if (defined $bug_buddy->{system}) {
                $bug{op_sys_details} = $bug_buddy->{system};


Is this correct? Can anyone help me with this, and doing the testing?
Thanks!

Salu2

-- 
Fernando Herrera de las Heras
Onírica: análisis, diseño e implantación de soluciones informáticas
http://www.onirica.com



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]