Hello Kristis,

this was just a quick fix to get integration_add_comment working. I've
noticed that latest bugzilla uses pure native DBI calls to fetch data from
the database, so methods like

PushGlobalSQLState();
SendSQL( $sql );
FetchOneColumn();
PopGlobalSQLState(); 

doesn't exist anymore and should be replaced by something like

sub product {
    my ($self) = @_;
    return $self->{product} if exists $self->{product};
    return '' if $self->{error};
    ($self->{product}) = Bugzilla->dbh->selectrow_array(
        'SELECT name FROM products WHERE id = ?',
        undef, $self->{product_id});
    return $self->{product};
}


Regards,
Oliver Schäfer

-----Original Message-----
From: Kristis Makris [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 10, 2007 7:38 AM
To: Maginnity, Simon (Contractor); Oliver Schäfer
Cc: [email protected]
Subject: RE: [scmbug-users] Re: Quick Fix for Bugzilla 3.0rc1

Hi Oliver,

Sorry for the late response. I just had a look at the patch. 

- The package loading in init_specific is appropriate.
- about set_version: up_to_3_0 should be renamed to
$BUGTRACKER_VERSION_LATEST and then we should call 2.22 up_to_2_22 to make
the separation cleaner. The same goes for integration_add_comment

I reworked this and it hasn't broken anything in my test 2.20 instance.

http://bugzilla.mkgnu.net/attachment.cgi?id=227&action=view

Perhaps you folks could apply this and see if at least the comments
integration works ?

Also, Oliver are there any issues with tagging and the VDD ? Or is this just
a barebones "comments" patch ? Does product verification for example work ?
Email support ? Are there schema changes ?

On Tue, 2007-04-10 at 08:24 +0930, Maginnity, Simon (Contractor) wrote:
> Hi Kristis, how did this quick fix look is it worthy of a 19.9.1 release
so that people can get something going between scmbug and Bugzilla?
> 
> Regards
> 
> Simon
> 
> -----Original Message-----
> From: Kristis Makris [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, 4 April 2007 12:19 AM
> To: Oliver Schäfer
> Cc: [email protected]
> Subject: [scmbug-users] Re: Quick Fix for Bugzilla 3.0rc1
> 
> Thanks. I'll have a look.
> 
> http://bugzilla.mkgnu.net/show_bug.cgi?id=948#c4
> 
> 
> On Tue, 2007-04-03 at 12:51 +0200, Oliver Schäfer wrote:
> >  Hello,
> > 
> > I've done a quick fix for our server environment to support lastest 
> > bugzilla 3.0rc1.
> > 
> > This just fixes integration_add_comment, for Bugzilla version set to 
> > 3.x.x
> > 
> > I've used /usr/share/scmbug/lib/Scmbug/Daemon/Bugzilla.pm on our 
> > debian system as template for modification, which is based on Scmbug
> > v.0.19.9
> > 
> > This might be useful for users with a basic glue installation.
> > 
> > 
> > Kind regards,
> > Oliver Schäfer
> > 
> > Software Development / electronics solutions MB-technology GmbH 
> > Kolumbusstraße 2
> > 71063 Sindelfingen
> > 
> > 
> > Fon +49 (0)7031-686-3137    [EMAIL PROTECTED]
> > Fax +49 (0)7031-686-3010    http://www.mbtech-group.com
> > 
> > 
> > MB-technology GmbH, Kolumbusstr. 19+21, 71063 Sindelfingen,
Geschäftsführer:
> > Dipl.-Wirtsch.-Ing. Hartmut Tresp, Amtsgericht Stuttgart, HRB 24 
> > 4792, Vorsitzender des Aufsichtsrats: Dr. Thomas Weber
> > 
> > Diese E-Mail kann vertrauliche Informationen enthalten. Wenn Sie 
> > nicht der Adressat sind, sind Sie nicht zur Verwendung dieser
Informationen befugt.
> > Bitte benachrichtigen Sie uns sofort über den irrtümlichen Empfang. 
> 
> 
> 
> IMPORTANT: This email remains the property of the Australian Defence
Organisation and is subject to the jurisdiction of section 70 of the CRIMES
ACT 1914.  If you have received this email in error, you are requested to
contact the sender and delete the email.
> 
> 



_______________________________________________
scmbug-users mailing list
[email protected]
http://lists.mkgnu.net/cgi-bin/mailman/listinfo/scmbug-users

Reply via email to