Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 99437 - addition of keyword magic to reference bugs in external bug trackers
Summary: addition of keyword magic to reference bugs in external bug trackers
Status: RESOLVED LATER
Alias: None
Product: Gentoo Infrastructure
Classification: Unclassified
Component: Bugzilla (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Jeffrey Forman (RETIRED)
URL:
Whiteboard:
Keywords: Goal
Depends on: 99394
Blocks: 99714
  Show dependency tree
 
Reported: 2005-07-18 08:37 UTC by Carsten Lohrke (RETIRED)
Modified: 2011-10-30 23:15 UTC (History)
7 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Carsten Lohrke (RETIRED) gentoo-dev 2005-07-18 08:37:03 UTC
>On Sunday 17 July 2005 21:12, Jeffrey Forman wrote:
> 2. I am applying a spiffy new autolink feature. Just like being able to
> cite "bug #XXXX" and a link is created, now "glsa #XXXX-Y" will be
> active so that our security folks can more easily reference glsa's.

btw.: Would it be possible to extend this to "<foo> bug #XXXX", with 
<foo> := {fdo, moz, kde, ...} to refer to external bug tracking systems?


> On Monday 18 July 2005 14:46, Henrik Brix Andersen wrote:
> If you add the above, please add magic for the kernel.org bug tracker as
> well.
Comment 1 Henrik Brix Andersen 2005-07-18 08:41:35 UTC
The URL for kernel.org bugs is http://bugzilla.kernel.org/show_bug.cgi?id=%bugid%
Comment 2 Peter Johanson (RETIRED) gentoo-dev 2005-07-18 12:22:03 UTC
Would be nice for us dotnet herders to be able to reference the ximian bugzie too.
Comment 3 Joshua Kinard gentoo-dev 2005-07-18 17:12:01 UTC
kernel yum yum

> For kernel bugs, is it possible to be able to do something like:
>     <`Pikachu> cve #CAN-2005-1912
>     <GenBot> `Pikachu: Bug #123456; "CAN-2005-1912: Kernel infested with
>           Pokemon"; [Gentoo Linux :: Kernels]; {RESOLVED:PIKA!}; Wile E.
>           Coyote->kernel herd; http://bugs.gentoo.org/123456
> 
> Maybe applicable to other apps that get assigned CVE/CAN IDs.
> 
> Possible?
> 

Plasmaroo's already done some kind of implementation of this specific to
CAN-XXXX-YYYY queries (Maybe more...), but if it's expandable in any way, it
might prove to be useful, somewhat.  CC'ing myself, kernel, and solar.
Comment 4 Robert Paskowitz (RETIRED) gentoo-dev 2005-07-18 17:33:57 UTC
foreach $ID (keys %bugzie) {
         $text =~ s~(($ID) bug \#?(\d+))
                  ~<a href=\"http://$bugzie{$2}/show_bug.cgi?id=$3\">$1</a>
                  ~ixgc;
}

This should do the trick. For each bugzilla to get links, a line such as:
$bugzie{"kernel"} = "bugzilla.kernel.org"; 
should be placed above the loop.

Another example would be:
$bugzie{"gnome"} = "bugzilla.gnome.org";

The code would then match text in the format:

'kernel bug #xxxx' and 'kernel bug xxxx'.
Comment 5 Carsten Lohrke (RETIRED) gentoo-dev 2005-07-18 17:47:55 UTC
If no one minds, i'd say rather https:// than http://, if supported.
Comment 6 Robert Paskowitz (RETIRED) gentoo-dev 2005-07-18 17:56:50 UTC
In that case:

$bugzie{"kernel"} = "https://bugzilla.kernel.org";
$bugzie{"gnome"} = "http://bugzilla.gnome.org";

foreach $ID (keys %bugzie) {
         $text =~ s~(($ID) bug \#?(\d+))
                  ~<a href=\"$bugzie{$2}/show_bug.cgi?id=$3\">$1</a>
                  ~ixgc;
}

(bugzilla.kernel.org doesn't actually support https, just an example)
Comment 7 Jeffrey Forman (RETIRED) gentoo-dev 2005-10-14 08:54:04 UTC
i'm not sure we want to add "kernel" and "gnome" as triggers. these are
frequently used words and they might start throwing autolinks everywhere.
Comment 8 John Mylchreest (RETIRED) gentoo-dev 2005-10-14 10:16:28 UTC
then maybe we can use kernel.og/gnome.org?
It would be nice for us to be able to attach kernel.org bug #12345 and then
steal one of your goats in the night knowing that we helped a user by pointing
them to the real bug report.
Comment 9 Jeffrey Forman (RETIRED) gentoo-dev 2005-12-16 15:39:26 UTC
this will be later as i concentrate on "needs" rather than "wants." sorry

-jeffrey