Bug 3451

Summary: Setup Bugzilla and download interwiki links
Product: Infrastructure Reporter: Romain d'Alverny <rdalverny>
Component: BugzillaAssignee: Sysadmin Team <sysadmin-bugs>
Status: RESOLVED OLD QA Contact:
Severity: enhancement    
Priority: Normal CC: andr55, atelier-bugs, sysadmin-bugs
Version: unspecified   
Target Milestone: ---   
Hardware: i586   
OS: Linux   
Whiteboard:
Source RPM: CVE:
Status comment:

Description Romain d'Alverny 2011-11-25 17:29:38 CET
It would be cool to have [[bug:1234]] and [[download:filename]] in place in the wiki to avoid writing long URLs to point to such resources.

Both can be setup through the following SQL queries (there's no native UI for that in MediaWiki at this point):

  REPLACE INTO interwiki (iw_prefix,iw_url,iw_local)
  VALUES('bug', 'https://bugs.mageia.org/show_bug.cgi?id=$1', 0)

and

  REPLACE INTO interwiki (iw_prefix,iw_url,iw_local)
  VALUES('download', 'http://www.mageia.org/downloads/get/?q=$1', 0)
Comment 2 Romain d'Alverny 2011-11-27 16:23:29 CET
Indeed, these extensions are very interesting. Would need to be tested; but these are complements to the above suggestion.
Comment 3 andré blais 2011-12-04 04:59:57 CET
For the first one, how about a simple template ?
----
[https://bugs.mageia.org/show_bug.cgi?id={{{1}}} Mageia bug #{{{1}}}]
<noinclude>


e.g. automatic link to Mageia bugzilla bug 3451 with

<nowiki>{{bug|3451}}</nowiki>

displaying as

Mageia bug #3451

</noinclude>
[Category:Contributors]
----

It's in place and it works.  (I used it to load this bug.)

I can try the second if you like.
(Just give me an example of a file to test.)

CC: (none) => andre999mga

Comment 4 Romain d'Alverny 2011-12-04 16:45:49 CET
(In reply to comment #3)
> For the first one, how about a simple template ?

Can work yes, but that's not it. Interwiki (and bugs, and downloads and maybe later others) are things meant to be fixed once and unified through all our localized wikis. If we need to update these later, a single change in the config for all wikis is better than looking after each template in each language.
Comment 5 Nicolas Vigier 2011-12-04 21:52:13 CET
I added the two entries in the database. After testing on the wiki, it looks like it is working for download links, but not for bug links (I don't know why).

Database has this :

mediawiki_en=> SELECT * from interwiki WHERE iw_prefix = 'bug';
 iw_prefix |                   iw_url                   | iw_local | iw_trans 
-----------+--------------------------------------------+----------+----------
 bug       | https://bugs.mageia.org/show_bug.cgi?id=$1 |        0 |        0
(1 row)

mediawiki_en=> SELECT * from interwiki WHERE iw_prefix = 'download';
 iw_prefix |                  iw_url                   | iw_local | iw_trans 
-----------+-------------------------------------------+----------+----------
 download  | http://www.mageia.org/downloads/get/?q=$1 |        0 |        0
(1 row)

CC: (none) => boklm

Comment 6 Romain d'Alverny 2011-12-04 23:04:01 CET
(In reply to comment #5)
> I added the two entries in the database. After testing on the wiki, it looks
> like it is working for download links, but not for bug links (I don't know
> why).

Thanks! Strange. Wondering, could https://wiki.mageia.org/en/Template:Bug go into the way. Could you check by deleting the template? (can't do here)
Comment 7 Nicolas Vigier 2011-12-04 23:14:05 CET
I removed Template:Bug, but it didn't fix the problem.
Comment 8 Romain d'Alverny 2011-12-05 00:10:19 CET
:-/ What about using "bugs" or "bugzilla" in iw_prefix instead of "bug"?
Comment 9 Romain d'Alverny 2011-12-05 00:11:19 CET
Partially related: this extension could be interesting in the future: http://www.mediawiki.org/wiki/Extension:SpecialInterwiki
Comment 10 andré blais 2011-12-05 06:58:53 CET
(In reply to comment #4)
> 
> Can work yes, but that's not it. Interwiki (and bugs, and downloads and maybe
> later others) are things meant to be fixed once and unified through all our
> localized wikis. If we need to update these later, a single change in the
> config for all wikis is better than looking after each template in each
> language.

In the meantime, I think a bug template would be useful.
{{bug|3451}} would invoke the template directly, while
[[bug:3451]] should call the registered intermedia for bug,
so there shouldn't be any conflict.
(Wouldn't a template be a little more efficient ?)

BTW, are there plans to localise bugzilla ?
Or the links to bugzilla ?
Or is it just to use the same style as intermedia links ?
(Not a problem, just wondering.)
Comment 11 Romain d'Alverny 2011-12-05 08:50:27 CET
(In reply to comment #10)
> In the meantime, I think a bug template would be useful.
> {{bug|3451}} would invoke the template directly, while
> [[bug:3451]] should call the registered intermedia for bug,
> so there shouldn't be any conflict.

Shoudn't, but you never know.

> (Wouldn't a template be a little more efficient ?)

See my previous reply. Depends on where you place efficiency.

> BTW, are there plans to localise bugzilla ?

No.

> Or the links to bugzilla ?
> Or is it just to use the same style as intermedia links ?

Not sure I understand.
Romain d'Alverny 2012-08-21 16:49:15 CEST

Status: NEW => RESOLVED
Resolution: (none) => OLD

Comment 12 Manuel Hiebel 2012-08-22 15:30:16 CEST
Romain d'Alverny changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |OLD

Old ? it's not really working
Comment 13 Romain d'Alverny 2012-08-22 15:40:47 CEST
No, but we did follow the procedure to do it, and it doesn't work. Well, it partly works (the downoad keyword is ok, the bug one not). And I don't see how we will get any further than that. So maybe it's a wontfix or a fixed, or in between.
Nicolas Vigier 2014-05-08 18:06:12 CEST

CC: boklm => (none)