Page MenuHomePhabricator

Provide phabricator link for current task in static-bugzilla banner
Closed, ResolvedPublic

Description

As a user using old-bugzilla to find stuff, when I reach the bug I was looking for I would like to have a clickable link to its current location in phabricator, so that I don't have to manually alter URLs.

Should be enough to just take current ID and make a link to bugzilla.wikimedia.org, which will then redirect.

Event Timeline

Nemo_bis raised the priority of this task from to Needs Triage.
Nemo_bis updated the task description. (Show Details)
Nemo_bis added a project: Phabricator.
Nemo_bis changed Security from none to None.
Nemo_bis subscribed.
Qgil triaged this task as Lowest priority.Nov 25 2014, 10:10 AM
Qgil added subscribers: Aklapper, Qgil.

I asked about this... somewhere, and @Aklapper told me that there is no way to add variables in the Bugzilla banner. Since "it's open source, right?" I guess it is technically possible, but this is something we don't want to invest time on.

Marking as Needs Volunteer, and leaving the rest for @Aklapper to decide.

It looks possible to embed JavaScript in the (HTML) banner on Bugzilla via <script> tags.
Likely someone could write code to check that window.location.pathname contains show_bug.cgi, try to get the ID via location.search.split('=') or such, add 2000 to the ID, construct the link to the corresponding Phab task, and make it display some string.
I myself don't expect enough users on old-bugzilla to justify spending time working on this, but I could spend those 15min to test such code. :)

Aklapper renamed this task from Provide phabricator link for current task in old-bugzilla banner to Provide phabricator link for current task in static-bugzilla banner .Jun 29 2015, 10:40 AM

If someone wanted this it could maybe be done together with T101522: Update outdated information in top banner on static-bugzilla subpages?

Likely not worth the hassle, thus proposing to decline:
Since T281538 and per https://wikitech.wikimedia.org/wiki/Microsites , content is now in operations/container/miscweb under the dir html/static-bugzilla. Thus resolving this ticket would require extracting 73681 .gz files, adding the link to each HTML file, and compressing again.

Should be enough to just take current ID and make a link to bugzilla.wikimedia.org, which will then redirect.

So, let's be sure what this means:

On page https://static-bugzilla.wikimedia.org/bug1.html you would want a link at the bottom that goes to .. https://phabricator.wikimedia.org/T2001 ?

So the actual rule involves adding 2000 to the bug number and all bugs have been imported?

Yea, it means adding 2000 to the bug number to create the link to phabricator.wikimedia.org

as in T101522#9640584

Change 1012731 had a related patch set uploaded (by Dzahn; author: Dzahn):

[operations/deployment-charts@master] bump version of static bugzilla image to 2024-03-19-172702

https://gerrit.wikimedia.org/r/1012731

Change 1012731 merged by jenkins-bot:

[operations/deployment-charts@master] bump version of static bugzilla image to 2024-03-19-172702

https://gerrit.wikimedia.org/r/1012731

This is done.

You can now see links to the imported bugs in Phabricator on static-Bugzilla pages.

example: https://static-bugzilla.wikimedia.org/bug3.html

says "see T2003" and links to https://phabricator.wikimedia.org/T2003