reassign 462653 debbugs
severity 462653 wishilst
thanks

On Sat, 26 Jan 2008, Stefano Zacchiroli wrote:

> Package: bugs.debian.org
> Severity: normal
> 
> I'm using the get_bug_log method of the SOAP interface to retrieve
> single messages which are part of bug logs. I'm using it in the
> implementation of a new "followup" command for the "bts" devscript. The
> idea is to let the user followup on a given bug log, specifying the
> message she would like to reply to.

The right way to do this isn't really with a bts command, but with a
full mailto link that pre-quotes everything. [However, until I or
someone else writes that code, it's probably the best stand-in
possible.]

> Unfortunately, the current implementation [1] suffers of an usability
> problem. The user can specify which message in a bug log she wants to
> reply to, but there is no way in the current web rendering of bug logs
> to identify a given message.

There actually is; every single message has a number that corresponds
to it, and that same number is present in the msg_num which is
returned by get_bug_log.

> Would it be possible?

The number is already available, actually; it's what the msg= bit in
the urls is.

FE: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=427243#12

leads to 

#!/usr/bin/perl

use SOAP::Lite;
use Data::Dumper;

my $soap = SOAP::Lite
    -> uri('Debbugs/SOAP/Status')
    -> proxy(
             'http://bugs.debian.org/cgi-bin/soap.cgi'
            );

my $result = $soap->get_bug_log(427243);
my $log = $result->result();
print map {$_->{body}} grep {$_->{msg_num}==12} @{$log};
print qq(\n);


I probably could just expand that Message with the link to Message 12,
but it wouldn't show up for the other messages. [I'd almost suggest
having the followup command taking the url of the message that someone
wanted to respond to and figuring out the message from there, in
addition to just accepting a number.]


Don Armstrong

-- 
As nightfall does not come at once, neither does oppression. In both
instances, there is a twilight when everything remains seemingly
unchanged. And it is in such twilight that we all must be most aware
of change in the air however slight lest we become unwitting victims
of the darkness.
 -- William O. Douglas

http://www.donarmstrong.com              http://rzlab.ucr.edu



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to