This task is about the Tracked template.
For the task to update the related BugStatusUpdate.js gadget, see T539: Adapting Gadget-BugStatusUpdate.js to Phabricator.
This task is about the Tracked template.
For the task to update the related BugStatusUpdate.js gadget, see T539: Adapting Gadget-BugStatusUpdate.js to Phabricator.
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Duplicate | None | T254 Identify types of links to Bugzilla which should be redirected or updated to Phabricator | |||
Resolved | None | T176 Adapt on-wiki bug templates to point to Phabricator | |||
Resolved | Qgil | T177 Update the {{tracked}} template to accept Phabricator parameters | |||
Resolved | Qgil | T454 Add phabricator to the interwiki map |
qgil wrote on 2014-05-13 19:34:46 (UTC)
Call for volunteers made at https://en.wikipedia.org/wiki/MediaWiki_talk:Gadget-BugStatusUpdate.js#Adapting_this_gadget_to_Phabricator and https://en.wikipedia.org/wiki/Template_talk:Tracked#Adapting_this_template_to_Phabricator
aklapper wrote on 2014-08-28 19:17:52 (UTC)
I don't think we should port Template:Tracked as we are going to redirect show_bug.cgi URLs from Bugzilla to Phabricator (T65) so links should still work.
Instead, proposing to introduce Template:TrackedInPhabricator (better name? sigh) to supersede/deprecate Template:Tracked:
<includeonly><div style="float: {{{float|right}}}; clear: {{{float|right}}}; border:1px solid #999; {{border-radius|0.5em}} background-color:#eee; {{linear-gradient|top|#ddd,#eee}} font-size:85%; text-align:center; padding:0.5em; margin-left:1em; margin-bottom:1em; width: 12em;" class="plainlinks {{#if:{{{1|}}}|mw-trackedInPhabTemplate}}">Tracked in [//phabricator.wikimedia.org/ Phabricator]<br />{{#if:{{{1|}}}|'''[[phabricator:{{{1}}}|<span class="tracktask-{{{1}}}">Task {{{1}}}</span>]]'''}} {{#switch:{{lc:{{{2|}}}}} |fixed=<span style="color: green; font-weight: bold; text-transform: uppercase;">Resolved fixed</span> |declined=<span style="color: black; font-weight: bold; text-transform: uppercase;">Resolved declined</span> |invalid=<span style="color: black; font-weight: bold; text-transform: uppercase;">Resolved invalid</span> |duplicate=<span style="color: black; font-weight: bold; text-transform: uppercase;">Resolved duplicate</span> }} </div></includeonly><noinclude> {{documentation}} </noinclude>
(Statuses in template above as defined in T359.)
Obviously using this new template requires adding the "phabricator:" interwiki link to http://meta.wikimedia.org/wiki/Interwiki_map first; also see T284.
Edokter wrote on 2014-08-28 22:36:42 (UTC)
The Tracked template (and associated gadget) should be agnostic about where the bug lives. It should be easy to distinguish; all Fabricator tickets seem to start with "T".
aklapper wrote on 2014-08-28 22:43:54 (UTC)
Oh man, you make a damn good point. True that! Thanks!
Now if somebody who understands templates (because I don't, I'd just end up with cargo cult programming) feels like editing the existing code to make it check the passed parameter for either digits only or for a capital T at the first position, that would be pretty awesome, and that edit could be done already before Day 1 of Phabricator. Nice.
Edokter wrote on 2014-08-28 23:10:55 (UTC)
I will try and get the sandbox version of the template working, But someone (Technical13?) else will have to take care of the gadget JS.
https://www.mediawiki.org/wiki/Template:Tracked seems to be functional, except for the interwiki map part, which belongs to Create T454.
I left this comment in the discussion page:
The interwiki part is now done, and both phabricator: and phab: are enabled. The link in the template does point to valid Phabricator pages, but it looks red and it appends "?action=edit&redlink=1" to the URL.
Re-opening - the Template is fixed (at Mediawiki and at Enwiki's sandbox (and soon the main Enwiki template)), but the Gadget is not yet changed (per https://en.wikipedia.org/wiki/MediaWiki_talk:Gadget-BugStatusUpdate.js#Adapting_this_gadget_to_Phabricator)
Sidenote: From a googlesearch, it looks like these are the other languages using the identical gadget:
Ok, for clarity, here we ended up discussing the {{tracked}} template, which can be operative without the gadget (even if then loses any smartness.
In order to isolate the gadget discussion, I created T539: Adapting Gadget-BugStatusUpdate.js to Phabricator, and now all the interesting beef about the gadget itself is there. Sorry for the confusion, I will edit the description here slightly.
For the records, there is a public call for help in Tech News 2014-41: "Some wikis have a template to track bugs in Bugzilla. You should update it to work with Phabricator. You can look at the one on mediawiki.org to see how."