Page MenuHomePhabricator

Converted bugs could link to the original report in static-bugzilla.wikimedia.org
Closed, DeclinedPublic

Description

Looking at T67088, it has "Reference" line, like this:

Reference: bz65088

However, there is no link to the original at https://static-bugzilla.wikimedia.org/show_bug.cgi?id=65088

It would be generally useful if WMF's Phabricator recognized the text "bz65088" as a Bugzilla link and handled it similar to how it treats magic codes like TNNN and PNN as special linked items. Or the conversion could create the link in markup as bz65088 , or it could represent as "bug 65088" and let T687 make it a link.

Related Objects

Event Timeline

Spage updated the task description. (Show Details)
Spage raised the priority of this task from to Needs Triage.
Spage added a project: Bugzilla-Preview.
Spage changed Security from none to None.
Spage added a subscriber: Spage.
Qgil triaged this task as Normal priority.Oct 25 2014, 6:47 AM
Qgil added a subscriber: Qgil.

I think this is a very good idea and easy to implement.

Should we settle on old-bugzilla.wikimedia.org, and point the links there?

Qgil added a comment.Oct 28 2014, 9:41 AM
In T882#14939, @Qgil wrote:

Should we settle on old-bugzilla.wikimedia.org

This is decided: T366

and point the links there?

Still to be decided.

Qgil edited projects, added Phabricator; removed Bugzilla-Preview.Oct 29 2014, 9:21 PM

This task is not essential, it has a risk of overcomplicating the migration process, and it can be done afterward either with direct changes to the database or a bot.

Of course since bugzilla.wikimedia.org URLs will redirect (T40), a bz65088 link would have to be to the read-only frozen https://old-bugzilla.wikimedia.org/show_bug.cgi?id=65088

I confusedly suggested an alternative

or it could represent as "bug 65088" and let T687 make it a link.

That probably wouldn't work, since clicking it would just end up at the Phabricator task report you're looking at.

I agree this isn't essential, the migration will be perfect :)

Qgil renamed this task from Converted bugs don't link to the original in bugzilla to Converted bugs could link to the original report in old-bugzilla.wikimedia.org.Oct 30 2014, 7:43 AM
Qgil updated the task description. (Show Details)
Qgil lowered the priority of this task from Normal to Low.Nov 7 2014, 10:49 AM
He7d3r added a subscriber: He7d3r.Nov 26 2014, 11:40 AM
jayvdb awarded a token.Dec 2 2014, 3:34 AM
jayvdb added a subscriber: jayvdb.
chasemp lowered the priority of this task from Low to Lowest.Feb 23 2015, 10:16 PM
chasemp added a subscriber: chasemp.

Links should go to https://static-bugzilla.wikimedia.org/ and not https://old-bugzilla.wikimedia.org/ as the former will be permanent while the latter is only temporary.

Links should go to https://static-bugzilla.wikimedia.org/ and not https://old-bugzilla.wikimedia.org/ as the former will be permanent while the latter is only temporary.

Links should go where the information is.

Links should go to https://static-bugzilla.wikimedia.org/ and not https://old-bugzilla.wikimedia.org/ as the former will be permanent while the latter is only temporary.

Links should go where the information is.

Yes, static-bugzilla has the same information with the added benefit of being permanent.

Restricted Application added a subscriber: scfc. · View Herald TranscriptJun 16 2015, 12:52 PM
Nemo_bis added a subscriber: Nemo_bis.

The new URL for the site with complete (bug) information and searchability is http://bugs.wmflabs.org/

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptAug 19 2015, 6:33 AM
Nemo_bis removed a subscriber: Nemo_bis.Aug 19 2015, 6:33 AM
greg added a subscriber: greg.Aug 19 2015, 7:12 AM

I expect most average users to not care about data not migrated from Bugzilla as it requires knowing about that and realizing the lack of some info.

Power users who do remember what Bugzilla was/is and need to access such non-migrated data more often could e.g. run a Greasemonkey script in their browser:

// ==UserScript==
// @name		Wikimedia Phabricator Maniphest script
// @description		Link a Phabricator task to its old Bugzilla counterpart
// @include		https://phabricator.wikimedia.org/T*
// @grant		none
// @license		The contents of this file are dual-licensed under the Mozilla Public License 2.0
//                      (MPL-2.0) and the GNU General Public License (GPL-2.0) Version 2 or later.
// ==/UserScript==

// var url = "https://static-bugzilla.wikimedia.org/show_bug.cgi?id=";
var url = "http://bugs.wmflabs.org/show_bug.cgi?id=";

if (document.getElementsByClassName('phui-crumb-name').length > 1) {
  var taskId = document.getElementsByClassName('phui-crumb-name')[1].innerHTML;
}

if (taskId &&
    (taskId.substring(1) < 75682) &&
    (taskId.substring(1) > 1999) &&
    (document.getElementsByClassName('phui-header-subheader').length > 0) &&
    (document.getElementsByClassName('phui-crumb-name').length > 0)
   ) {
  var linkOldBz = document.createElement("a");
  var bzID = taskId.substring(1) - 2000;
  linkOldBz.setAttribute('href', url + bzID);
  linkOldBz.setAttribute('id', "bz_link");
  linkOldBz.appendChild(document.createTextNode("(bz" + bzID + ")"));
  linkOldBz.setAttribute('style', "margin: 0px 0px 0px 10px; text-align: left; font-style: italic;");
  var place = document.getElementsByClassName('phui-header-subheader')[0];
  place.parentNode.insertBefore(linkOldBz, place);
}

(Regarding that shabby JS code above: Instead of adding a link to the task summary, linking the existing "Reference" value would be the obvious way but there is no unique ID to get that DOM element and the number of elements is not stable either.)

I could make a custom field in phabricator to link it but I don't know how to hook that up to the existing reference field because we didn't use php-backed custom field for reference

RobLa-WMF renamed this task from Converted bugs could link to the original report in old-bugzilla.wikimedia.org to Converted bugs could link to the original report in static-bugzilla.wikimedia.org.Oct 30 2015, 3:46 AM
RobLa-WMF updated the task description. (Show Details)

I don't think many folks still look up stuff on https://static-bugzilla.wikimedia.org/ nowadays. Proposing to decline.

Aklapper closed this task as Declined.Oct 6 2018, 11:15 PM

Boldly declining.
If there are common use cases why you need to still look up old tickets in BZ so often four years after migrating, please share your use cases. Thanks!

Restricted Application removed a subscriber: Liuxinyu970226. · View Herald TranscriptOct 6 2018, 11:15 PM